diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12ac16d73d..ff78fbb653 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -120,7 +120,6 @@ jobs: cargo clippy -p sample_simple && cargo clippy -p sample_spellchecker && cargo clippy -p sample_uiautomation && - cargo clippy -p sample_xaml_app && cargo clippy -p sample_xml && cargo clippy -p windows_aarch64_msvc && cargo clippy -p windows_i686_gnu && @@ -161,7 +160,6 @@ jobs: cargo clippy -p test_not_dll && cargo clippy -p test_no_use && cargo clippy -p test_ntstatus && - cargo clippy -p test_null_result && cargo clippy -p test_properties && cargo clippy -p test_query_signature && cargo clippy -p test_return_struct && diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16699a7e98..ad7f211e5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -108,7 +108,6 @@ jobs: cargo test --target ${{ matrix.target }} -p sample_simple && cargo test --target ${{ matrix.target }} -p sample_spellchecker && cargo test --target ${{ matrix.target }} -p sample_uiautomation && - cargo test --target ${{ matrix.target }} -p sample_xaml_app && cargo test --target ${{ matrix.target }} -p sample_xml && cargo test --target ${{ matrix.target }} -p windows_aarch64_msvc && cargo test --target ${{ matrix.target }} -p windows_i686_gnu && @@ -150,7 +149,6 @@ jobs: cargo test --target ${{ matrix.target }} -p test_not_dll && cargo test --target ${{ matrix.target }} -p test_no_use && cargo test --target ${{ matrix.target }} -p test_ntstatus && - cargo test --target ${{ matrix.target }} -p test_null_result && cargo test --target ${{ matrix.target }} -p test_properties && cargo test --target ${{ matrix.target }} -p test_query_signature && cargo test --target ${{ matrix.target }} -p test_return_struct && diff --git a/crates/libs/windows/Cargo.toml b/crates/libs/windows/Cargo.toml index 82fb32193a..eb7ca9745e 100644 --- a/crates/libs/windows/Cargo.toml +++ b/crates/libs/windows/Cargo.toml @@ -390,30 +390,6 @@ UI_WebUI = ["UI"] UI_WebUI_Core = ["UI_WebUI"] UI_WindowManagement = ["UI"] UI_WindowManagement_Preview = ["UI_WindowManagement"] -UI_Xaml = ["UI"] -UI_Xaml_Automation = ["UI_Xaml"] -UI_Xaml_Automation_Peers = ["UI_Xaml_Automation"] -UI_Xaml_Automation_Provider = ["UI_Xaml_Automation"] -UI_Xaml_Automation_Text = ["UI_Xaml_Automation"] -UI_Xaml_Controls = ["UI_Xaml"] -UI_Xaml_Controls_Maps = ["UI_Xaml_Controls"] -UI_Xaml_Controls_Primitives = ["UI_Xaml_Controls"] -UI_Xaml_Core = ["UI_Xaml"] -UI_Xaml_Core_Direct = ["UI_Xaml_Core"] -UI_Xaml_Data = ["UI_Xaml"] -UI_Xaml_Documents = ["UI_Xaml"] -UI_Xaml_Hosting = ["UI_Xaml"] -UI_Xaml_Input = ["UI_Xaml"] -UI_Xaml_Interop = ["UI_Xaml"] -UI_Xaml_Markup = ["UI_Xaml"] -UI_Xaml_Media = ["UI_Xaml"] -UI_Xaml_Media_Animation = ["UI_Xaml_Media"] -UI_Xaml_Media_Imaging = ["UI_Xaml_Media"] -UI_Xaml_Media_Media3D = ["UI_Xaml_Media"] -UI_Xaml_Navigation = ["UI_Xaml"] -UI_Xaml_Printing = ["UI_Xaml"] -UI_Xaml_Resources = ["UI_Xaml"] -UI_Xaml_Shapes = ["UI_Xaml"] Web = [] Web_AtomPub = ["Web"] Web_Http = ["Web"] diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Peers/impl.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/Peers/impl.rs deleted file mode 100644 index 653157389c..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Peers/impl.rs +++ /dev/null @@ -1,809 +0,0 @@ -#[cfg(feature = "Foundation_Collections")] -pub trait IAutomationPeerOverrides_Impl: Sized { - fn GetPatternCore(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable>; - fn GetAcceleratorKeyCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetAccessKeyCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetAutomationControlTypeCore(&self) -> ::windows::core::Result; - fn GetAutomationIdCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetBoundingRectangleCore(&self) -> ::windows::core::Result; - fn GetChildrenCore(&self) -> ::windows::core::Result>; - fn GetClassNameCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetClickablePointCore(&self) -> ::windows::core::Result; - fn GetHelpTextCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetItemStatusCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetItemTypeCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetLabeledByCore(&self) -> ::windows::core::Result; - fn GetLocalizedControlTypeCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetNameCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetOrientationCore(&self) -> ::windows::core::Result; - fn HasKeyboardFocusCore(&self) -> ::windows::core::Result; - fn IsContentElementCore(&self) -> ::windows::core::Result; - fn IsControlElementCore(&self) -> ::windows::core::Result; - fn IsEnabledCore(&self) -> ::windows::core::Result; - fn IsKeyboardFocusableCore(&self) -> ::windows::core::Result; - fn IsOffscreenCore(&self) -> ::windows::core::Result; - fn IsPasswordCore(&self) -> ::windows::core::Result; - fn IsRequiredForFormCore(&self) -> ::windows::core::Result; - fn SetFocusCore(&self) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn GetPeerFromPointCore(&self, point: &super::super::super::super::Foundation::Point) -> ::windows::core::Result; - fn GetLiveSettingCore(&self) -> ::windows::core::Result; -} -#[cfg(feature = "Foundation_Collections")] -impl ::windows::core::RuntimeName for IAutomationPeerOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides"; -} -#[cfg(feature = "Foundation_Collections")] -impl IAutomationPeerOverrides_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides_Vtbl { - unsafe extern "system" fn GetPatternCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, patterninterface: PatternInterface, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetPatternCore(patterninterface) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAcceleratorKeyCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAcceleratorKeyCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAccessKeyCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAccessKeyCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAutomationControlTypeCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut AutomationControlType) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAutomationControlTypeCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAutomationIdCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAutomationIdCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetBoundingRectangleCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetBoundingRectangleCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetChildrenCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetChildrenCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetClassNameCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetClassNameCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetClickablePointCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetClickablePointCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetHelpTextCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetHelpTextCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetItemStatusCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetItemStatusCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetItemTypeCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetItemTypeCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetLabeledByCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetLabeledByCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetLocalizedControlTypeCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetLocalizedControlTypeCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetNameCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetNameCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetOrientationCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut AutomationOrientation) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetOrientationCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn HasKeyboardFocusCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.HasKeyboardFocusCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsContentElementCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsContentElementCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsControlElementCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsControlElementCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsEnabledCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsEnabledCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsKeyboardFocusableCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsKeyboardFocusableCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsOffscreenCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsOffscreenCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsPasswordCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsPasswordCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsRequiredForFormCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsRequiredForFormCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetFocusCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetFocusCore().into() - } - unsafe extern "system" fn GetPeerFromPointCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, point: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetPeerFromPointCore(::core::mem::transmute(&point)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetLiveSettingCore, Impl: IAutomationPeerOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut AutomationLiveSetting) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetLiveSettingCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetPatternCore: GetPatternCore::, - GetAcceleratorKeyCore: GetAcceleratorKeyCore::, - GetAccessKeyCore: GetAccessKeyCore::, - GetAutomationControlTypeCore: GetAutomationControlTypeCore::, - GetAutomationIdCore: GetAutomationIdCore::, - GetBoundingRectangleCore: GetBoundingRectangleCore::, - GetChildrenCore: GetChildrenCore::, - GetClassNameCore: GetClassNameCore::, - GetClickablePointCore: GetClickablePointCore::, - GetHelpTextCore: GetHelpTextCore::, - GetItemStatusCore: GetItemStatusCore::, - GetItemTypeCore: GetItemTypeCore::, - GetLabeledByCore: GetLabeledByCore::, - GetLocalizedControlTypeCore: GetLocalizedControlTypeCore::, - GetNameCore: GetNameCore::, - GetOrientationCore: GetOrientationCore::, - HasKeyboardFocusCore: HasKeyboardFocusCore::, - IsContentElementCore: IsContentElementCore::, - IsControlElementCore: IsControlElementCore::, - IsEnabledCore: IsEnabledCore::, - IsKeyboardFocusableCore: IsKeyboardFocusableCore::, - IsOffscreenCore: IsOffscreenCore::, - IsPasswordCore: IsPasswordCore::, - IsRequiredForFormCore: IsRequiredForFormCore::, - SetFocusCore: SetFocusCore::, - GetPeerFromPointCore: GetPeerFromPointCore::, - GetLiveSettingCore: GetLiveSettingCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation_Collections")] -pub trait IAutomationPeerOverrides2_Impl: Sized { - fn ShowContextMenuCore(&self) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn GetControlledPeersCore(&self) -> ::windows::core::Result>; -} -#[cfg(feature = "Foundation_Collections")] -impl ::windows::core::RuntimeName for IAutomationPeerOverrides2 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides2"; -} -#[cfg(feature = "Foundation_Collections")] -impl IAutomationPeerOverrides2_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides2_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides2_Vtbl { - unsafe extern "system" fn ShowContextMenuCore, Impl: IAutomationPeerOverrides2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ShowContextMenuCore().into() - } - unsafe extern "system" fn GetControlledPeersCore, Impl: IAutomationPeerOverrides2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetControlledPeersCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ShowContextMenuCore: ShowContextMenuCore::, - GetControlledPeersCore: GetControlledPeersCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation_Collections")] -pub trait IAutomationPeerOverrides3_Impl: Sized { - fn NavigateCore(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable>; - fn GetElementFromPointCore(&self, pointinwindowcoordinates: &super::super::super::super::Foundation::Point) -> ::windows::core::Result<::windows::core::IInspectable>; - fn GetFocusedElementCore(&self) -> ::windows::core::Result<::windows::core::IInspectable>; - fn GetAnnotationsCore(&self) -> ::windows::core::Result>; - fn GetPositionInSetCore(&self) -> ::windows::core::Result; - fn GetSizeOfSetCore(&self) -> ::windows::core::Result; - fn GetLevelCore(&self) -> ::windows::core::Result; -} -#[cfg(feature = "Foundation_Collections")] -impl ::windows::core::RuntimeName for IAutomationPeerOverrides3 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides3"; -} -#[cfg(feature = "Foundation_Collections")] -impl IAutomationPeerOverrides3_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides3_Vtbl { - unsafe extern "system" fn NavigateCore, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, direction: AutomationNavigationDirection, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.NavigateCore(direction) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetElementFromPointCore, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pointinwindowcoordinates: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetElementFromPointCore(::core::mem::transmute(&pointinwindowcoordinates)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetFocusedElementCore, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetFocusedElementCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAnnotationsCore, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAnnotationsCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetPositionInSetCore, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetPositionInSetCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetSizeOfSetCore, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetSizeOfSetCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetLevelCore, Impl: IAutomationPeerOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetLevelCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - NavigateCore: NavigateCore::, - GetElementFromPointCore: GetElementFromPointCore::, - GetFocusedElementCore: GetFocusedElementCore::, - GetAnnotationsCore: GetAnnotationsCore::, - GetPositionInSetCore: GetPositionInSetCore::, - GetSizeOfSetCore: GetSizeOfSetCore::, - GetLevelCore: GetLevelCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IAutomationPeerOverrides4_Impl: Sized { - fn GetLandmarkTypeCore(&self) -> ::windows::core::Result; - fn GetLocalizedLandmarkTypeCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; -} -impl ::windows::core::RuntimeName for IAutomationPeerOverrides4 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides4"; -} -impl IAutomationPeerOverrides4_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides4_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides4_Vtbl { - unsafe extern "system" fn GetLandmarkTypeCore, Impl: IAutomationPeerOverrides4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut AutomationLandmarkType) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetLandmarkTypeCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetLocalizedLandmarkTypeCore, Impl: IAutomationPeerOverrides4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetLocalizedLandmarkTypeCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetLandmarkTypeCore: GetLandmarkTypeCore::, - GetLocalizedLandmarkTypeCore: GetLocalizedLandmarkTypeCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation_Collections")] -pub trait IAutomationPeerOverrides5_Impl: Sized { - fn IsPeripheralCore(&self) -> ::windows::core::Result; - fn IsDataValidForFormCore(&self) -> ::windows::core::Result; - fn GetFullDescriptionCore(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetDescribedByCore(&self) -> ::windows::core::Result>; - fn GetFlowsToCore(&self) -> ::windows::core::Result>; - fn GetFlowsFromCore(&self) -> ::windows::core::Result>; -} -#[cfg(feature = "Foundation_Collections")] -impl ::windows::core::RuntimeName for IAutomationPeerOverrides5 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides5"; -} -#[cfg(feature = "Foundation_Collections")] -impl IAutomationPeerOverrides5_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides5_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides5_Vtbl { - unsafe extern "system" fn IsPeripheralCore, Impl: IAutomationPeerOverrides5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsPeripheralCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsDataValidForFormCore, Impl: IAutomationPeerOverrides5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsDataValidForFormCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetFullDescriptionCore, Impl: IAutomationPeerOverrides5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetFullDescriptionCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetDescribedByCore, Impl: IAutomationPeerOverrides5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetDescribedByCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetFlowsToCore, Impl: IAutomationPeerOverrides5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetFlowsToCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetFlowsFromCore, Impl: IAutomationPeerOverrides5_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetFlowsFromCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsPeripheralCore: IsPeripheralCore::, - IsDataValidForFormCore: IsDataValidForFormCore::, - GetFullDescriptionCore: GetFullDescriptionCore::, - GetDescribedByCore: GetDescribedByCore::, - GetFlowsToCore: GetFlowsToCore::, - GetFlowsFromCore: GetFlowsFromCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IAutomationPeerOverrides6_Impl: Sized { - fn GetCultureCore(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IAutomationPeerOverrides6 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides6"; -} -impl IAutomationPeerOverrides6_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides6_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides6_Vtbl { - unsafe extern "system" fn GetCultureCore, Impl: IAutomationPeerOverrides6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCultureCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetCultureCore: GetCultureCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IAutomationPeerOverrides8_Impl: Sized { - fn GetHeadingLevelCore(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IAutomationPeerOverrides8 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides8"; -} -impl IAutomationPeerOverrides8_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides8_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides8_Vtbl { - unsafe extern "system" fn GetHeadingLevelCore, Impl: IAutomationPeerOverrides8_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut AutomationHeadingLevel) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetHeadingLevelCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetHeadingLevelCore: GetHeadingLevelCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IAutomationPeerOverrides9_Impl: Sized { - fn IsDialogCore(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IAutomationPeerOverrides9 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IAutomationPeerOverrides9"; -} -impl IAutomationPeerOverrides9_Vtbl { - pub const fn new, Impl: IAutomationPeerOverrides9_Impl, const OFFSET: isize>() -> IAutomationPeerOverrides9_Vtbl { - unsafe extern "system" fn IsDialogCore, Impl: IAutomationPeerOverrides9_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsDialogCore() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsDialogCore: IsDialogCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IItemsControlAutomationPeerOverrides2_Impl: Sized { - fn OnCreateItemAutomationPeer(&self, item: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IItemsControlAutomationPeerOverrides2 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.IItemsControlAutomationPeerOverrides2"; -} -impl IItemsControlAutomationPeerOverrides2_Vtbl { - pub const fn new, Impl: IItemsControlAutomationPeerOverrides2_Impl, const OFFSET: isize>() -> IItemsControlAutomationPeerOverrides2_Vtbl { - unsafe extern "system" fn OnCreateItemAutomationPeer, Impl: IItemsControlAutomationPeerOverrides2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.OnCreateItemAutomationPeer(::core::mem::transmute(&item)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnCreateItemAutomationPeer: OnCreateItemAutomationPeer::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Peers/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/Peers/mod.rs deleted file mode 100644 index b9bf4fe338..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Peers/mod.rs +++ /dev/null @@ -1,22148 +0,0 @@ -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AccessibilityView(pub i32); -impl AccessibilityView { - pub const Raw: Self = Self(0i32); - pub const Control: Self = Self(1i32); - pub const Content: Self = Self(2i32); -} -impl ::core::marker::Copy for AccessibilityView {} -impl ::core::clone::Clone for AccessibilityView { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AccessibilityView { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AccessibilityView { - type Abi = Self; -} -impl ::core::fmt::Debug for AccessibilityView { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AccessibilityView").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AccessibilityView { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AccessibilityView;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct AppBarAutomationPeer(::windows::core::IUnknown); -impl AppBarAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::AppBar>>(owner: Param0) -> ::windows::core::Result { - Self::IAppBarAutomationPeerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::AppBar>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IAppBarAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Collapse)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Expand)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ToggleState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Toggle)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsModal(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsModal)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsTopmost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsTopmost)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximizable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Maximizable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimizable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Minimizable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn InteractionState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).InteractionState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VisualState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VisualState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Close)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetVisualState)(::windows::core::Interface::as_raw(this), state).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WaitForInputIdle)(::windows::core::Interface::as_raw(this), milliseconds, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc(hidden)] - pub fn IAppBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AppBarAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBarAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBarAutomationPeer {} -impl ::core::fmt::Debug for AppBarAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBarAutomationPeer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AppBarAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AppBarAutomationPeer;{8b4acfeb-89fa-4f13-84be-35ca5b7c9590})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBarAutomationPeer { - type Vtable = IAppBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AppBarAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AppBarAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AppBarAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AppBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AppBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: AppBarAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&AppBarAutomationPeer> for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: &AppBarAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for AppBarAutomationPeer { - 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 &AppBarAutomationPeer { - 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::IToggleProvider { - type Error = ::windows::core::Error; - fn try_from(value: AppBarAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&AppBarAutomationPeer> for super::Provider::IToggleProvider { - type Error = ::windows::core::Error; - fn try_from(value: &AppBarAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IToggleProvider> for AppBarAutomationPeer { - 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 &AppBarAutomationPeer { - 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 ::core::convert::TryFrom for super::Provider::IWindowProvider { - type Error = ::windows::core::Error; - fn try_from(value: AppBarAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&AppBarAutomationPeer> for super::Provider::IWindowProvider { - type Error = ::windows::core::Error; - fn try_from(value: &AppBarAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IWindowProvider> for AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::Provider::IWindowProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IWindowProvider> for &AppBarAutomationPeer { - 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 FrameworkElementAutomationPeer { - fn from(value: AppBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &AppBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: AppBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarAutomationPeer> for AutomationPeer { - fn from(value: &AppBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AppBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarAutomationPeer> for super::super::DependencyObject { - fn from(value: &AppBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AppBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AppBarAutomationPeer {} -unsafe impl ::core::marker::Sync for AppBarAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct AppBarButtonAutomationPeer(::windows::core::IUnknown); -impl AppBarButtonAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::AppBarButton>>(owner: Param0) -> ::windows::core::Result { - Self::IAppBarButtonAutomationPeerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::AppBarButton>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IAppBarButtonAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Collapse)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Expand)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IAppBarButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AppBarButtonAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBarButtonAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBarButtonAutomationPeer {} -impl ::core::fmt::Debug for AppBarButtonAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBarButtonAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBarButtonAutomationPeer { - type Vtable = IAppBarButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -impl ::core::convert::From for ButtonAutomationPeer { - fn from(value: AppBarButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for ButtonAutomationPeer { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonAutomationPeer> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonAutomationPeer> for &AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: AppBarButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: AppBarButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: AppBarButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for AutomationPeer { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AppBarButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &AppBarButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AppBarButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AppBarButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for AppBarButtonAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct AppBarToggleButtonAutomationPeer(::windows::core::IUnknown); -impl AppBarToggleButtonAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::AppBarToggleButton>>(owner: Param0) -> ::windows::core::Result { - Self::IAppBarToggleButtonAutomationPeerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::AppBarToggleButton>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IAppBarToggleButtonAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IAppBarToggleButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AppBarToggleButtonAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBarToggleButtonAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBarToggleButtonAutomationPeer {} -impl ::core::fmt::Debug for AppBarToggleButtonAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBarToggleButtonAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBarToggleButtonAutomationPeer { - type Vtable = IAppBarToggleButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -impl ::core::convert::From for ToggleButtonAutomationPeer { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ToggleButtonAutomationPeer { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for &AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for AutomationPeer { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AppBarToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarToggleButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &AppBarToggleButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AppBarToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AppBarToggleButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for AppBarToggleButtonAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct AutoSuggestBoxAutomationPeer(::windows::core::IUnknown); -impl AutoSuggestBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::AutoSuggestBox>>(owner: Param0) -> ::windows::core::Result { - Self::IAutoSuggestBoxAutomationPeerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IAutoSuggestBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AutoSuggestBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AutoSuggestBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AutoSuggestBoxAutomationPeer {} -impl ::core::fmt::Debug for AutoSuggestBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutoSuggestBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AutoSuggestBoxAutomationPeer { - type Vtable = IAutoSuggestBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutoSuggestBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: AutoSuggestBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: AutoSuggestBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for AutomationPeer { - fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AutoSuggestBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AutoSuggestBoxAutomationPeer> for super::super::DependencyObject { - fn from(value: &AutoSuggestBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AutoSuggestBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AutoSuggestBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for AutoSuggestBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationControlType(pub i32); -impl AutomationControlType { - pub const Button: Self = Self(0i32); - pub const Calendar: Self = Self(1i32); - pub const CheckBox: Self = Self(2i32); - pub const ComboBox: Self = Self(3i32); - pub const Edit: Self = Self(4i32); - pub const Hyperlink: Self = Self(5i32); - pub const Image: Self = Self(6i32); - pub const ListItem: Self = Self(7i32); - pub const List: Self = Self(8i32); - pub const Menu: Self = Self(9i32); - pub const MenuBar: Self = Self(10i32); - pub const MenuItem: Self = Self(11i32); - pub const ProgressBar: Self = Self(12i32); - pub const RadioButton: Self = Self(13i32); - pub const ScrollBar: Self = Self(14i32); - pub const Slider: Self = Self(15i32); - pub const Spinner: Self = Self(16i32); - pub const StatusBar: Self = Self(17i32); - pub const Tab: Self = Self(18i32); - pub const TabItem: Self = Self(19i32); - pub const Text: Self = Self(20i32); - pub const ToolBar: Self = Self(21i32); - pub const ToolTip: Self = Self(22i32); - pub const Tree: Self = Self(23i32); - pub const TreeItem: Self = Self(24i32); - pub const Custom: Self = Self(25i32); - pub const Group: Self = Self(26i32); - pub const Thumb: Self = Self(27i32); - pub const DataGrid: Self = Self(28i32); - pub const DataItem: Self = Self(29i32); - pub const Document: Self = Self(30i32); - pub const SplitButton: Self = Self(31i32); - pub const Window: Self = Self(32i32); - pub const Pane: Self = Self(33i32); - pub const Header: Self = Self(34i32); - pub const HeaderItem: Self = Self(35i32); - pub const Table: Self = Self(36i32); - pub const TitleBar: Self = Self(37i32); - pub const Separator: Self = Self(38i32); - pub const SemanticZoom: Self = Self(39i32); - pub const AppBar: Self = Self(40i32); -} -impl ::core::marker::Copy for AutomationControlType {} -impl ::core::clone::Clone for AutomationControlType { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationControlType { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationControlType { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationControlType { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationControlType").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationControlType { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationControlType;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationEvents(pub i32); -impl AutomationEvents { - pub const ToolTipOpened: Self = Self(0i32); - pub const ToolTipClosed: Self = Self(1i32); - pub const MenuOpened: Self = Self(2i32); - pub const MenuClosed: Self = Self(3i32); - pub const AutomationFocusChanged: Self = Self(4i32); - pub const InvokePatternOnInvoked: Self = Self(5i32); - pub const SelectionItemPatternOnElementAddedToSelection: Self = Self(6i32); - pub const SelectionItemPatternOnElementRemovedFromSelection: Self = Self(7i32); - pub const SelectionItemPatternOnElementSelected: Self = Self(8i32); - pub const SelectionPatternOnInvalidated: Self = Self(9i32); - pub const TextPatternOnTextSelectionChanged: Self = Self(10i32); - pub const TextPatternOnTextChanged: Self = Self(11i32); - pub const AsyncContentLoaded: Self = Self(12i32); - pub const PropertyChanged: Self = Self(13i32); - pub const StructureChanged: Self = Self(14i32); - pub const DragStart: Self = Self(15i32); - pub const DragCancel: Self = Self(16i32); - pub const DragComplete: Self = Self(17i32); - pub const DragEnter: Self = Self(18i32); - pub const DragLeave: Self = Self(19i32); - pub const Dropped: Self = Self(20i32); - pub const LiveRegionChanged: Self = Self(21i32); - pub const InputReachedTarget: Self = Self(22i32); - pub const InputReachedOtherElement: Self = Self(23i32); - pub const InputDiscarded: Self = Self(24i32); - pub const WindowClosed: Self = Self(25i32); - pub const WindowOpened: Self = Self(26i32); - pub const ConversionTargetChanged: Self = Self(27i32); - pub const TextEditTextChanged: Self = Self(28i32); - pub const LayoutInvalidated: Self = Self(29i32); -} -impl ::core::marker::Copy for AutomationEvents {} -impl ::core::clone::Clone for AutomationEvents { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationEvents { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationEvents { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationEvents").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationEvents { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationEvents;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationHeadingLevel(pub i32); -impl AutomationHeadingLevel { - pub const None: Self = Self(0i32); - pub const Level1: Self = Self(1i32); - pub const Level2: Self = Self(2i32); - pub const Level3: Self = Self(3i32); - pub const Level4: Self = Self(4i32); - pub const Level5: Self = Self(5i32); - pub const Level6: Self = Self(6i32); - pub const Level7: Self = Self(7i32); - pub const Level8: Self = Self(8i32); - pub const Level9: Self = Self(9i32); -} -impl ::core::marker::Copy for AutomationHeadingLevel {} -impl ::core::clone::Clone for AutomationHeadingLevel { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationHeadingLevel { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationHeadingLevel { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationHeadingLevel { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationHeadingLevel").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationHeadingLevel { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationHeadingLevel;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationLandmarkType(pub i32); -impl AutomationLandmarkType { - pub const None: Self = Self(0i32); - pub const Custom: Self = Self(1i32); - pub const Form: Self = Self(2i32); - pub const Main: Self = Self(3i32); - pub const Navigation: Self = Self(4i32); - pub const Search: Self = Self(5i32); -} -impl ::core::marker::Copy for AutomationLandmarkType {} -impl ::core::clone::Clone for AutomationLandmarkType { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationLandmarkType { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationLandmarkType { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationLandmarkType { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationLandmarkType").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationLandmarkType { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationLandmarkType;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationLiveSetting(pub i32); -impl AutomationLiveSetting { - pub const Off: Self = Self(0i32); - pub const Polite: Self = Self(1i32); - pub const Assertive: Self = Self(2i32); -} -impl ::core::marker::Copy for AutomationLiveSetting {} -impl ::core::clone::Clone for AutomationLiveSetting { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationLiveSetting { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationLiveSetting { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationLiveSetting { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationLiveSetting").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationLiveSetting { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationLiveSetting;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationNavigationDirection(pub i32); -impl AutomationNavigationDirection { - pub const Parent: Self = Self(0i32); - pub const NextSibling: Self = Self(1i32); - pub const PreviousSibling: Self = Self(2i32); - pub const FirstChild: Self = Self(3i32); - pub const LastChild: Self = Self(4i32); -} -impl ::core::marker::Copy for AutomationNavigationDirection {} -impl ::core::clone::Clone for AutomationNavigationDirection { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationNavigationDirection { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationNavigationDirection { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationNavigationDirection { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationNavigationDirection").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationNavigationDirection { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationNavigationDirection;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationNotificationKind(pub i32); -impl AutomationNotificationKind { - pub const ItemAdded: Self = Self(0i32); - pub const ItemRemoved: Self = Self(1i32); - pub const ActionCompleted: Self = Self(2i32); - pub const ActionAborted: Self = Self(3i32); - pub const Other: Self = Self(4i32); -} -impl ::core::marker::Copy for AutomationNotificationKind {} -impl ::core::clone::Clone for AutomationNotificationKind { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationNotificationKind { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationNotificationKind { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationNotificationKind { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationNotificationKind").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationNotificationKind { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationNotificationKind;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationNotificationProcessing(pub i32); -impl AutomationNotificationProcessing { - pub const ImportantAll: Self = Self(0i32); - pub const ImportantMostRecent: Self = Self(1i32); - pub const All: Self = Self(2i32); - pub const MostRecent: Self = Self(3i32); - pub const CurrentThenMostRecent: Self = Self(4i32); -} -impl ::core::marker::Copy for AutomationNotificationProcessing {} -impl ::core::clone::Clone for AutomationNotificationProcessing { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationNotificationProcessing { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationNotificationProcessing { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationNotificationProcessing { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationNotificationProcessing").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationNotificationProcessing { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationNotificationProcessing;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationOrientation(pub i32); -impl AutomationOrientation { - pub const None: Self = Self(0i32); - pub const Horizontal: Self = Self(1i32); - pub const Vertical: Self = Self(2i32); -} -impl ::core::marker::Copy for AutomationOrientation {} -impl ::core::clone::Clone for AutomationOrientation { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationOrientation { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationOrientation { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationOrientation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationOrientation").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationOrientation { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationOrientation;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct AutomationPeer(::windows::core::IUnknown); -impl AutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn EventsSource(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).EventsSource)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn SetEventsSource<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetEventsSource)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetPattern(&self, patterninterface: PatternInterface) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetPattern)(::windows::core::Interface::as_raw(this), patterninterface, result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn RaiseAutomationEvent(&self, eventid: AutomationEvents) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).RaiseAutomationEvent)(::windows::core::Interface::as_raw(this), eventid).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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 = self; - unsafe { (::windows::core::Interface::vtable(this).RaisePropertyChangedEvent)(::windows::core::Interface::as_raw(this), automationproperty.into_param().abi(), oldvalue.into_param().abi(), newvalue.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetAcceleratorKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetAcceleratorKey)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetAccessKey(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetAccessKey)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetAutomationControlType(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetAutomationControlType)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetAutomationId(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetAutomationId)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn GetBoundingRectangle(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetBoundingRectangle)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetChildren(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetChildren)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetClassName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetClassName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn GetClickablePoint(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetClickablePoint)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetHelpText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetHelpText)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetItemStatus(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetItemStatus)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetItemType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetItemType)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetLabeledBy(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetLabeledBy)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetLocalizedControlType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetLocalizedControlType)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetOrientation(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetOrientation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn HasKeyboardFocus(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HasKeyboardFocus)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsContentElement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsContentElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsControlElement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsControlElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsKeyboardFocusable(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsKeyboardFocusable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsOffscreen(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsOffscreen)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsPassword(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsPassword)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsRequiredForForm(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsRequiredForForm)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn SetFocus(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetFocus)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn GetParent(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetParent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn InvalidatePeer(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).InvalidatePeer)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation\"`, `\"deprecated\"`*"] - #[cfg(all(feature = "Foundation", feature = "deprecated"))] - pub fn GetPeerFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, point: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetPeerFromPoint)(::windows::core::Interface::as_raw(this), point.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetLiveSetting(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetLiveSetting)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn Navigate(&self, direction: AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Navigate)(::windows::core::Interface::as_raw(this), direction, result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetElementFromPoint)(::windows::core::Interface::as_raw(this), pointinwindowcoordinates.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetFocusedElement(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetFocusedElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).ShowContextMenu)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetControlledPeers)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetAnnotations)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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).SetParent)(::windows::core::Interface::as_raw(this), peer.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"Foundation_Collections\"`*"] - #[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).RaiseTextEditTextChangedEvent)(::windows::core::Interface::as_raw(this), automationtexteditchangetype, changeddata.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetPositionInSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetPositionInSet)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetSizeOfSet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetSizeOfSet)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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).RaiseStructureChangedEvent)(::windows::core::Interface::as_raw(this), structurechangetype, child.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetLandmarkType(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetLandmarkType)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetLocalizedLandmarkType(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetLocalizedLandmarkType)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsPeripheral(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsPeripheral)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsDataValidForForm(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsDataValidForForm)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetFullDescription(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetFullDescription)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetCulture(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetCulture)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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).RaiseNotificationEvent)(::windows::core::Interface::as_raw(this), notificationkind, notificationprocessing, displaystring.into_param().abi(), activityid.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GetHeadingLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetHeadingLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn IsDialog(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsDialog)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PeerFromProvider)(::windows::core::Interface::as_raw(this), provider.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ProviderFromPeer)(::windows::core::Interface::as_raw(this), peer.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn ListenerExists(eventid: AutomationEvents) -> ::windows::core::Result { - Self::IAutomationPeerStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ListenerExists)(::windows::core::Interface::as_raw(this), eventid, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn GenerateRawElementProviderRuntimeId() -> ::windows::core::Result { - Self::IAutomationPeerStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GenerateRawElementProviderRuntimeId)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IAutomationPeerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPeerStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AutomationPeer {} -impl ::core::fmt::Debug for AutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationPeer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AutomationPeer;{35aac87a-62ee-4d3e-a24c-2bc8432d68b7})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AutomationPeer { - type Vtable = IAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationPeer> for ::windows::core::IUnknown { - fn from(value: &AutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationPeer> for ::windows::core::IInspectable { - fn from(value: &AutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AutomationPeer> for super::super::DependencyObject { - fn from(value: &AutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AutomationPeer {} -unsafe impl ::core::marker::Sync for AutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct AutomationPeerAnnotation(::windows::core::IUnknown); -impl AutomationPeerAnnotation { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn Type(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Type)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn SetType(&self, value: super::AnnotationType) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetType)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn Peer(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Peer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn SetPeer<'a, Param0: ::windows::core::IntoParam<'a, AutomationPeer>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPeer)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstance(r#type: super::AnnotationType) -> ::windows::core::Result { - Self::IAutomationPeerAnnotationFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), r#type, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateWithPeerParameter<'a, Param1: ::windows::core::IntoParam<'a, AutomationPeer>>(r#type: super::AnnotationType, peer: Param1) -> ::windows::core::Result { - Self::IAutomationPeerAnnotationFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateWithPeerParameter)(::windows::core::Interface::as_raw(this), r#type, peer.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn TypeProperty() -> ::windows::core::Result { - Self::IAutomationPeerAnnotationStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn PeerProperty() -> ::windows::core::Result { - Self::IAutomationPeerAnnotationStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PeerProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IAutomationPeerAnnotationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPeerAnnotationStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AutomationPeerAnnotation { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AutomationPeerAnnotation { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AutomationPeerAnnotation {} -impl ::core::fmt::Debug for AutomationPeerAnnotation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationPeerAnnotation").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationPeerAnnotation { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.AutomationPeerAnnotation;{0c456061-52cf-43fa-82f8-07f137351e5a})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AutomationPeerAnnotation { - type Vtable = IAutomationPeerAnnotation_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AutomationPeerAnnotation { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.AutomationPeerAnnotation"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AutomationPeerAnnotation) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationPeerAnnotation> for ::windows::core::IUnknown { - fn from(value: &AutomationPeerAnnotation) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutomationPeerAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutomationPeerAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutomationPeerAnnotation) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationPeerAnnotation> for ::windows::core::IInspectable { - fn from(value: &AutomationPeerAnnotation) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutomationPeerAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutomationPeerAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AutomationPeerAnnotation) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AutomationPeerAnnotation> for super::super::DependencyObject { - fn from(value: &AutomationPeerAnnotation) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AutomationPeerAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AutomationPeerAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AutomationPeerAnnotation {} -unsafe impl ::core::marker::Sync for AutomationPeerAnnotation {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationStructureChangeType(pub i32); -impl AutomationStructureChangeType { - pub const ChildAdded: Self = Self(0i32); - pub const ChildRemoved: Self = Self(1i32); - pub const ChildrenInvalidated: Self = Self(2i32); - pub const ChildrenBulkAdded: Self = Self(3i32); - pub const ChildrenBulkRemoved: Self = Self(4i32); - pub const ChildrenReordered: Self = Self(5i32); -} -impl ::core::marker::Copy for AutomationStructureChangeType {} -impl ::core::clone::Clone for AutomationStructureChangeType { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationStructureChangeType { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationStructureChangeType { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationStructureChangeType { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationStructureChangeType").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationStructureChangeType { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Peers.AutomationStructureChangeType;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ButtonAutomationPeer(::windows::core::IUnknown); -impl ButtonAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Button>>(owner: Param0) -> ::windows::core::Result { - Self::IButtonAutomationPeerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Button>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IButtonAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ButtonAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ButtonAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ButtonAutomationPeer {} -impl ::core::fmt::Debug for ButtonAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ButtonAutomationPeer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ButtonAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.ButtonAutomationPeer;{fb77efbe-39ec-4508-8ac3-51a1424027d7})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ButtonAutomationPeer { - type Vtable = IButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for ButtonAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.ButtonAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: ButtonAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ButtonAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ButtonAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IInvokeProvider> for ButtonAutomationPeer { - 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 &ButtonAutomationPeer { - 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: ButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &ButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for &ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonAutomationPeer> for AutomationPeer { - fn from(value: &ButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &ButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for ButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for ButtonAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ButtonBaseAutomationPeer(::windows::core::IUnknown); -impl ButtonBaseAutomationPeer {} -impl ::core::clone::Clone for ButtonBaseAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ButtonBaseAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ButtonBaseAutomationPeer {} -impl ::core::fmt::Debug for ButtonBaseAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ButtonBaseAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ButtonBaseAutomationPeer { - type Vtable = IButtonBaseAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ButtonBaseAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ButtonBaseAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ButtonBaseAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ButtonBaseAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ButtonBaseAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ButtonBaseAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBaseAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ButtonBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ButtonBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ButtonBaseAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBaseAutomationPeer> for AutomationPeer { - fn from(value: &ButtonBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ButtonBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ButtonBaseAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBaseAutomationPeer> for super::super::DependencyObject { - fn from(value: &ButtonBaseAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ButtonBaseAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ButtonBaseAutomationPeer {} -unsafe impl ::core::marker::Sync for ButtonBaseAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct CalendarDatePickerAutomationPeer(::windows::core::IUnknown); -impl CalendarDatePickerAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CalendarDatePicker>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ICalendarDatePickerAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsReadOnly)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Value)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetValue)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc(hidden)] - pub fn ICalendarDatePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for CalendarDatePickerAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CalendarDatePickerAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CalendarDatePickerAutomationPeer {} -impl ::core::fmt::Debug for CalendarDatePickerAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CalendarDatePickerAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CalendarDatePickerAutomationPeer { - type Vtable = ICalendarDatePickerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: CalendarDatePickerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &CalendarDatePickerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CalendarDatePickerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &CalendarDatePickerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(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::From::from(&value) - } -} -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 CalendarDatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CalendarDatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: CalendarDatePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CalendarDatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for CalendarDatePickerAutomationPeer {} -unsafe impl ::core::marker::Sync for CalendarDatePickerAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct CaptureElementAutomationPeer(::windows::core::IUnknown); -impl CaptureElementAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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 { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CaptureElement>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ICaptureElementAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ICaptureElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for CaptureElementAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CaptureElementAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CaptureElementAutomationPeer {} -impl ::core::fmt::Debug for CaptureElementAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CaptureElementAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CaptureElementAutomationPeer { - type Vtable = ICaptureElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: CaptureElementAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CaptureElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &CaptureElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CaptureElementAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CaptureElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &CaptureElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: CaptureElementAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CaptureElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: CaptureElementAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CaptureElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: CaptureElementAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CaptureElementAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for CaptureElementAutomationPeer {} -unsafe impl ::core::marker::Sync for CaptureElementAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct CheckBoxAutomationPeer(::windows::core::IUnknown); -impl CheckBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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 { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::CheckBox>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ICheckBoxAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ICheckBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for CheckBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CheckBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CheckBoxAutomationPeer {} -impl ::core::fmt::Debug for CheckBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CheckBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CheckBoxAutomationPeer { - type Vtable = ICheckBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: CheckBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CheckBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &CheckBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CheckBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CheckBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &CheckBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: CheckBoxAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: CheckBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: CheckBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: CheckBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 CheckBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for CheckBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for CheckBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ColorPickerSliderAutomationPeer(::windows::core::IUnknown); -impl ColorPickerSliderAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ColorPickerSlider>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IColorPickerSliderAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IColorPickerSliderAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ColorPickerSliderAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ColorPickerSliderAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ColorPickerSliderAutomationPeer {} -impl ::core::fmt::Debug for ColorPickerSliderAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ColorPickerSliderAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ColorPickerSliderAutomationPeer { - type Vtable = IColorPickerSliderAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: ColorPickerSliderAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(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(unsafe { ::core::mem::transmute(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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(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(unsafe { ::core::mem::transmute(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(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { - type Error = ::windows::core::Error; - fn try_from(value: ColorPickerSliderAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ColorPickerSliderAutomationPeer> for super::Provider::IRangeValueProvider { - type Error = ::windows::core::Error; - 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::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::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 SliderAutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for SliderAutomationPeer { - fn from(value: &ColorPickerSliderAutomationPeer) -> 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::IntoParam::into_param(&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 ::core::convert::From for RangeBaseAutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ColorPickerSliderAutomationPeer> for RangeBaseAutomationPeer { - fn from(value: &ColorPickerSliderAutomationPeer) -> 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::IntoParam::into_param(&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 ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorPickerSliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ColorPickerSliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ColorPickerSliderAutomationPeer {} -unsafe impl ::core::marker::Sync for ColorPickerSliderAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ColorSpectrumAutomationPeer(::windows::core::IUnknown); -impl ColorSpectrumAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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 { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ColorSpectrum>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IColorSpectrumAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IColorSpectrumAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ColorSpectrumAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ColorSpectrumAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ColorSpectrumAutomationPeer {} -impl ::core::fmt::Debug for ColorSpectrumAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ColorSpectrumAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ColorSpectrumAutomationPeer { - type Vtable = IColorSpectrumAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorSpectrumAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ColorSpectrumAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ColorSpectrumAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ColorSpectrumAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for AutomationPeer { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ColorSpectrumAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorSpectrumAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ColorSpectrumAutomationPeer> for super::super::DependencyObject { - fn from(value: &ColorSpectrumAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ColorSpectrumAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ColorSpectrumAutomationPeer {} -unsafe impl ::core::marker::Sync for ColorSpectrumAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ComboBoxAutomationPeer(::windows::core::IUnknown); -impl ComboBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ComboBox>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IComboBoxAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Collapse)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Expand)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsReadOnly)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Value)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetValue)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsModal(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsModal)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsTopmost(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsTopmost)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Maximizable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Maximizable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimizable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Minimizable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn InteractionState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).InteractionState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VisualState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VisualState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Close)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetVisualState)(::windows::core::Interface::as_raw(this), state).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WaitForInputIdle)(::windows::core::Interface::as_raw(this), milliseconds, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc(hidden)] - pub fn IComboBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ComboBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ComboBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ComboBoxAutomationPeer {} -impl ::core::fmt::Debug for ComboBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ComboBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ComboBoxAutomationPeer { - type Vtable = IComboBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ComboBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ComboBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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::ISelectionProvider { - 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")] -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) - } -} -#[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) - } -} -#[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) - } -} -#[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")] -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")] -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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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 SelectorAutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxAutomationPeer> for SelectorAutomationPeer { - fn from(value: &ComboBoxAutomationPeer) -> 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::IntoParam::into_param(&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 ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &ComboBoxAutomationPeer) -> 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::IntoParam::into_param(&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 ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ComboBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ComboBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for ComboBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ComboBoxItemAutomationPeer(::windows::core::IUnknown); -impl ComboBoxItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ComboBoxItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IComboBoxItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IComboBoxItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ComboBoxItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ComboBoxItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ComboBoxItemAutomationPeer {} -impl ::core::fmt::Debug for ComboBoxItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ComboBoxItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ComboBoxItemAutomationPeer { - type Vtable = IComboBoxItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ComboBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ComboBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ComboBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for AutomationPeer { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &ComboBoxItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ComboBoxItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ComboBoxItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ComboBoxItemDataAutomationPeer(::windows::core::IUnknown); -impl ComboBoxItemDataAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithParentAndItem_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ComboBoxAutomationPeer>, T: ::windows::core::Compose>(item: Param0, parent: Param1, compose: T) -> ::windows::core::Result { - Self::IComboBoxItemDataAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IComboBoxItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ComboBoxItemDataAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ComboBoxItemDataAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ComboBoxItemDataAutomationPeer {} -impl ::core::fmt::Debug for ComboBoxItemDataAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ComboBoxItemDataAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ComboBoxItemDataAutomationPeer { - type Vtable = IComboBoxItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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 = "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) - } -} -#[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 = "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) - } -} -#[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) - } -} -#[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 = "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) - } -} -#[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) - } -} -#[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 = "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 = "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) - } -} -#[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) - } -} -impl ::core::convert::From for SelectorItemAutomationPeer { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for SelectorItemAutomationPeer { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorItemAutomationPeer> for ComboBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorItemAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for ComboBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for AutomationPeer { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ComboBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ComboBoxItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &ComboBoxItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ComboBoxItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ComboBoxItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for ComboBoxItemDataAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct DatePickerAutomationPeer(::windows::core::IUnknown); -impl DatePickerAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::DatePicker>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IDatePickerAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IDatePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for DatePickerAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DatePickerAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DatePickerAutomationPeer {} -impl ::core::fmt::Debug for DatePickerAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DatePickerAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DatePickerAutomationPeer { - type Vtable = IDatePickerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: DatePickerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DatePickerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &DatePickerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DatePickerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DatePickerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &DatePickerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: DatePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 DatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: DatePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 DatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: DatePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 DatePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for DatePickerAutomationPeer {} -unsafe impl ::core::marker::Sync for DatePickerAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct DatePickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -impl DatePickerFlyoutPresenterAutomationPeer {} -impl ::core::clone::Clone for DatePickerFlyoutPresenterAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DatePickerFlyoutPresenterAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DatePickerFlyoutPresenterAutomationPeer {} -impl ::core::fmt::Debug for DatePickerFlyoutPresenterAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DatePickerFlyoutPresenterAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DatePickerFlyoutPresenterAutomationPeer { - type Vtable = IDatePickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for DatePickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for DatePickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&DatePickerFlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &DatePickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for DatePickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for DatePickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for DatePickerFlyoutPresenterAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct FlipViewAutomationPeer(::windows::core::IUnknown); -impl FlipViewAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlipView>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IFlipViewAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IFlipViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for FlipViewAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FlipViewAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FlipViewAutomationPeer {} -impl ::core::fmt::Debug for FlipViewAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlipViewAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FlipViewAutomationPeer { - type Vtable = IFlipViewAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlipViewAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlipViewAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlipViewAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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 = "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 = "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) - } -} -#[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 = "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) - } -} -#[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) - } -} -#[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 ::core::convert::From for SelectorAutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for SelectorAutomationPeer { - fn from(value: &FlipViewAutomationPeer) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for AutomationPeer { - fn from(value: &FlipViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlipViewAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&FlipViewAutomationPeer> for super::super::DependencyObject { - fn from(value: &FlipViewAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for FlipViewAutomationPeer {} -unsafe impl ::core::marker::Sync for FlipViewAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct FlipViewItemAutomationPeer(::windows::core::IUnknown); -impl FlipViewItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlipViewItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IFlipViewItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IFlipViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for FlipViewItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FlipViewItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FlipViewItemAutomationPeer {} -impl ::core::fmt::Debug for FlipViewItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlipViewItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FlipViewItemAutomationPeer { - type Vtable = IFlipViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlipViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlipViewItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlipViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: FlipViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&FlipViewItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FlipViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&FlipViewItemAutomationPeer> for AutomationPeer { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlipViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&FlipViewItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &FlipViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for FlipViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for FlipViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for FlipViewItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct FlipViewItemDataAutomationPeer(::windows::core::IUnknown); -impl FlipViewItemDataAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithParentAndItem_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, FlipViewAutomationPeer>, T: ::windows::core::Compose>(item: Param0, parent: Param1, compose: T) -> ::windows::core::Result { - Self::IFlipViewItemDataAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IFlipViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for FlipViewItemDataAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FlipViewItemDataAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FlipViewItemDataAutomationPeer {} -impl ::core::fmt::Debug for FlipViewItemDataAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlipViewItemDataAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FlipViewItemDataAutomationPeer { - type Vtable = IFlipViewItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlipViewItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::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)) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for super::super::DependencyObject { - fn from(value: FlipViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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)) - } -} -unsafe impl ::core::marker::Send for FlipViewItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for FlipViewItemDataAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct FlyoutPresenterAutomationPeer(::windows::core::IUnknown); -impl FlyoutPresenterAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::FlyoutPresenter>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IFlyoutPresenterAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IFlyoutPresenterAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for FlyoutPresenterAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FlyoutPresenterAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FlyoutPresenterAutomationPeer {} -impl ::core::fmt::Debug for FlyoutPresenterAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlyoutPresenterAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FlyoutPresenterAutomationPeer { - type Vtable = IFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for FlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for FlyoutPresenterAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct FrameworkElementAutomationPeer(::windows::core::IUnknown); -impl FrameworkElementAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn Owner(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Owner)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(owner: Param0) -> ::windows::core::Result { - Self::IFrameworkElementAutomationPeerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IFrameworkElementAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn FromElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { - Self::IFrameworkElementAutomationPeerStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FromElement)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreatePeerForElement<'a, Param0: ::windows::core::IntoParam<'a, super::super::UIElement>>(element: Param0) -> ::windows::core::Result { - Self::IFrameworkElementAutomationPeerStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreatePeerForElement)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IFrameworkElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IFrameworkElementAutomationPeerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for FrameworkElementAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FrameworkElementAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FrameworkElementAutomationPeer {} -impl ::core::fmt::Debug for FrameworkElementAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FrameworkElementAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FrameworkElementAutomationPeer { - type Vtable = IFrameworkElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FrameworkElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &FrameworkElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FrameworkElementAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FrameworkElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &FrameworkElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: FrameworkElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FrameworkElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for FrameworkElementAutomationPeer {} -unsafe impl ::core::marker::Sync for FrameworkElementAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct GridViewAutomationPeer(::windows::core::IUnknown); -impl GridViewAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridView>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IGridViewAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGridViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GridViewAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridViewAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridViewAutomationPeer {} -impl ::core::fmt::Debug for GridViewAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridViewAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridViewAutomationPeer { - type Vtable = IGridViewAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for GridViewAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct GridViewHeaderItemAutomationPeer(::windows::core::IUnknown); -impl GridViewHeaderItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridViewHeaderItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IGridViewHeaderItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGridViewHeaderItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GridViewHeaderItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridViewHeaderItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridViewHeaderItemAutomationPeer {} -impl ::core::fmt::Debug for GridViewHeaderItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridViewHeaderItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridViewHeaderItemAutomationPeer { - type Vtable = IGridViewHeaderItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewHeaderItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ListViewBaseHeaderItemAutomationPeer { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for GridViewHeaderItemAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewHeaderItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct GridViewItemAutomationPeer(::windows::core::IUnknown); -impl GridViewItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GridViewItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IGridViewItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGridViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GridViewItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridViewItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridViewItemAutomationPeer {} -impl ::core::fmt::Debug for GridViewItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridViewItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridViewItemAutomationPeer { - type Vtable = IGridViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GridViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for GridViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct GridViewItemDataAutomationPeer(::windows::core::IUnknown); -impl GridViewItemDataAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithParentAndItem_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, GridViewAutomationPeer>, T: ::windows::core::Compose>(item: Param0, parent: Param1, compose: T) -> ::windows::core::Result { - Self::IGridViewItemDataAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IGridViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GridViewItemDataAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridViewItemDataAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridViewItemDataAutomationPeer {} -impl ::core::fmt::Debug for GridViewItemDataAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridViewItemDataAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridViewItemDataAutomationPeer { - type Vtable = IGridViewItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GridViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for GridViewItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for GridViewItemDataAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct GroupItemAutomationPeer(::windows::core::IUnknown); -impl GroupItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::GroupItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IGroupItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGroupItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GroupItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GroupItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GroupItemAutomationPeer {} -impl ::core::fmt::Debug for GroupItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GroupItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GroupItemAutomationPeer { - type Vtable = IGroupItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GroupItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &GroupItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GroupItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GroupItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &GroupItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: GroupItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: GroupItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GroupItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for GroupItemAutomationPeer {} -unsafe impl ::core::marker::Sync for GroupItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct HubAutomationPeer(::windows::core::IUnknown); -impl HubAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Hub>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IHubAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IHubAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for HubAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for HubAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for HubAutomationPeer {} -impl ::core::fmt::Debug for HubAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HubAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for HubAutomationPeer { - type Vtable = IHubAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HubAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &HubAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: HubAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HubAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &HubAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: HubAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: HubAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: HubAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for HubAutomationPeer {} -unsafe impl ::core::marker::Sync for HubAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct HubSectionAutomationPeer(::windows::core::IUnknown); -impl HubSectionAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::HubSection>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IHubSectionAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IHubSectionAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for HubSectionAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for HubSectionAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for HubSectionAutomationPeer {} -impl ::core::fmt::Debug for HubSectionAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HubSectionAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for HubSectionAutomationPeer { - type Vtable = IHubSectionAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HubSectionAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &HubSectionAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: HubSectionAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HubSectionAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &HubSectionAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: HubSectionAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: HubSectionAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for HubSectionAutomationPeer {} -unsafe impl ::core::marker::Sync for HubSectionAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct HyperlinkButtonAutomationPeer(::windows::core::IUnknown); -impl HyperlinkButtonAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::HyperlinkButton>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IHyperlinkButtonAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IHyperlinkButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for HyperlinkButtonAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for HyperlinkButtonAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for HyperlinkButtonAutomationPeer {} -impl ::core::fmt::Debug for HyperlinkButtonAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HyperlinkButtonAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for HyperlinkButtonAutomationPeer { - type Vtable = IHyperlinkButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HyperlinkButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::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)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for AutomationPeer { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: HyperlinkButtonAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for HyperlinkButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for HyperlinkButtonAutomationPeer {} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarAutomationPeer { - type Vtable = IAppBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8b4acfeb_89fa_4f13_84be_35ca5b7c9590); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarAutomationPeerFactory { - type Vtable = IAppBarAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8360f4e2_e396_4517_af5d_f4cf34c54edf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarButtonAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarButtonAutomationPeer { - type Vtable = IAppBarButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x443262b2_4f6d_4b76_9d2e_3eff777e8864); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarButtonAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarButtonAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarButtonAutomationPeerFactory { - type Vtable = IAppBarButtonAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaef0342a_acb7_42dc_97e3_847071865fd6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarButtonAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarToggleButtonAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarToggleButtonAutomationPeer { - type Vtable = IAppBarToggleButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8464efad_9655_4aff_9550_63ae9ec8fe9c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarToggleButtonAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarToggleButtonAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarToggleButtonAutomationPeerFactory { - type Vtable = IAppBarToggleButtonAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd6f9139d_02c1_4221_9591_7d4efeb74701); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarToggleButtonAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutoSuggestBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutoSuggestBoxAutomationPeer { - type Vtable = IAutoSuggestBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f32c302_f99b_491d_9726_a5e181643efa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutoSuggestBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutoSuggestBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutoSuggestBoxAutomationPeerFactory { - type Vtable = IAutoSuggestBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x80046849_18e7_4475_b362_4bbd53d24562); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutoSuggestBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer { - type Vtable = IAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x35aac87a_62ee_4d3e_a24c_2bc8432d68b7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub EventsSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetEventsSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetPattern: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, patterninterface: PatternInterface, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RaiseAutomationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: AutomationEvents) -> ::windows::core::HRESULT, - pub RaisePropertyChangedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, automationproperty: *mut ::core::ffi::c_void, oldvalue: *mut ::core::ffi::c_void, newvalue: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAcceleratorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetAccessKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetAutomationControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationControlType) -> ::windows::core::HRESULT, - pub GetAutomationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetBoundingRectangle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetBoundingRectangle: usize, - #[cfg(feature = "Foundation_Collections")] - pub GetChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetChildren: usize, - pub GetClassName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetClickablePoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetClickablePoint: usize, - pub GetHelpText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetLabeledBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetLocalizedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationOrientation) -> ::windows::core::HRESULT, - pub HasKeyboardFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsContentElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsControlElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsKeyboardFocusable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsOffscreen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsPassword: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsRequiredForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetFocus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "deprecated")] - pub GetParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GetParent: usize, - pub InvalidatePeer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Foundation", feature = "deprecated"))] - pub GetPeerFromPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, point: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation", feature = "deprecated")))] - GetPeerFromPoint: usize, - pub GetLiveSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationLiveSetting) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer2 { - type Vtable = IAutomationPeer2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea1f89c7_ebf5_4ab8_88f7_680d821dac61); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer3 { - type Vtable = IAutomationPeer3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3cfb977_0084_41d7_a221_28158d3bc32c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Navigate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, direction: AutomationNavigationDirection, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetElementFromPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointinwindowcoordinates: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetElementFromPoint: usize, - pub GetFocusedElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ShowContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetControlledPeers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControlledPeers: usize, - #[cfg(feature = "Foundation_Collections")] - pub GetAnnotations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAnnotations: usize, - pub SetParent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peer: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub RaiseTextEditTextChangedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, automationtexteditchangetype: super::AutomationTextEditChangeType, changeddata: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - RaiseTextEditTextChangedEvent: usize, - pub GetPositionInSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub GetSizeOfSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub GetLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub RaiseStructureChangedEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, structurechangetype: AutomationStructureChangeType, child: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer4 { - type Vtable = IAutomationPeer4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x761ce752_73c1_4f44_be75_43c49ec0d4d5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationLandmarkType) -> ::windows::core::HRESULT, - pub GetLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer5 { - type Vtable = IAutomationPeer5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf632e1c6_0a3f_4574_9fef_cdc151765674); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsPeripheral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsDataValidForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub GetFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer6 { - type Vtable = IAutomationPeer6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcaf8608f_13ff_42fb_866d_22206434cc6b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetCulture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer7(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer7 { - type Vtable = IAutomationPeer7_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x796b3287_e642_48ab_b223_5208b41da9d6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer7_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub RaiseNotificationEvent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, notificationkind: AutomationNotificationKind, notificationprocessing: AutomationNotificationProcessing, displaystring: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, activityid: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer8(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer8 { - type Vtable = IAutomationPeer8_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5c6a1fe6_9a55_4d7f_9498_cfe429e92da8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer8_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetHeadingLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationHeadingLevel) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeer9(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeer9 { - type Vtable = IAutomationPeer9_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdf2e0265_1d74_57fa_8094_f81c2f626b8c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeer9_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerAnnotation(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerAnnotation { - type Vtable = IAutomationPeerAnnotation_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0c456061_52cf_43fa_82f8_07f137351e5a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotation_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::AnnotationType) -> ::windows::core::HRESULT, - pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::AnnotationType) -> ::windows::core::HRESULT, - pub Peer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetPeer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerAnnotationFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerAnnotationFactory { - type Vtable = IAutomationPeerAnnotationFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf59c439e_c65b_43cd_9009_03fc023363a7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotationFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: super::AnnotationType, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateWithPeerParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: super::AnnotationType, peer: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerAnnotationStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerAnnotationStatics { - type Vtable = IAutomationPeerAnnotationStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8809a87d_09b2_4d45_b78b_1d3b3b09f661); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerAnnotationStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub TypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PeerProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerFactory { - type Vtable = IAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20c27545_a88b_43c8_bc24_cea9dafd04a3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides { - type Vtable = IAutomationPeerOverrides_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbea93e67_dbee_4f7b_af0d_a79aae5333bf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetPatternCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, patterninterface: PatternInterface, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAcceleratorKeyCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetAccessKeyCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetAutomationControlTypeCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationControlType) -> ::windows::core::HRESULT, - pub GetAutomationIdCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetBoundingRectangleCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetBoundingRectangleCore: usize, - #[cfg(feature = "Foundation_Collections")] - pub GetChildrenCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetChildrenCore: usize, - pub GetClassNameCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetClickablePointCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetClickablePointCore: usize, - pub GetHelpTextCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetItemStatusCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetItemTypeCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetLabeledByCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetLocalizedControlTypeCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetNameCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetOrientationCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationOrientation) -> ::windows::core::HRESULT, - pub HasKeyboardFocusCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsContentElementCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsControlElementCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsEnabledCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsKeyboardFocusableCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsOffscreenCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsPasswordCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsRequiredForFormCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetFocusCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetPeerFromPointCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, point: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetPeerFromPointCore: usize, - pub GetLiveSettingCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationLiveSetting) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides2 { - type Vtable = IAutomationPeerOverrides2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2603682a_9da6_4023_b496_496e5ef228d2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShowContextMenuCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetControlledPeersCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControlledPeersCore: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides3 { - type Vtable = IAutomationPeerOverrides3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb6f0c4ad_4d39_49e6_bb91_d924eefd8538); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub NavigateCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, direction: AutomationNavigationDirection, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetElementFromPointCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pointinwindowcoordinates: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetElementFromPointCore: usize, - pub GetFocusedElementCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetAnnotationsCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAnnotationsCore: usize, - pub GetPositionInSetCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub GetSizeOfSetCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub GetLevelCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides4 { - type Vtable = IAutomationPeerOverrides4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb186cda2_5d46_4bcd_a811_269ad15b3aee); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetLandmarkTypeCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationLandmarkType) -> ::windows::core::HRESULT, - pub GetLocalizedLandmarkTypeCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides5 { - type Vtable = IAutomationPeerOverrides5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c847c85_781e_49f7_9fef_b9e14d014707); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsPeripheralCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsDataValidForFormCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub GetFullDescriptionCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetDescribedByCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDescribedByCore: usize, - #[cfg(feature = "Foundation_Collections")] - pub GetFlowsToCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFlowsToCore: usize, - #[cfg(feature = "Foundation_Collections")] - pub GetFlowsFromCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFlowsFromCore: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides6 { - type Vtable = IAutomationPeerOverrides6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe98babe7_f6ff_444c_9c0d_277eaf0ad9c0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetCultureCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides8(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides8 { - type Vtable = IAutomationPeerOverrides8_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0e1ebbd4_a003_4936_8175_f5457c07f0c6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides8_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetHeadingLevelCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AutomationHeadingLevel) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerOverrides9(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerOverrides9 { - type Vtable = IAutomationPeerOverrides9_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3709e8b_091a_5db5_b896_ff78f01990c9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerOverrides9_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsDialogCore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerProtected(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerProtected { - type Vtable = IAutomationPeerProtected_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf4b40e52_642f_4629_a54a_ea5d2349c448); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerProtected_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub PeerFromProvider: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, provider: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Provider"))] - PeerFromProvider: usize, - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub ProviderFromPeer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, peer: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Provider"))] - ProviderFromPeer: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerStatics { - type Vtable = IAutomationPeerStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x562f7fb0_a331_4a9c_9dec_bfb7586fffff); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ListenerExists: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, eventid: AutomationEvents, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPeerStatics3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPeerStatics3 { - type Vtable = IAutomationPeerStatics3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x572c5714_7f87_4271_819f_6cf4c4d022d0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPeerStatics3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GenerateRawElementProviderRuntimeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut RawElementProviderRuntimeId) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IButtonAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IButtonAutomationPeer { - type Vtable = IButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfb77efbe_39ec_4508_8ac3_51a1424027d7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IButtonAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IButtonAutomationPeerFactory { - type Vtable = IButtonAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fdb9f49_f4ab_4780_8644_03376299a175); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IButtonBaseAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IButtonBaseAutomationPeer { - type Vtable = IButtonBaseAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4f3b5b6_7585_4e0b_96d2_08cf6f28befa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IButtonBaseAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IButtonBaseAutomationPeerFactory { - type Vtable = IButtonBaseAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8a04091e_e6b2_4c60_a759_c13ca45165ed); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICalendarDatePickerAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICalendarDatePickerAutomationPeer { - type Vtable = ICalendarDatePickerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40d8938e_db5e_4b03_beba_d10f62419787); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarDatePickerAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICalendarDatePickerAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICalendarDatePickerAutomationPeerFactory { - type Vtable = ICalendarDatePickerAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xab705dd2_d293_45bf_9f19_26f7603a5e9b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarDatePickerAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICaptureElementAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICaptureElementAutomationPeer { - type Vtable = ICaptureElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdcc44ee0_fa45_45c6_8bb7_320d808f5958); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICaptureElementAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICaptureElementAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICaptureElementAutomationPeerFactory { - type Vtable = ICaptureElementAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b92ef48_85e9_4869_b175_8f7cf45a6d9f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICaptureElementAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICheckBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICheckBoxAutomationPeer { - type Vtable = ICheckBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xeb15bc42_c0a9_46c6_ac24_b83de429c733); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICheckBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICheckBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICheckBoxAutomationPeerFactory { - type Vtable = ICheckBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb75c775d_eb8f_44ef_a27c_e26ac7de8333); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICheckBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorPickerSliderAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorPickerSliderAutomationPeer { - type Vtable = IColorPickerSliderAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa514215a_7293_4577_924c_47d4e0bf9b90); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorPickerSliderAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorPickerSliderAutomationPeerFactory { - type Vtable = IColorPickerSliderAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a55c77e_9dd6_45a3_9042_b40200fea1a9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorSpectrumAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorSpectrumAutomationPeer { - type Vtable = IColorSpectrumAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15d5ba03_010d_4ff7_9087_f4dd09f831b7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorSpectrumAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorSpectrumAutomationPeerFactory { - type Vtable = IColorSpectrumAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0ac400e1_b743_4496_837a_8889e6ac6497); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxAutomationPeer { - type Vtable = IComboBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7eb40d0b_75c5_4263_ba6a_d4a54fb0f239); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxAutomationPeerFactory { - type Vtable = IComboBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x098e5b0d_1b90_40b9_9be3_b23267eb13cf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxItemAutomationPeer { - type Vtable = IComboBoxItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x12ddc76e_9552_446a_82ee_938cc371800f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxItemAutomationPeerFactory { - type Vtable = IComboBoxItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x134ac7fc_397a_403f_a6ec_1ce8beda15e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxItemDataAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxItemDataAutomationPeer { - type Vtable = IComboBoxItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4fef6df2_289c_4c04_831b_5a668c6d7104); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemDataAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxItemDataAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxItemDataAutomationPeerFactory { - type Vtable = IComboBoxItemDataAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14a8d4f6_469a_41ba_9d93_44a1a55da872); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxItemDataAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDatePickerAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDatePickerAutomationPeer { - type Vtable = IDatePickerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd07d357f_a0b9_45dc_991a_76c505e7d0f5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDatePickerAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDatePickerAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDatePickerAutomationPeerFactory { - type Vtable = IDatePickerAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe5667d19_9157_4436_9f4d_7fb99174b48e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDatePickerAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDatePickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDatePickerFlyoutPresenterAutomationPeer { - type Vtable = IDatePickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752aed38_c2bf_4880_82b2_a6c05e90c135); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDatePickerFlyoutPresenterAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlipViewAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlipViewAutomationPeer { - type Vtable = IFlipViewAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8ec0353a_4284_4b00_aef8_a2688ea5e3c4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlipViewAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlipViewAutomationPeerFactory { - type Vtable = IFlipViewAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4395ab0d_8d83_483c_88eb_e2617b0d293f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlipViewItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlipViewItemAutomationPeer { - type Vtable = IFlipViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc83034de_fa08_4bd3_aeb2_d2e5bfa04df9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlipViewItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlipViewItemAutomationPeerFactory { - type Vtable = IFlipViewItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69109356_d0e5_4c10_a09c_ad0bf1b0cb01); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlipViewItemDataAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlipViewItemDataAutomationPeer { - type Vtable = IFlipViewItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0986175_00bc_4118_8a6f_16ee9c15d968); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemDataAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlipViewItemDataAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlipViewItemDataAutomationPeerFactory { - type Vtable = IFlipViewItemDataAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c864393_0aea_4e78_bc11_b775cac4114c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlipViewItemDataAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutPresenterAutomationPeer { - type Vtable = IFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa01840b4_5fca_456f_98ea_300eb40b585e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutPresenterAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutPresenterAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutPresenterAutomationPeerFactory { - type Vtable = IFlyoutPresenterAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf350155f_8924_44c0_ba44_653fe79f1efb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutPresenterAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFrameworkElementAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeer { - type Vtable = IFrameworkElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb90ad781_bfeb_4451_bd47_9f3a63ebd24a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Owner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFrameworkElementAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeerFactory { - type Vtable = IFrameworkElementAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0db9b8bc_b812_48e3_af1f_dbc57600c325); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFrameworkElementAutomationPeerStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFrameworkElementAutomationPeerStatics { - type Vtable = IFrameworkElementAutomationPeerStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9c0b997_2820_44a1_a5a8_9b801edc269e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFrameworkElementAutomationPeerStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FromElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreatePeerForElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewAutomationPeer { - type Vtable = IGridViewAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c4401a4_d951_49ca_8f82_c7f3c60681b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewAutomationPeerFactory { - type Vtable = IGridViewAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8aca59dd_22a7_4800_894b_c1f485f38953); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewHeaderItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewHeaderItemAutomationPeer { - type Vtable = IGridViewHeaderItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3dcef3a_e08a_48e7_b23a_2be5b66e474e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewHeaderItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewHeaderItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewHeaderItemAutomationPeerFactory { - type Vtable = IGridViewHeaderItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c80b4d2_ffc2_4157_88dd_59cd92e39715); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewHeaderItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemAutomationPeer { - type Vtable = IGridViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93ef2d07_346c_4166_a4ba_bc6a181e7f33); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemAutomationPeerFactory { - type Vtable = IGridViewItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfafec376_f22e_466d_913c_ae24ccdb160f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemDataAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemDataAutomationPeer { - type Vtable = IGridViewItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3f4868f_29d4_4094_8c54_ea61a88294a4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemDataAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemDataAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemDataAutomationPeerFactory { - type Vtable = IGridViewItemDataAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa65e7a88_770d_402c_996f_67506af2a4af); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemDataAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGroupItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGroupItemAutomationPeer { - type Vtable = IGroupItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1914fe6d_0740_4236_9ee1_38cf19c1c388); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGroupItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGroupItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGroupItemAutomationPeerFactory { - type Vtable = IGroupItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56a64567_f21c_4c90_b379_15a27c7f8409); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGroupItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHubAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHubAutomationPeer { - type Vtable = IHubAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ddee056_4ebc_4620_a05d_903e3c9a4ead); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHubAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHubAutomationPeerFactory { - type Vtable = IHubAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc762d43f_79dd_43ee_8777_8d08b39aa065); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHubSectionAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHubSectionAutomationPeer { - type Vtable = IHubSectionAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x16d91ff7_7431_4d82_83ce_cfa3192b0f18); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubSectionAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHubSectionAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHubSectionAutomationPeerFactory { - type Vtable = IHubSectionAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc68e27e8_17ec_4329_91ae_2d0b2339d498); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHubSectionAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHyperlinkButtonAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHyperlinkButtonAutomationPeer { - type Vtable = IHyperlinkButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaa7afcb1_0edf_46d9_aa9e_0eb21d140097); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHyperlinkButtonAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHyperlinkButtonAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHyperlinkButtonAutomationPeerFactory { - type Vtable = IHyperlinkButtonAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x59bc1661_c182_49af_9526_44b88e628455); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHyperlinkButtonAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IImageAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IImageAutomationPeer { - type Vtable = IImageAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b0bbf8c_60a2_48bf_ab2c_1a52a451d2d4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IImageAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IImageAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IImageAutomationPeerFactory { - type Vtable = IImageAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90304003_687d_47bf_b3a2_4babcad8ef50); -} -#[repr(C)] -#[doc(hidden)] -pub struct IImageAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IInkToolbarAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IInkToolbarAutomationPeer { - type Vtable = IInkToolbarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x123baaa4_f2e8_4bcb_9382_5dfdd11fe45f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IInkToolbarAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IItemAutomationPeer { - type Vtable = IItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x953c34f6_3b31_47a7_b3bf_25d3ae99c317); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Item: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemsControlAutomationPeer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IItemAutomationPeerFactory { - type Vtable = IItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29065073_de3d_4d3f_97b4_4d6f9d53444d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IItemsControlAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeer { - type Vtable = IItemsControlAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96e76bf1_37f7_4088_925d_65268e83e34d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IItemsControlAutomationPeer2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeer2 { - type Vtable = IItemsControlAutomationPeer2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc48d8917_95a8_47b8_a517_bf891a6c039b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeer2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateItemAutomationPeer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IItemsControlAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeerFactory { - type Vtable = IItemsControlAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4038a259_2e1a_49ca_a533_c64f181577e6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IItemsControlAutomationPeerOverrides2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IItemsControlAutomationPeerOverrides2 { - type Vtable = IItemsControlAutomationPeerOverrides2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x361dc0e8_b56f_45e9_80fe_10a0fb0fe177); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsControlAutomationPeerOverrides2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OnCreateItemAutomationPeer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListBoxAutomationPeer { - type Vtable = IListBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8cd0d608_b402_4a6e_bd9a_343f8845eb32); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListBoxAutomationPeerFactory { - type Vtable = IListBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe2362185_7df6_49f7_8abc_4c33f1a3d46e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListBoxItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListBoxItemAutomationPeer { - type Vtable = IListBoxItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1bc6e1c6_2997_42df_99eb_92bc1dd149fb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListBoxItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListBoxItemAutomationPeerFactory { - type Vtable = IListBoxItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x509f9dd8_b0aa_443f_a110_41209af44f1c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListBoxItemDataAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListBoxItemDataAutomationPeer { - type Vtable = IListBoxItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfd7d5fee_fde0_482a_8084_dcebba5b9806); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemDataAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListBoxItemDataAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListBoxItemDataAutomationPeerFactory { - type Vtable = IListBoxItemDataAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd7924e16_bd8d_4662_a995_20ff9a056093); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListBoxItemDataAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListPickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListPickerFlyoutPresenterAutomationPeer { - type Vtable = IListPickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56dfdc58_2395_4060_8047_8ea463698a24); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListPickerFlyoutPresenterAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewAutomationPeer { - type Vtable = IListViewAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73cecc87_c0dc_4260_9148_75e9864a7230); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewAutomationPeerFactory { - type Vtable = IListViewAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x65f39174_eaa2_4e44_8be6_4cca28cd0288); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewBaseAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewBaseAutomationPeer { - type Vtable = IListViewBaseAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x87ec7649_b83d_4e55_9afd_bd835e748f5c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewBaseAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewBaseAutomationPeerFactory { - type Vtable = IListViewBaseAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x70d3c2be_8950_4647_9362_fd002f8ff82e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewBaseHeaderItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewBaseHeaderItemAutomationPeer { - type Vtable = IListViewBaseHeaderItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7cb8b732_c1f0_4a3c_bc14_85dd48dedb85); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseHeaderItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewBaseHeaderItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewBaseHeaderItemAutomationPeerFactory { - type Vtable = IListViewBaseHeaderItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40ec995f_d631_4004_832e_6d8643e51561); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewBaseHeaderItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewHeaderItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewHeaderItemAutomationPeer { - type Vtable = IListViewHeaderItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ab1e4b_ad61_4c88_ba45_0f3a8d061f8f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewHeaderItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewHeaderItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewHeaderItemAutomationPeerFactory { - type Vtable = IListViewHeaderItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07668694_2ca5_4be4_a8b9_592d48f76087); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewHeaderItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemAutomationPeer { - type Vtable = IListViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xca114e70_a16d_4d09_a1cf_1856ef98a9ec); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemAutomationPeerFactory { - type Vtable = IListViewItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc47dfbc0_facc_4024_a73b_17ec4e662654); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemDataAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemDataAutomationPeer { - type Vtable = IListViewItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15a8d7fd_d7a5_4a6c_963c_6f7ce464671a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemDataAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemDataAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemDataAutomationPeerFactory { - type Vtable = IListViewItemDataAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0db12bb_d715_4523_acc0_1e1072d8e32b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemDataAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILoopingSelectorAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILoopingSelectorAutomationPeer { - type Vtable = ILoopingSelectorAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x50b406ca_bae9_4816_8a3a_0cb4f96478a2); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILoopingSelectorItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILoopingSelectorItemAutomationPeer { - type Vtable = ILoopingSelectorItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3fa68bf_04cf_4f4c_8d3e_4780a19d4788); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILoopingSelectorItemDataAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILoopingSelectorItemDataAutomationPeer { - type Vtable = ILoopingSelectorItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef567e32_7cd2_4d32_9590_1f588d5ef38d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorItemDataAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlAutomationPeer { - type Vtable = IMapControlAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x425beee4_f2e8_4bcb_9382_5dfdd11fe45f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMediaElementAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMediaElementAutomationPeer { - type Vtable = IMediaElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xba0b9fc2_a6e2_41a5_b17a_d1594613efba); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaElementAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMediaElementAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMediaElementAutomationPeerFactory { - type Vtable = IMediaElementAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb2ad3b28_7575_4173_9bc7_80367a164ed2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaElementAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMediaPlayerElementAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMediaPlayerElementAutomationPeer { - type Vtable = IMediaPlayerElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02bed209_3f65_4fdd_b5ca_c4750d4e6ea4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaPlayerElementAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMediaPlayerElementAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMediaPlayerElementAutomationPeerFactory { - type Vtable = IMediaPlayerElementAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x08848077_82af_4d19_b170_282a9e0e7f37); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaPlayerElementAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMediaTransportControlsAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMediaTransportControlsAutomationPeer { - type Vtable = IMediaTransportControlsAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3ad8d93_79f8_4958_a3c8_980defb83d15); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaTransportControlsAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMediaTransportControlsAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMediaTransportControlsAutomationPeerFactory { - type Vtable = IMediaTransportControlsAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf41cb003_e103_4ab0_812a_a08fbdb570ce); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMediaTransportControlsAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuBarAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuBarAutomationPeer { - type Vtable = IMenuBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b6adcf1_f274_5592_85a8_7b099e99b320); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuBarAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuBarAutomationPeerFactory { - type Vtable = IMenuBarAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a094871_4a9b_5a0b_9fda_7bc3ae957c53); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstance: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuBarItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuBarItemAutomationPeer { - type Vtable = IMenuBarItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0fce49b4_cff5_5c4b_98ee_e75fdddf799a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuBarItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuBarItemAutomationPeerFactory { - type Vtable = IMenuBarItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9c77746_130f_5b19_83a6_61db584613aa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuBarItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstance: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuFlyoutItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuFlyoutItemAutomationPeer { - type Vtable = IMenuFlyoutItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1fc19462_21df_456e_aa11_8fac6b4b2af6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuFlyoutItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuFlyoutItemAutomationPeerFactory { - type Vtable = IMenuFlyoutItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd08bfcb8_20d1_45d8_a2c2_2f130df714e0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterAutomationPeer { - type Vtable = IMenuFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe244a871_fcbb_48fc_8a93_41ea134b53ce); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuFlyoutPresenterAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterAutomationPeerFactory { - type Vtable = IMenuFlyoutPresenterAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07b5172d_761d_452b_9e6d_fa2a8be0ad26); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct INavigationViewItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for INavigationViewItemAutomationPeer { - type Vtable = INavigationViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x309847a5_9971_4d8d_a81c_085c7086a1b9); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct INavigationViewItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for INavigationViewItemAutomationPeerFactory { - type Vtable = INavigationViewItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0bc2835d_aa38_4f97_9664_e6fc821d81ed); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPasswordBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPasswordBoxAutomationPeer { - type Vtable = IPasswordBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x684f065e_3df3_4b9f_82ad_8819db3b218a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPasswordBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPasswordBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPasswordBoxAutomationPeerFactory { - type Vtable = IPasswordBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xac3d7ede_dca4_481c_b520_4a9b3f3b179c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPasswordBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPersonPictureAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPersonPictureAutomationPeer { - type Vtable = IPersonPictureAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x27156d4c_a66f_4aaf_8286_4f796d30628c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPersonPictureAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPersonPictureAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPersonPictureAutomationPeerFactory { - type Vtable = IPersonPictureAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa95f1f6d_2524_44a4_97fd_1181130100ad); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPersonPictureAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPickerFlyoutPresenterAutomationPeer { - type Vtable = IPickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x28414bf7_8382_4eae_93c1_d6f035aa8155); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutPresenterAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotAutomationPeer { - type Vtable = IPivotAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe715a8f8_3b9d_402c_81e2_6e912ef58981); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotAutomationPeerFactory { - type Vtable = IPivotAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3efe0f94_0c91_4341_b9ac_1b56b4e6b84f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotItemAutomationPeer { - type Vtable = IPivotItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a4241ad_5d55_4d27_b40f_2d37506fbe78); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotItemAutomationPeerFactory { - type Vtable = IPivotItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2810471_183f_416b_b41a_1e5a958a91f4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotItemDataAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotItemDataAutomationPeer { - type Vtable = IPivotItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa2a3b788_ea1d_48b7_88ee_f08b6aa07fee); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemDataAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotItemDataAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotItemDataAutomationPeerFactory { - type Vtable = IPivotItemDataAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x517a2480_d3b6_412e_82b6_94a0a84c13b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotItemDataAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IProgressBarAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IProgressBarAutomationPeer { - type Vtable = IProgressBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93f48f86_d840_4fb6_ac2f_5f779b854b0d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressBarAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IProgressBarAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IProgressBarAutomationPeerFactory { - type Vtable = IProgressBarAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x364679ab_b80f_41b4_8eea_2f5251bc739c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressBarAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IProgressRingAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IProgressRingAutomationPeer { - type Vtable = IProgressRingAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbc305eee_39d3_4eeb_ac33_2394de123e2e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressRingAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IProgressRingAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IProgressRingAutomationPeerFactory { - type Vtable = IProgressRingAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3db204b_157e_40bc_9593_55bc5c71a4f6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressRingAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRadioButtonAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRadioButtonAutomationPeer { - type Vtable = IRadioButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e6a5ed8_0b30_4743_b102_dcdf548e3131); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRadioButtonAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRadioButtonAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRadioButtonAutomationPeerFactory { - type Vtable = IRadioButtonAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4940c4fd_3d88_49ca_8f31_924187af0bfe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRadioButtonAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeBaseAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeBaseAutomationPeer { - type Vtable = IRangeBaseAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe454b549_4b2c_42ad_b04b_d35947d1ee50); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeBaseAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeBaseAutomationPeerFactory { - type Vtable = IRangeBaseAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x827c7601_3078_4479_95ea_91374ca06207); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRatingControlAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRatingControlAutomationPeer { - type Vtable = IRatingControlAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d14349a_9963_4a47_823c_f457cb3209d5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRatingControlAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRatingControlAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRatingControlAutomationPeerFactory { - type Vtable = IRatingControlAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf179f272_9846_4632_8b9c_be6fa8d3c9bb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRatingControlAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRepeatButtonAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRepeatButtonAutomationPeer { - type Vtable = IRepeatButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x29e41ad5_a8ac_4e8a_83d8_09e37e054257); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButtonAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRepeatButtonAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRepeatButtonAutomationPeerFactory { - type Vtable = IRepeatButtonAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a6ff9d4_575e_4e60_bdd6_ec14419b4ff6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButtonAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRichEditBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRichEditBoxAutomationPeer { - type Vtable = IRichEditBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69f5c04_16ee_467a_a833_c3da8458ad64); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichEditBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRichEditBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRichEditBoxAutomationPeerFactory { - type Vtable = IRichEditBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x752c8399_d296_4d87_9020_a4750e885b3c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichEditBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRichTextBlockAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRichTextBlockAutomationPeer { - type Vtable = IRichTextBlockAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93a01a9c_9609_41fa_82f3_909c09f49a72); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRichTextBlockAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRichTextBlockAutomationPeerFactory { - type Vtable = IRichTextBlockAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2038ae61_1389_467a_aed6_37334da9622b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRichTextBlockOverflowAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRichTextBlockOverflowAutomationPeer { - type Vtable = IRichTextBlockOverflowAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8c9a409a_2736_437b_ab36_a16a202f105d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockOverflowAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRichTextBlockOverflowAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRichTextBlockOverflowAutomationPeerFactory { - type Vtable = IRichTextBlockOverflowAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbd5eb663_2c14_4665_adef_f2b033947beb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRichTextBlockOverflowAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollBarAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollBarAutomationPeer { - type Vtable = IScrollBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69e0c369_bbe7_41f2_87ca_aad813fe550e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBarAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollBarAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollBarAutomationPeerFactory { - type Vtable = IScrollBarAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe1302110_afeb_4595_8e3d_edc0844a2b21); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBarAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollViewerAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollViewerAutomationPeer { - type Vtable = IScrollViewerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd985f259_1b09_4e88_88fd_421750dc6b45); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollViewerAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollViewerAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollViewerAutomationPeerFactory { - type Vtable = IScrollViewerAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x270dff7d_d96d_48f9_a36a_c252aa9c4670); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollViewerAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISearchBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISearchBoxAutomationPeer { - type Vtable = ISearchBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x854011a4_18a6_4f30_939b_8871afa3f5e9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISearchBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISearchBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISearchBoxAutomationPeerFactory { - type Vtable = ISearchBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb3c01430_7faa_41bb_8e91_7c761c5267f1); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISearchBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorAutomationPeer { - type Vtable = ISelectorAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x162ac829_7115_43ec_b383_a7b71644069d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorAutomationPeerFactory { - type Vtable = ISelectorAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b525646_829b_4dcc_bd52_5a8d0399387a); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorItemAutomationPeer { - type Vtable = ISelectorItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae8b3477_860a_45bb_bf7c_e1b27419d1dd); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorItemAutomationPeerFactory { - type Vtable = ISelectorItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x66d7edfb_786d_4362_a964_ebfb21776c30); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithParentAndItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, parent: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISemanticZoomAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISemanticZoomAutomationPeer { - type Vtable = ISemanticZoomAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3c2fac6c_a977_47fc_b44e_2754c0b2bea9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISemanticZoomAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISemanticZoomAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISemanticZoomAutomationPeerFactory { - type Vtable = ISemanticZoomAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf518d44d_a493_4496_b077_9674c7f4c5fa); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISemanticZoomAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISettingsFlyoutAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISettingsFlyoutAutomationPeer { - type Vtable = ISettingsFlyoutAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd0de0cdb_30cf_47a6_a5eb_9c77f0b0d6dd); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISettingsFlyoutAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISettingsFlyoutAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISettingsFlyoutAutomationPeerFactory { - type Vtable = ISettingsFlyoutAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf94762bd_8a14_40e4_94a7_3f33c922e945); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISettingsFlyoutAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISliderAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISliderAutomationPeer { - type Vtable = ISliderAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xec30015a_d611_46d0_ae4f_6ecf27dfbaa5); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISliderAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISliderAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISliderAutomationPeerFactory { - type Vtable = ISliderAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x971b8056_9a7a_4df9_95fa_6f5c04c91cac); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISliderAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITextBlockAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITextBlockAutomationPeer { - type Vtable = ITextBlockAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbe2057f5_6715_4e69_a050_92bd0ce232a9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBlockAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITextBlockAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITextBlockAutomationPeerFactory { - type Vtable = ITextBlockAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x76bf924b_7ca0_4b01_bc5c_a8cf4d3691de); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBlockAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITextBoxAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITextBoxAutomationPeer { - type Vtable = ITextBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3a4f1ca0_5e5d_4d26_9067_e740bf657a9f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBoxAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITextBoxAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITextBoxAutomationPeerFactory { - type Vtable = ITextBoxAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x01f0c067_966b_4130_b872_469e42bd4a7f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextBoxAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IThumbAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IThumbAutomationPeer { - type Vtable = IThumbAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc2949b5_b45e_4d6d_892f_d9422c950efb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumbAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IThumbAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IThumbAutomationPeerFactory { - type Vtable = IThumbAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x970743ff_af41_4600_b55d_26d43df860e1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumbAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITimePickerAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITimePickerAutomationPeer { - type Vtable = ITimePickerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa43d44ef_3285_4df7_b4a4_e4cdf36a3a17); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITimePickerAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITimePickerAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITimePickerAutomationPeerFactory { - type Vtable = ITimePickerAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x978f6671_47f8_40a7_9e21_68128b16b4fd); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITimePickerAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITimePickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITimePickerFlyoutPresenterAutomationPeer { - type Vtable = ITimePickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda93ee27_82f1_4701_8706_be297bf06043); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITimePickerFlyoutPresenterAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleButtonAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleButtonAutomationPeer { - type Vtable = IToggleButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62dbe6c5_bc0a_45bb_bf77_ea0f1502891f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleButtonAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleButtonAutomationPeerFactory { - type Vtable = IToggleButtonAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9218cc4_ad4b_4d03_a6a4_7d59e6360004); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls_Primitives"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleMenuFlyoutItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleMenuFlyoutItemAutomationPeer { - type Vtable = IToggleMenuFlyoutItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b57eafe_6af1_4903_8373_3437bf352345); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleMenuFlyoutItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleMenuFlyoutItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleMenuFlyoutItemAutomationPeerFactory { - type Vtable = IToggleMenuFlyoutItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94364b77_8f6c_4837_aae3_94d010d8d162); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleMenuFlyoutItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleSwitchAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleSwitchAutomationPeer { - type Vtable = IToggleSwitchAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc011f174_e89e_4790_bf9a_78ebb5f59e9f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleSwitchAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleSwitchAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleSwitchAutomationPeerFactory { - type Vtable = IToggleSwitchAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x31f933e3_fef8_4419_9df5_d9ef7196ea34); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleSwitchAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITreeViewItemAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITreeViewItemAutomationPeer { - type Vtable = ITreeViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2331d648_b617_437f_920c_71d450503e65); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewItemAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITreeViewItemAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITreeViewItemAutomationPeerFactory { - type Vtable = ITreeViewItemAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73d388bf_1d01_4159_82c0_2b2996dbfdce); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewItemAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITreeViewListAutomationPeer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITreeViewListAutomationPeer { - type Vtable = ITreeViewListAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x71c1b5bc_bb29_4479_a8a8_606be6b823ae); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewListAutomationPeer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITreeViewListAutomationPeerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITreeViewListAutomationPeerFactory { - type Vtable = ITreeViewListAutomationPeerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00f597e2_f811_475a_bfe6_290fe707fa88); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITreeViewListAutomationPeerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Controls")] - pub CreateInstanceWithOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, owner: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Controls"))] - CreateInstanceWithOwner: usize, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ImageAutomationPeer(::windows::core::IUnknown); -impl ImageAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Image>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IImageAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IImageAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ImageAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ImageAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ImageAutomationPeer {} -impl ::core::fmt::Debug for ImageAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ImageAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ImageAutomationPeer { - type Vtable = IImageAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ImageAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ImageAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ImageAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ImageAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ImageAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ImageAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ImageAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ImageAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ImageAutomationPeer {} -unsafe impl ::core::marker::Sync for ImageAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct InkToolbarAutomationPeer(::windows::core::IUnknown); -impl InkToolbarAutomationPeer {} -impl ::core::clone::Clone for InkToolbarAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for InkToolbarAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for InkToolbarAutomationPeer {} -impl ::core::fmt::Debug for InkToolbarAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("InkToolbarAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for InkToolbarAutomationPeer { - type Vtable = IInkToolbarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&InkToolbarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &InkToolbarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: InkToolbarAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&InkToolbarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &InkToolbarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: InkToolbarAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: InkToolbarAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: InkToolbarAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for InkToolbarAutomationPeer {} -unsafe impl ::core::marker::Sync for InkToolbarAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ItemAutomationPeer(::windows::core::IUnknown); -impl ItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn Item(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Item)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn ItemsControlAutomationPeer(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemsControlAutomationPeer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithParentAndItem_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ItemsControlAutomationPeer>, T: ::windows::core::Compose>(item: Param0, parent: Param1, compose: T) -> ::windows::core::Result { - Self::IItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Realize)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ItemAutomationPeer {} -impl ::core::fmt::Debug for ItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ItemAutomationPeer { - type Vtable = IItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ItemsControlAutomationPeer(::windows::core::IUnknown); -impl ItemsControlAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindItemByProperty)(::windows::core::Interface::as_raw(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateItemAutomationPeer)(::windows::core::Interface::as_raw(this), item.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ItemsControl>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IItemsControlAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IItemsControlAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ItemsControlAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ItemsControlAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ItemsControlAutomationPeer {} -impl ::core::fmt::Debug for ItemsControlAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ItemsControlAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ItemsControlAutomationPeer { - type Vtable = IItemsControlAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ItemsControlAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ItemsControlAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ItemsControlAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ItemsControlAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ItemsControlAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ItemsControlAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ItemsControlAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ItemsControlAutomationPeer {} -unsafe impl ::core::marker::Sync for ItemsControlAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListBoxAutomationPeer(::windows::core::IUnknown); -impl ListBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListBox>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IListBoxAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IListBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListBoxAutomationPeer {} -impl ::core::fmt::Debug for ListBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListBoxAutomationPeer { - type Vtable = IListBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListBoxAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for ListBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListBoxItemAutomationPeer(::windows::core::IUnknown); -impl ListBoxItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListBoxItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IListBoxItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IListBoxItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListBoxItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListBoxItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListBoxItemAutomationPeer {} -impl ::core::fmt::Debug for ListBoxItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListBoxItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListBoxItemAutomationPeer { - type Vtable = IListBoxItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListBoxItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListBoxItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListBoxItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListBoxItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListBoxItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListBoxItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListBoxItemDataAutomationPeer(::windows::core::IUnknown); -impl ListBoxItemDataAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithParentAndItem_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ListBoxAutomationPeer>, T: ::windows::core::Compose>(item: Param0, parent: Param1, compose: T) -> ::windows::core::Result { - Self::IListBoxItemDataAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IListBoxItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListBoxItemDataAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListBoxItemDataAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListBoxItemDataAutomationPeer {} -impl ::core::fmt::Debug for ListBoxItemDataAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListBoxItemDataAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListBoxItemDataAutomationPeer { - type Vtable = IListBoxItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListBoxItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListBoxItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListBoxItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for ListBoxItemDataAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListPickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -impl ListPickerFlyoutPresenterAutomationPeer {} -impl ::core::clone::Clone for ListPickerFlyoutPresenterAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListPickerFlyoutPresenterAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListPickerFlyoutPresenterAutomationPeer {} -impl ::core::fmt::Debug for ListPickerFlyoutPresenterAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListPickerFlyoutPresenterAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListPickerFlyoutPresenterAutomationPeer { - type Vtable = IListPickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListPickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListPickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListPickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for ListPickerFlyoutPresenterAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListViewAutomationPeer(::windows::core::IUnknown); -impl ListViewAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListView>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IListViewAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IListViewAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListViewAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewAutomationPeer {} -impl ::core::fmt::Debug for ListViewAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewAutomationPeer { - type Vtable = IListViewAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for SelectorAutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListViewBaseAutomationPeer(::windows::core::IUnknown); -impl ListViewBaseAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<::windows::core::Array<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffects)(::windows::core::Interface::as_raw(this), ::windows::core::Array::<::windows::core::HSTRING>::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewBase>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IListViewBaseAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IListViewBaseAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListViewBaseAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewBaseAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewBaseAutomationPeer {} -impl ::core::fmt::Debug for ListViewBaseAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewBaseAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewBaseAutomationPeer { - type Vtable = IListViewBaseAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewBaseAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewBaseAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewBaseAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewBaseAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewBaseAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewBaseAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListViewBaseHeaderItemAutomationPeer(::windows::core::IUnknown); -impl ListViewBaseHeaderItemAutomationPeer {} -impl ::core::clone::Clone for ListViewBaseHeaderItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewBaseHeaderItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewBaseHeaderItemAutomationPeer {} -impl ::core::fmt::Debug for ListViewBaseHeaderItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewBaseHeaderItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewBaseHeaderItemAutomationPeer { - type Vtable = IListViewBaseHeaderItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewBaseHeaderItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewBaseHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewBaseHeaderItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewBaseHeaderItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListViewHeaderItemAutomationPeer(::windows::core::IUnknown); -impl ListViewHeaderItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewHeaderItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IListViewHeaderItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IListViewHeaderItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListViewHeaderItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewHeaderItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewHeaderItemAutomationPeer {} -impl ::core::fmt::Debug for ListViewHeaderItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewHeaderItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewHeaderItemAutomationPeer { - type Vtable = IListViewHeaderItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewHeaderItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ListViewBaseHeaderItemAutomationPeer { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewHeaderItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewHeaderItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewHeaderItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListViewItemAutomationPeer(::windows::core::IUnknown); -impl ListViewItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ListViewItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IListViewItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IListViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListViewItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewItemAutomationPeer {} -impl ::core::fmt::Debug for ListViewItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewItemAutomationPeer { - type Vtable = IListViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ListViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ListViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ListViewItemDataAutomationPeer(::windows::core::IUnknown); -impl ListViewItemDataAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithParentAndItem_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, ListViewBaseAutomationPeer>, T: ::windows::core::Compose>(item: Param0, parent: Param1, compose: T) -> ::windows::core::Result { - Self::IListViewItemDataAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IListViewItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListViewItemDataAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewItemDataAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewItemDataAutomationPeer {} -impl ::core::fmt::Debug for ListViewItemDataAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewItemDataAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewItemDataAutomationPeer { - type Vtable = IListViewItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ListViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for ItemAutomationPeer { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for AutomationPeer { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for ListViewItemDataAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct LoopingSelectorAutomationPeer(::windows::core::IUnknown); -impl LoopingSelectorAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Collapse)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Expand)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindItemByProperty)(::windows::core::Interface::as_raw(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Scroll)(::windows::core::Interface::as_raw(this), horizontalamount, verticalamount).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetScrollPercent)(::windows::core::Interface::as_raw(this), horizontalpercent, verticalpercent).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanSelectMultiple)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelectionRequired)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSelection)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::clone::Clone for LoopingSelectorAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LoopingSelectorAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LoopingSelectorAutomationPeer {} -impl ::core::fmt::Debug for LoopingSelectorAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LoopingSelectorAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LoopingSelectorAutomationPeer { - type Vtable = ILoopingSelectorAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorAutomationPeer {} -unsafe impl ::core::marker::Sync for LoopingSelectorAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct LoopingSelectorItemAutomationPeer(::windows::core::IUnknown); -impl LoopingSelectorItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelected)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionContainer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).AddToSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).RemoveFromSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Select)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::clone::Clone for LoopingSelectorItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LoopingSelectorItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LoopingSelectorItemAutomationPeer {} -impl ::core::fmt::Debug for LoopingSelectorItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LoopingSelectorItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LoopingSelectorItemAutomationPeer { - type Vtable = ILoopingSelectorItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorItemAutomationPeer {} -unsafe impl ::core::marker::Sync for LoopingSelectorItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct LoopingSelectorItemDataAutomationPeer(::windows::core::IUnknown); -impl LoopingSelectorItemDataAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Realize)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::clone::Clone for LoopingSelectorItemDataAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LoopingSelectorItemDataAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LoopingSelectorItemDataAutomationPeer {} -impl ::core::fmt::Debug for LoopingSelectorItemDataAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LoopingSelectorItemDataAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LoopingSelectorItemDataAutomationPeer { - type Vtable = ILoopingSelectorItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for LoopingSelectorItemDataAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MapControlAutomationPeer(::windows::core::IUnknown); -impl MapControlAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Scroll)(::windows::core::Interface::as_raw(this), horizontalamount, verticalamount).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetScrollPercent)(::windows::core::Interface::as_raw(this), horizontalpercent, verticalpercent).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanMove(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanMove)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanResize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanRotate)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Move)(::windows::core::Interface::as_raw(this), x, y).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Resize)(::windows::core::Interface::as_raw(this), width, height).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Rotate)(::windows::core::Interface::as_raw(this), degrees).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanZoom)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ZoomLevel(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn MaxZoom(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MaxZoom)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn MinZoom(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinZoom)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Zoom)(::windows::core::Interface::as_raw(this), zoom).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ZoomByUnit)(::windows::core::Interface::as_raw(this), zoomunit).ok() } - } -} -impl ::core::clone::Clone for MapControlAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlAutomationPeer {} -impl ::core::fmt::Debug for MapControlAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlAutomationPeer { - type Vtable = IMapControlAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MapControlAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MapControlAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MapControlAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapControlAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for MapControlAutomationPeer {} -unsafe impl ::core::marker::Sync for MapControlAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MediaElementAutomationPeer(::windows::core::IUnknown); -impl MediaElementAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaElement>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IMediaElementAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMediaElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MediaElementAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MediaElementAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MediaElementAutomationPeer {} -impl ::core::fmt::Debug for MediaElementAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MediaElementAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MediaElementAutomationPeer { - type Vtable = IMediaElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MediaElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MediaElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MediaElementAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MediaElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MediaElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MediaElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MediaElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MediaElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for MediaElementAutomationPeer {} -unsafe impl ::core::marker::Sync for MediaElementAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MediaPlayerElementAutomationPeer(::windows::core::IUnknown); -impl MediaPlayerElementAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaPlayerElement>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IMediaPlayerElementAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMediaPlayerElementAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MediaPlayerElementAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MediaPlayerElementAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MediaPlayerElementAutomationPeer {} -impl ::core::fmt::Debug for MediaPlayerElementAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MediaPlayerElementAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MediaPlayerElementAutomationPeer { - type Vtable = IMediaPlayerElementAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MediaPlayerElementAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MediaPlayerElementAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for MediaPlayerElementAutomationPeer {} -unsafe impl ::core::marker::Sync for MediaPlayerElementAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MediaTransportControlsAutomationPeer(::windows::core::IUnknown); -impl MediaTransportControlsAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MediaTransportControls>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IMediaTransportControlsAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMediaTransportControlsAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MediaTransportControlsAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MediaTransportControlsAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MediaTransportControlsAutomationPeer {} -impl ::core::fmt::Debug for MediaTransportControlsAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MediaTransportControlsAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MediaTransportControlsAutomationPeer { - type Vtable = IMediaTransportControlsAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MediaTransportControlsAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MediaTransportControlsAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for MediaTransportControlsAutomationPeer {} -unsafe impl ::core::marker::Sync for MediaTransportControlsAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MenuBarAutomationPeer(::windows::core::IUnknown); -impl MenuBarAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstance_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuBar>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IMenuBarAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMenuBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MenuBarAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MenuBarAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MenuBarAutomationPeer {} -impl ::core::fmt::Debug for MenuBarAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MenuBarAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MenuBarAutomationPeer { - type Vtable = IMenuBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuBarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuBarAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuBarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MenuBarAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MenuBarAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuBarAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for MenuBarAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuBarAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MenuBarItemAutomationPeer(::windows::core::IUnknown); -impl MenuBarItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Collapse)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Expand)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstance_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuBarItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IMenuBarItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMenuBarItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MenuBarItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MenuBarItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MenuBarItemAutomationPeer {} -impl ::core::fmt::Debug for MenuBarItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MenuBarItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MenuBarItemAutomationPeer { - type Vtable = IMenuBarItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuBarItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuBarItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuBarItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuBarItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuBarItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MenuBarItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuBarItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 MenuBarItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for MenuBarItemAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuBarItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MenuFlyoutItemAutomationPeer(::windows::core::IUnknown); -impl MenuFlyoutItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuFlyoutItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IMenuFlyoutItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMenuFlyoutItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MenuFlyoutItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MenuFlyoutItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MenuFlyoutItemAutomationPeer {} -impl ::core::fmt::Debug for MenuFlyoutItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MenuFlyoutItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MenuFlyoutItemAutomationPeer { - type Vtable = IMenuFlyoutItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: MenuFlyoutItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(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::From::from(&value) - } -} -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 MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 MenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for MenuFlyoutItemAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuFlyoutItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct MenuFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -impl MenuFlyoutPresenterAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::MenuFlyoutPresenter>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IMenuFlyoutPresenterAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMenuFlyoutPresenterAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MenuFlyoutPresenterAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MenuFlyoutPresenterAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MenuFlyoutPresenterAutomationPeer {} -impl ::core::fmt::Debug for MenuFlyoutPresenterAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MenuFlyoutPresenterAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MenuFlyoutPresenterAutomationPeer { - type Vtable = IMenuFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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 = "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 = "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) - } -} -#[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) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MenuFlyoutPresenterAutomationPeer> for super::super::DependencyObject { - fn from(value: &MenuFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MenuFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for MenuFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for MenuFlyoutPresenterAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct NavigationViewItemAutomationPeer(::windows::core::IUnknown); -impl NavigationViewItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::NavigationViewItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::INavigationViewItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn INavigationViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for NavigationViewItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for NavigationViewItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for NavigationViewItemAutomationPeer {} -impl ::core::fmt::Debug for NavigationViewItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("NavigationViewItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for NavigationViewItemAutomationPeer { - type Vtable = INavigationViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: NavigationViewItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&NavigationViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &NavigationViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ListViewItemAutomationPeer { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: NavigationViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 NavigationViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for NavigationViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for NavigationViewItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct PasswordBoxAutomationPeer(::windows::core::IUnknown); -impl PasswordBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PasswordBox>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IPasswordBoxAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IPasswordBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PasswordBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PasswordBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PasswordBoxAutomationPeer {} -impl ::core::fmt::Debug for PasswordBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PasswordBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PasswordBoxAutomationPeer { - type Vtable = IPasswordBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: PasswordBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PasswordBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PasswordBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PasswordBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PasswordBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PasswordBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PasswordBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: PasswordBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: PasswordBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 PasswordBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for PasswordBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for PasswordBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct PatternInterface(pub i32); -impl PatternInterface { - pub const Invoke: Self = Self(0i32); - pub const Selection: Self = Self(1i32); - pub const Value: Self = Self(2i32); - pub const RangeValue: Self = Self(3i32); - pub const Scroll: Self = Self(4i32); - pub const ScrollItem: Self = Self(5i32); - pub const ExpandCollapse: Self = Self(6i32); - pub const Grid: Self = Self(7i32); - pub const GridItem: Self = Self(8i32); - pub const MultipleView: Self = Self(9i32); - pub const Window: Self = Self(10i32); - pub const SelectionItem: Self = Self(11i32); - pub const Dock: Self = Self(12i32); - pub const Table: Self = Self(13i32); - pub const TableItem: Self = Self(14i32); - pub const Toggle: Self = Self(15i32); - pub const Transform: Self = Self(16i32); - pub const Text: Self = Self(17i32); - pub const ItemContainer: Self = Self(18i32); - pub const VirtualizedItem: Self = Self(19i32); - pub const Text2: Self = Self(20i32); - pub const TextChild: Self = Self(21i32); - pub const TextRange: Self = Self(22i32); - pub const Annotation: Self = Self(23i32); - pub const Drag: Self = Self(24i32); - pub const DropTarget: Self = Self(25i32); - pub const ObjectModel: Self = Self(26i32); - pub const Spreadsheet: Self = Self(27i32); - pub const SpreadsheetItem: Self = Self(28i32); - pub const Styles: Self = Self(29i32); - pub const Transform2: Self = Self(30i32); - pub const SynchronizedInput: Self = Self(31i32); - pub const TextEdit: Self = Self(32i32); - pub const CustomNavigation: Self = Self(33i32); -} -impl ::core::marker::Copy for PatternInterface {} -impl ::core::clone::Clone for PatternInterface { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for PatternInterface { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for PatternInterface { - type Abi = Self; -} -impl ::core::fmt::Debug for PatternInterface { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PatternInterface").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct PersonPictureAutomationPeer(::windows::core::IUnknown); -impl PersonPictureAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::PersonPicture>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IPersonPictureAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IPersonPictureAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PersonPictureAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PersonPictureAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PersonPictureAutomationPeer {} -impl ::core::fmt::Debug for PersonPictureAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PersonPictureAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PersonPictureAutomationPeer { - type Vtable = IPersonPictureAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PersonPictureAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PersonPictureAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PersonPictureAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PersonPictureAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PersonPictureAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: PersonPictureAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PersonPictureAutomationPeer> for AutomationPeer { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PersonPictureAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PersonPictureAutomationPeer> for super::super::DependencyObject { - fn from(value: &PersonPictureAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PersonPictureAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for PersonPictureAutomationPeer {} -unsafe impl ::core::marker::Sync for PersonPictureAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct PickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -impl PickerFlyoutPresenterAutomationPeer {} -impl ::core::clone::Clone for PickerFlyoutPresenterAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PickerFlyoutPresenterAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PickerFlyoutPresenterAutomationPeer {} -impl ::core::fmt::Debug for PickerFlyoutPresenterAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PickerFlyoutPresenterAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PickerFlyoutPresenterAutomationPeer { - type Vtable = IPickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PickerFlyoutPresenterAutomationPeer> for AutomationPeer { - fn from(value: &PickerFlyoutPresenterAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for PickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for PickerFlyoutPresenterAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct PivotAutomationPeer(::windows::core::IUnknown); -impl PivotAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Scroll)(::windows::core::Interface::as_raw(this), horizontalamount, verticalamount).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetScrollPercent)(::windows::core::Interface::as_raw(this), horizontalpercent, verticalpercent).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanSelectMultiple)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelectionRequired)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSelection)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc(hidden)] - pub fn IPivotAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PivotAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PivotAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PivotAutomationPeer {} -impl ::core::fmt::Debug for PivotAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PivotAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PivotAutomationPeer { - type Vtable = IPivotAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: PivotAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PivotAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PivotAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollProvider { - 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::IScrollProvider { - 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::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::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) - } -} -#[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) - } -} -#[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) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: PivotAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PivotAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: PivotAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 PivotAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for PivotAutomationPeer {} -unsafe impl ::core::marker::Sync for PivotAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct PivotItemAutomationPeer(::windows::core::IUnknown); -impl PivotItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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 { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IPivotItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PivotItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PivotItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PivotItemAutomationPeer {} -impl ::core::fmt::Debug for PivotItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PivotItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PivotItemAutomationPeer { - type Vtable = IPivotItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PivotItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PivotItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: PivotItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PivotItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &PivotItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for PivotItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: PivotItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PivotItemAutomationPeer> for AutomationPeer { - fn from(value: &PivotItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PivotItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &PivotItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for PivotItemAutomationPeer {} -unsafe impl ::core::marker::Sync for PivotItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct PivotItemDataAutomationPeer(::windows::core::IUnknown); -impl PivotItemDataAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelected)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionContainer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).AddToSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).RemoveFromSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Select)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Realize)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IPivotItemDataAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PivotItemDataAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PivotItemDataAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PivotItemDataAutomationPeer {} -impl ::core::fmt::Debug for PivotItemDataAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PivotItemDataAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PivotItemDataAutomationPeer { - type Vtable = IPivotItemDataAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotItemDataAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &PivotItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotItemDataAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotItemDataAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &PivotItemDataAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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 = "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) - } -} -#[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) - } -} -#[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 = "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 = "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) - } -} -#[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 = "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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -impl ::core::convert::From for ItemAutomationPeer { - fn from(value: PivotItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PivotItemDataAutomationPeer> for ItemAutomationPeer { - fn from(value: &PivotItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemAutomationPeer> for PivotItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: PivotItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PivotItemDataAutomationPeer> for AutomationPeer { - fn from(value: &PivotItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for PivotItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotItemDataAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&PivotItemDataAutomationPeer> for super::super::DependencyObject { - fn from(value: &PivotItemDataAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for PivotItemDataAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for PivotItemDataAutomationPeer {} -unsafe impl ::core::marker::Sync for PivotItemDataAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ProgressBarAutomationPeer(::windows::core::IUnknown); -impl ProgressBarAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ProgressBar>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IProgressBarAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IProgressBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ProgressBarAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ProgressBarAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ProgressBarAutomationPeer {} -impl ::core::fmt::Debug for ProgressBarAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ProgressBarAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ProgressBarAutomationPeer { - type Vtable = IProgressBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: ProgressBarAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressBarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ProgressBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressBarAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressBarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ProgressBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { - type Error = ::windows::core::Error; - fn try_from(value: ProgressBarAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ProgressBarAutomationPeer> for super::Provider::IRangeValueProvider { - type Error = ::windows::core::Error; - 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::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::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 RangeBaseAutomationPeer { - fn from(value: ProgressBarAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ProgressBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ProgressBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: ProgressBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ProgressBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ProgressBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ProgressBarAutomationPeer {} -unsafe impl ::core::marker::Sync for ProgressBarAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ProgressRingAutomationPeer(::windows::core::IUnknown); -impl ProgressRingAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ProgressRing>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IProgressRingAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IProgressRingAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ProgressRingAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ProgressRingAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ProgressRingAutomationPeer {} -impl ::core::fmt::Debug for ProgressRingAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ProgressRingAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ProgressRingAutomationPeer { - type Vtable = IProgressRingAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: ProgressRingAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressRingAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ProgressRingAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressRingAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressRingAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ProgressRingAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ProgressRingAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ProgressRingAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: ProgressRingAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ProgressRingAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressRingAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ProgressRingAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ProgressRingAutomationPeer {} -unsafe impl ::core::marker::Sync for ProgressRingAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct RadioButtonAutomationPeer(::windows::core::IUnknown); -impl RadioButtonAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RadioButton>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IRadioButtonAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelected)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionContainer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).AddToSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).RemoveFromSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Select)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IRadioButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RadioButtonAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RadioButtonAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RadioButtonAutomationPeer {} -impl ::core::fmt::Debug for RadioButtonAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RadioButtonAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RadioButtonAutomationPeer { - type Vtable = IRadioButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RadioButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RadioButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RadioButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RadioButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RadioButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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 = "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) - } -} -#[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 = "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 ::core::convert::From for ToggleButtonAutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RadioButtonAutomationPeer> for ToggleButtonAutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ToggleButtonAutomationPeer> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ToggleButtonAutomationPeer> { - ::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(self)) - } -} -impl ::core::convert::From for ButtonBaseAutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RadioButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RadioButtonAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RadioButtonAutomationPeer> for AutomationPeer { - fn from(value: &RadioButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RadioButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RadioButtonAutomationPeer> for super::super::DependencyObject { - fn from(value: &RadioButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RadioButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for RadioButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for RadioButtonAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct RangeBaseAutomationPeer(::windows::core::IUnknown); -impl RangeBaseAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::RangeBase>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IRangeBaseAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsReadOnly)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LargeChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Maximum)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Minimum)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SmallChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn Value(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Value)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetValue)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc(hidden)] - pub fn IRangeBaseAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RangeBaseAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RangeBaseAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RangeBaseAutomationPeer {} -impl ::core::fmt::Debug for RangeBaseAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RangeBaseAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RangeBaseAutomationPeer { - type Vtable = IRangeBaseAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: RangeBaseAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeBaseAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RangeBaseAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RangeBaseAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeBaseAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RangeBaseAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IRangeValueProvider { - type Error = ::windows::core::Error; - fn try_from(value: RangeBaseAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&RangeBaseAutomationPeer> for super::Provider::IRangeValueProvider { - type Error = ::windows::core::Error; - 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::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::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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: RangeBaseAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RangeBaseAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for RangeBaseAutomationPeer {} -unsafe impl ::core::marker::Sync for RangeBaseAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct RatingControlAutomationPeer(::windows::core::IUnknown); -impl RatingControlAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RatingControl>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IRatingControlAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRatingControlAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RatingControlAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RatingControlAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RatingControlAutomationPeer {} -impl ::core::fmt::Debug for RatingControlAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RatingControlAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RatingControlAutomationPeer { - type Vtable = IRatingControlAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RatingControlAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RatingControlAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RatingControlAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RatingControlAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RatingControlAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RatingControlAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: RatingControlAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RatingControlAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for RatingControlAutomationPeer {} -unsafe impl ::core::marker::Sync for RatingControlAutomationPeer {} -#[repr(C)] -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -pub struct RawElementProviderRuntimeId { - pub Part1: u32, - pub Part2: u32, -} -impl ::core::marker::Copy for RawElementProviderRuntimeId {} -impl ::core::clone::Clone for RawElementProviderRuntimeId { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for RawElementProviderRuntimeId { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RawElementProviderRuntimeId").field("Part1", &self.Part1).field("Part2", &self.Part2).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -impl ::core::cmp::PartialEq for RawElementProviderRuntimeId { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for RawElementProviderRuntimeId {} -impl ::core::default::Default for RawElementProviderRuntimeId { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct RepeatButtonAutomationPeer(::windows::core::IUnknown); -impl RepeatButtonAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::RepeatButton>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IRepeatButtonAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRepeatButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RepeatButtonAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RepeatButtonAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RepeatButtonAutomationPeer {} -impl ::core::fmt::Debug for RepeatButtonAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RepeatButtonAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RepeatButtonAutomationPeer { - type Vtable = IRepeatButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RepeatButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RepeatButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RepeatButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RepeatButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RepeatButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - fn try_from(value: RepeatButtonAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&RepeatButtonAutomationPeer> for super::Provider::IInvokeProvider { - type Error = ::windows::core::Error; - 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::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::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 ButtonBaseAutomationPeer { - fn from(value: RepeatButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RepeatButtonAutomationPeer> for ButtonBaseAutomationPeer { - fn from(value: &RepeatButtonAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBaseAutomationPeer> for RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBaseAutomationPeer> { - ::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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RepeatButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: RepeatButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: RepeatButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 RepeatButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for RepeatButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for RepeatButtonAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct RichEditBoxAutomationPeer(::windows::core::IUnknown); -impl RichEditBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichEditBox>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IRichEditBoxAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRichEditBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RichEditBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RichEditBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RichEditBoxAutomationPeer {} -impl ::core::fmt::Debug for RichEditBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RichEditBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RichEditBoxAutomationPeer { - type Vtable = IRichEditBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: RichEditBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RichEditBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RichEditBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RichEditBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RichEditBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RichEditBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RichEditBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RichEditBoxAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RichEditBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichEditBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: RichEditBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RichEditBoxAutomationPeer> for AutomationPeer { - fn from(value: &RichEditBoxAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichEditBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RichEditBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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, super::super::DependencyObject> for RichEditBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&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)) - } -} -unsafe impl ::core::marker::Send for RichEditBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for RichEditBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct RichTextBlockAutomationPeer(::windows::core::IUnknown); -impl RichTextBlockAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichTextBlock>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IRichTextBlockAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRichTextBlockAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RichTextBlockAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RichTextBlockAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RichTextBlockAutomationPeer {} -impl ::core::fmt::Debug for RichTextBlockAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RichTextBlockAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RichTextBlockAutomationPeer { - type Vtable = IRichTextBlockAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RichTextBlockAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RichTextBlockAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RichTextBlockAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RichTextBlockAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RichTextBlockAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RichTextBlockAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: RichTextBlockAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 RichTextBlockAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: RichTextBlockAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 RichTextBlockAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for RichTextBlockAutomationPeer {} -unsafe impl ::core::marker::Sync for RichTextBlockAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct RichTextBlockOverflowAutomationPeer(::windows::core::IUnknown); -impl RichTextBlockOverflowAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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 { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::RichTextBlockOverflow>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IRichTextBlockOverflowAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRichTextBlockOverflowAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RichTextBlockOverflowAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RichTextBlockOverflowAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RichTextBlockOverflowAutomationPeer {} -impl ::core::fmt::Debug for RichTextBlockOverflowAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RichTextBlockOverflowAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RichTextBlockOverflowAutomationPeer { - type Vtable = IRichTextBlockOverflowAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for RichTextBlockOverflowAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for AutomationPeer { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for RichTextBlockOverflowAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RichTextBlockOverflowAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&RichTextBlockOverflowAutomationPeer> for super::super::DependencyObject { - fn from(value: &RichTextBlockOverflowAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for RichTextBlockOverflowAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for RichTextBlockOverflowAutomationPeer {} -unsafe impl ::core::marker::Sync for RichTextBlockOverflowAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ScrollBarAutomationPeer(::windows::core::IUnknown); -impl ScrollBarAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ScrollBar>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IScrollBarAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IScrollBarAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ScrollBarAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ScrollBarAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ScrollBarAutomationPeer {} -impl ::core::fmt::Debug for ScrollBarAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollBarAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ScrollBarAutomationPeer { - type Vtable = IScrollBarAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollBarAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ScrollBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollBarAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollBarAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ScrollBarAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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 = "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) - } -} -#[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 = "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 ::core::convert::From for RangeBaseAutomationPeer { - fn from(value: ScrollBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ScrollBarAutomationPeer> for RangeBaseAutomationPeer { - fn from(value: &ScrollBarAutomationPeer) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ScrollBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ScrollBarAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ScrollBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ScrollBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ScrollBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ScrollBarAutomationPeer> for AutomationPeer { - fn from(value: &ScrollBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ScrollBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ScrollBarAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ScrollBarAutomationPeer> for super::super::DependencyObject { - fn from(value: &ScrollBarAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ScrollBarAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ScrollBarAutomationPeer {} -unsafe impl ::core::marker::Sync for ScrollBarAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ScrollViewerAutomationPeer(::windows::core::IUnknown); -impl ScrollViewerAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Scroll)(::windows::core::Interface::as_raw(this), horizontalamount, verticalamount).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).SetScrollPercent)(::windows::core::Interface::as_raw(this), horizontalpercent, verticalpercent).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ScrollViewer>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IScrollViewerAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IScrollViewerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ScrollViewerAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ScrollViewerAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ScrollViewerAutomationPeer {} -impl ::core::fmt::Debug for ScrollViewerAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollViewerAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ScrollViewerAutomationPeer { - type Vtable = IScrollViewerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: ScrollViewerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollViewerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ScrollViewerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollViewerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollViewerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ScrollViewerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IScrollProvider { - type Error = ::windows::core::Error; - fn try_from(value: ScrollViewerAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ScrollViewerAutomationPeer> for super::Provider::IScrollProvider { - type Error = ::windows::core::Error; - 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::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::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: ScrollViewerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ScrollViewerAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ScrollViewerAutomationPeer) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ScrollViewerAutomationPeer {} -unsafe impl ::core::marker::Sync for ScrollViewerAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct SearchBoxAutomationPeer(::windows::core::IUnknown); -impl SearchBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SearchBox>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ISearchBoxAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISearchBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SearchBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SearchBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SearchBoxAutomationPeer {} -impl ::core::fmt::Debug for SearchBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SearchBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SearchBoxAutomationPeer { - type Vtable = ISearchBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SearchBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SearchBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SearchBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SearchBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SearchBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SearchBoxAutomationPeer) -> Self { - ::core::convert::From::from(&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 SearchBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: SearchBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SearchBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: SearchBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SearchBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SearchBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for SearchBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct SelectorAutomationPeer(::windows::core::IUnknown); -impl SelectorAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanSelectMultiple)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelectionRequired)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSelection)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::Selector>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ISelectorAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISelectorAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SelectorAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SelectorAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SelectorAutomationPeer {} -impl ::core::fmt::Debug for SelectorAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SelectorAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SelectorAutomationPeer { - type Vtable = ISelectorAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: SelectorAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectorAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SelectorAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectorAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectorAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SelectorAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: SelectorAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SelectorAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &SelectorAutomationPeer) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SelectorAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: SelectorAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: SelectorAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SelectorAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SelectorAutomationPeer {} -unsafe impl ::core::marker::Sync for SelectorAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct SelectorItemAutomationPeer(::windows::core::IUnknown); -impl SelectorItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelected)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionContainer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).AddToSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).RemoveFromSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Select)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - 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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] - pub fn CreateInstanceWithParentAndItem_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>, Param1: ::windows::core::IntoParam<'a, SelectorAutomationPeer>, T: ::windows::core::Compose>(item: Param0, parent: Param1, compose: T) -> ::windows::core::Result { - Self::ISelectorItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithParentAndItem)(::windows::core::Interface::as_raw(this), item.into_param().abi(), parent.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISelectorItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SelectorItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SelectorItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SelectorItemAutomationPeer {} -impl ::core::fmt::Debug for SelectorItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SelectorItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SelectorItemAutomationPeer { - type Vtable = ISelectorItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: SelectorItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectorItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectorItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectorItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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 ItemAutomationPeer { - fn from(value: SelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SelectorItemAutomationPeer> for ItemAutomationPeer { - fn from(value: &SelectorItemAutomationPeer) -> 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::IntoParam::into_param(&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 ::core::convert::From for AutomationPeer { - fn from(value: SelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: SelectorItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SelectorItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SelectorItemAutomationPeer {} -unsafe impl ::core::marker::Sync for SelectorItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct SemanticZoomAutomationPeer(::windows::core::IUnknown); -impl SemanticZoomAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SemanticZoom>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ISemanticZoomAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ToggleState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Toggle)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn ISemanticZoomAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SemanticZoomAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SemanticZoomAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SemanticZoomAutomationPeer {} -impl ::core::fmt::Debug for SemanticZoomAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SemanticZoomAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SemanticZoomAutomationPeer { - type Vtable = ISemanticZoomAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: SemanticZoomAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SemanticZoomAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SemanticZoomAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SemanticZoomAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SemanticZoomAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SemanticZoomAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(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::From::from(&value) - } -} -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 SemanticZoomAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: SemanticZoomAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SemanticZoomAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: SemanticZoomAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SemanticZoomAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SemanticZoomAutomationPeer {} -unsafe impl ::core::marker::Sync for SemanticZoomAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct SettingsFlyoutAutomationPeer(::windows::core::IUnknown); -impl SettingsFlyoutAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::SettingsFlyout>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ISettingsFlyoutAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISettingsFlyoutAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SettingsFlyoutAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SettingsFlyoutAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SettingsFlyoutAutomationPeer {} -impl ::core::fmt::Debug for SettingsFlyoutAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SettingsFlyoutAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SettingsFlyoutAutomationPeer { - type Vtable = ISettingsFlyoutAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: SettingsFlyoutAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SettingsFlyoutAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SettingsFlyoutAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SettingsFlyoutAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SettingsFlyoutAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SettingsFlyoutAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: SettingsFlyoutAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 SettingsFlyoutAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SettingsFlyoutAutomationPeer {} -unsafe impl ::core::marker::Sync for SettingsFlyoutAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct SliderAutomationPeer(::windows::core::IUnknown); -impl SliderAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Slider>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ISliderAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISliderAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SliderAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SliderAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SliderAutomationPeer {} -impl ::core::fmt::Debug for SliderAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SliderAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SliderAutomationPeer { - type Vtable = ISliderAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SliderAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &SliderAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SliderAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SliderAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &SliderAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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 = "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) - } -} -#[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 = "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 ::core::convert::From for RangeBaseAutomationPeer { - fn from(value: SliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SliderAutomationPeer> for RangeBaseAutomationPeer { - fn from(value: &SliderAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, RangeBaseAutomationPeer> for SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, RangeBaseAutomationPeer> { - ::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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: SliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SliderAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &SliderAutomationPeer) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: SliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SliderAutomationPeer> for AutomationPeer { - fn from(value: &SliderAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SliderAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SliderAutomationPeer> for super::super::DependencyObject { - fn from(value: &SliderAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SliderAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SliderAutomationPeer {} -unsafe impl ::core::marker::Sync for SliderAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct TextBlockAutomationPeer(::windows::core::IUnknown); -impl TextBlockAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TextBlock>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ITextBlockAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITextBlockAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TextBlockAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TextBlockAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TextBlockAutomationPeer {} -impl ::core::fmt::Debug for TextBlockAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TextBlockAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TextBlockAutomationPeer { - type Vtable = ITextBlockAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: TextBlockAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TextBlockAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TextBlockAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TextBlockAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TextBlockAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TextBlockAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TextBlockAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TextBlockAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: TextBlockAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TextBlockAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: TextBlockAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TextBlockAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for TextBlockAutomationPeer {} -unsafe impl ::core::marker::Sync for TextBlockAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct TextBoxAutomationPeer(::windows::core::IUnknown); -impl TextBoxAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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 { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TextBox>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ITextBoxAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITextBoxAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TextBoxAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TextBoxAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TextBoxAutomationPeer {} -impl ::core::fmt::Debug for TextBoxAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TextBoxAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TextBoxAutomationPeer { - type Vtable = ITextBoxAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: TextBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TextBoxAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TextBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TextBoxAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TextBoxAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TextBoxAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TextBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TextBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: TextBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TextBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: TextBoxAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TextBoxAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for TextBoxAutomationPeer {} -unsafe impl ::core::marker::Sync for TextBoxAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ThumbAutomationPeer(::windows::core::IUnknown); -impl ThumbAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::Thumb>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IThumbAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IThumbAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ThumbAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ThumbAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ThumbAutomationPeer {} -impl ::core::fmt::Debug for ThumbAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ThumbAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ThumbAutomationPeer { - type Vtable = IThumbAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ThumbAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ThumbAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ThumbAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ThumbAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ThumbAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ThumbAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ThumbAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ThumbAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ThumbAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ThumbAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ThumbAutomationPeer> for AutomationPeer { - fn from(value: &ThumbAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ThumbAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ThumbAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ThumbAutomationPeer> for super::super::DependencyObject { - fn from(value: &ThumbAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ThumbAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ThumbAutomationPeer {} -unsafe impl ::core::marker::Sync for ThumbAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct TimePickerAutomationPeer(::windows::core::IUnknown); -impl TimePickerAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TimePicker>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ITimePickerAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITimePickerAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TimePickerAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TimePickerAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TimePickerAutomationPeer {} -impl ::core::fmt::Debug for TimePickerAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TimePickerAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TimePickerAutomationPeer { - type Vtable = ITimePickerAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: TimePickerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TimePickerAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TimePickerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TimePickerAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TimePickerAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TimePickerAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TimePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TimePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: TimePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TimePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: TimePickerAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TimePickerAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for TimePickerAutomationPeer {} -unsafe impl ::core::marker::Sync for TimePickerAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct TimePickerFlyoutPresenterAutomationPeer(::windows::core::IUnknown); -impl TimePickerFlyoutPresenterAutomationPeer {} -impl ::core::clone::Clone for TimePickerFlyoutPresenterAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TimePickerFlyoutPresenterAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TimePickerFlyoutPresenterAutomationPeer {} -impl ::core::fmt::Debug for TimePickerFlyoutPresenterAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TimePickerFlyoutPresenterAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TimePickerFlyoutPresenterAutomationPeer { - type Vtable = ITimePickerFlyoutPresenterAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: TimePickerFlyoutPresenterAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TimePickerFlyoutPresenterAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TimePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TimePickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TimePickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: TimePickerFlyoutPresenterAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 TimePickerFlyoutPresenterAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for TimePickerFlyoutPresenterAutomationPeer {} -unsafe impl ::core::marker::Sync for TimePickerFlyoutPresenterAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ToggleButtonAutomationPeer(::windows::core::IUnknown); -impl ToggleButtonAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::Primitives::ToggleButton>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IToggleButtonAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ToggleState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Toggle)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IToggleButtonAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ToggleButtonAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ToggleButtonAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ToggleButtonAutomationPeer {} -impl ::core::fmt::Debug for ToggleButtonAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ToggleButtonAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ToggleButtonAutomationPeer { - type Vtable = IToggleButtonAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: ToggleButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleButtonAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleButtonAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleButtonAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: ToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleButtonAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ToggleButtonAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ToggleButtonAutomationPeer {} -unsafe impl ::core::marker::Sync for ToggleButtonAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ToggleMenuFlyoutItemAutomationPeer(::windows::core::IUnknown); -impl ToggleMenuFlyoutItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ToggleMenuFlyoutItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IToggleMenuFlyoutItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ToggleState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Toggle)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc(hidden)] - pub fn IToggleMenuFlyoutItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ToggleMenuFlyoutItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ToggleMenuFlyoutItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ToggleMenuFlyoutItemAutomationPeer {} -impl ::core::fmt::Debug for ToggleMenuFlyoutItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ToggleMenuFlyoutItemAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ToggleMenuFlyoutItemAutomationPeer { - type Vtable = IToggleMenuFlyoutItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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: ToggleMenuFlyoutItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleMenuFlyoutItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ToggleMenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IToggleProvider { - type Error = ::windows::core::Error; - fn try_from(value: ToggleMenuFlyoutItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&ToggleMenuFlyoutItemAutomationPeer> for super::Provider::IToggleProvider { - type Error = ::windows::core::Error; - 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 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 &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: ToggleMenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ToggleMenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for AutomationPeer { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ToggleMenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleMenuFlyoutItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -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 ToggleMenuFlyoutItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ToggleMenuFlyoutItemAutomationPeer {} -unsafe impl ::core::marker::Sync for ToggleMenuFlyoutItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct ToggleSwitchAutomationPeer(::windows::core::IUnknown); -impl ToggleSwitchAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Provider")] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ToggleState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Toggle)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::ToggleSwitch>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::IToggleSwitchAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IToggleSwitchAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ToggleSwitchAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ToggleSwitchAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ToggleSwitchAutomationPeer {} -impl ::core::fmt::Debug for ToggleSwitchAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ToggleSwitchAutomationPeer").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ToggleSwitchAutomationPeer { - type Vtable = IToggleSwitchAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleSwitchAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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 = "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) - } -} -#[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 = "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) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: ToggleSwitchAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for ToggleSwitchAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: ToggleSwitchAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for AutomationPeer { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for ToggleSwitchAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleSwitchAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleSwitchAutomationPeer> for super::super::DependencyObject { - fn from(value: &ToggleSwitchAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleSwitchAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ToggleSwitchAutomationPeer {} -unsafe impl ::core::marker::Sync for ToggleSwitchAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct TreeViewItemAutomationPeer(::windows::core::IUnknown); -impl TreeViewItemAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Collapse)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Automation_Provider\"`*"] - #[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).Expand)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TreeViewItem>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ITreeViewItemAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITreeViewItemAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TreeViewItemAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TreeViewItemAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TreeViewItemAutomationPeer {} -impl ::core::fmt::Debug for TreeViewItemAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TreeViewItemAutomationPeer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TreeViewItemAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TreeViewItemAutomationPeer;{2331d648-b617-437f-920c-71d450503e65})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TreeViewItemAutomationPeer { - type Vtable = ITreeViewItemAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for TreeViewItemAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TreeViewItemAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TreeViewItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TreeViewItemAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TreeViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TreeViewItemAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TreeViewItemAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TreeViewItemAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: TreeViewItemAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&TreeViewItemAutomationPeer> for super::Provider::IExpandCollapseProvider { - type Error = ::windows::core::Error; - fn try_from(value: &TreeViewItemAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IExpandCollapseProvider> for TreeViewItemAutomationPeer { - 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 &TreeViewItemAutomationPeer { - 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 ListViewItemAutomationPeer { - fn from(value: TreeViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewItemAutomationPeer> for ListViewItemAutomationPeer { - fn from(value: &TreeViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewItemAutomationPeer> for TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewItemAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ListViewItemAutomationPeer> for &TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ListViewItemAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for FrameworkElementAutomationPeer { - fn from(value: TreeViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewItemAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &TreeViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: TreeViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewItemAutomationPeer> for AutomationPeer { - fn from(value: &TreeViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: TreeViewItemAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewItemAutomationPeer> for super::super::DependencyObject { - fn from(value: &TreeViewItemAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TreeViewItemAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for TreeViewItemAutomationPeer {} -unsafe impl ::core::marker::Sync for TreeViewItemAutomationPeer {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`*"] -#[repr(transparent)] -pub struct TreeViewListAutomationPeer(::windows::core::IUnknown); -impl TreeViewListAutomationPeer { - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TreeViewList>>(owner: Param0) -> ::windows::core::Result { - Self::ITreeViewListAutomationPeerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Peers\"`, `\"UI_Xaml_Controls\"`*"] - #[cfg(feature = "UI_Xaml_Controls")] - pub fn CreateInstanceWithOwner_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::Controls::TreeViewList>, T: ::windows::core::Compose>(owner: Param0, compose: T) -> ::windows::core::Result { - Self::ITreeViewListAutomationPeerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithOwner)(::windows::core::Interface::as_raw(this), owner.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITreeViewListAutomationPeerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TreeViewListAutomationPeer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TreeViewListAutomationPeer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TreeViewListAutomationPeer {} -impl ::core::fmt::Debug for TreeViewListAutomationPeer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TreeViewListAutomationPeer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TreeViewListAutomationPeer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.Peers.TreeViewListAutomationPeer;{71c1b5bc-bb29-4479-a8a8-606be6b823ae})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TreeViewListAutomationPeer { - type Vtable = ITreeViewListAutomationPeer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for TreeViewListAutomationPeer { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Peers.TreeViewListAutomationPeer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TreeViewListAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TreeViewListAutomationPeer> for ::windows::core::IUnknown { - fn from(value: &TreeViewListAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TreeViewListAutomationPeer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TreeViewListAutomationPeer> for ::windows::core::IInspectable { - fn from(value: &TreeViewListAutomationPeer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: TreeViewListAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&TreeViewListAutomationPeer> for super::Provider::IItemContainerProvider { - type Error = ::windows::core::Error; - fn try_from(value: &TreeViewListAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::IItemContainerProvider> for TreeViewListAutomationPeer { - 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 &TreeViewListAutomationPeer { - 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: TreeViewListAutomationPeer) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl ::core::convert::TryFrom<&TreeViewListAutomationPeer> for super::Provider::ISelectionProvider { - type Error = ::windows::core::Error; - fn try_from(value: &TreeViewListAutomationPeer) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Xaml_Automation_Provider")] -impl<'a> ::windows::core::IntoParam<'a, super::Provider::ISelectionProvider> for TreeViewListAutomationPeer { - 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 &TreeViewListAutomationPeer { - 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: TreeViewListAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewListAutomationPeer> for SelectorAutomationPeer { - fn from(value: &TreeViewListAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, SelectorAutomationPeer> for &TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, SelectorAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for ItemsControlAutomationPeer { - fn from(value: TreeViewListAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewListAutomationPeer> for ItemsControlAutomationPeer { - fn from(value: &TreeViewListAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, ItemsControlAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ItemsControlAutomationPeer> for &TreeViewListAutomationPeer { - 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: TreeViewListAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewListAutomationPeer> for FrameworkElementAutomationPeer { - fn from(value: &TreeViewListAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, FrameworkElementAutomationPeer> for &TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, FrameworkElementAutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for AutomationPeer { - fn from(value: TreeViewListAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewListAutomationPeer> for AutomationPeer { - fn from(value: &TreeViewListAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, AutomationPeer> for &TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, AutomationPeer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: TreeViewListAutomationPeer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TreeViewListAutomationPeer> for super::super::DependencyObject { - fn from(value: &TreeViewListAutomationPeer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &TreeViewListAutomationPeer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for TreeViewListAutomationPeer {} -unsafe impl ::core::marker::Sync for TreeViewListAutomationPeer {} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Provider/impl.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/Provider/impl.rs deleted file mode 100644 index 60aa999719..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Provider/impl.rs +++ /dev/null @@ -1,2175 +0,0 @@ -pub trait IAnnotationProvider_Impl: Sized { - fn AnnotationTypeId(&self) -> ::windows::core::Result; - fn AnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn Author(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn DateTime(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn Target(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IAnnotationProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IAnnotationProvider"; -} -impl IAnnotationProvider_Vtbl { - pub const fn new, Impl: IAnnotationProvider_Impl, const OFFSET: isize>() -> IAnnotationProvider_Vtbl { - unsafe extern "system" fn AnnotationTypeId, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.AnnotationTypeId() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn AnnotationTypeName, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.AnnotationTypeName() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Author, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Author() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn DateTime, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DateTime() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Target, Impl: IAnnotationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Target() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - AnnotationTypeId: AnnotationTypeId::, - AnnotationTypeName: AnnotationTypeName::, - Author: Author::, - DateTime: DateTime::, - Target: Target::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Automation_Peers")] -pub trait ICustomNavigationProvider_Impl: Sized { - fn NavigateCustom(&self, direction: super::Peers::AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable>; -} -#[cfg(feature = "UI_Xaml_Automation_Peers")] -impl ::windows::core::RuntimeName for ICustomNavigationProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ICustomNavigationProvider"; -} -#[cfg(feature = "UI_Xaml_Automation_Peers")] -impl ICustomNavigationProvider_Vtbl { - pub const fn new, Impl: ICustomNavigationProvider_Impl, const OFFSET: isize>() -> ICustomNavigationProvider_Vtbl { - unsafe extern "system" fn NavigateCustom, Impl: ICustomNavigationProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, direction: super::Peers::AutomationNavigationDirection, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.NavigateCustom(direction) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - NavigateCustom: NavigateCustom::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IDockProvider_Impl: Sized { - fn DockPosition(&self) -> ::windows::core::Result; - fn SetDockPosition(&self, dockposition: super::DockPosition) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IDockProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IDockProvider"; -} -impl IDockProvider_Vtbl { - pub const fn new, Impl: IDockProvider_Impl, const OFFSET: isize>() -> IDockProvider_Vtbl { - unsafe extern "system" fn DockPosition, Impl: IDockProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::DockPosition) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DockPosition() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetDockPosition, Impl: IDockProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, dockposition: super::DockPosition) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetDockPosition(dockposition).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - DockPosition: DockPosition::, - SetDockPosition: SetDockPosition::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IDragProvider_Impl: Sized { - fn IsGrabbed(&self) -> ::windows::core::Result; - fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>>; - fn GetGrabbedItems(&self) -> ::windows::core::Result<::windows::core::Array>; -} -impl ::windows::core::RuntimeName for IDragProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IDragProvider"; -} -impl IDragProvider_Vtbl { - pub const fn new, Impl: IDragProvider_Impl, const OFFSET: isize>() -> IDragProvider_Vtbl { - unsafe extern "system" fn IsGrabbed, Impl: IDragProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsGrabbed() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn DropEffect, Impl: IDragProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DropEffect() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn DropEffects, Impl: IDragProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DropEffects() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetGrabbedItems, Impl: IDragProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetGrabbedItems() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsGrabbed: IsGrabbed::, - DropEffect: DropEffect::, - DropEffects: DropEffects::, - GetGrabbedItems: GetGrabbedItems::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IDropTargetProvider_Impl: Sized { - fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>>; -} -impl ::windows::core::RuntimeName for IDropTargetProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IDropTargetProvider"; -} -impl IDropTargetProvider_Vtbl { - pub const fn new, Impl: IDropTargetProvider_Impl, const OFFSET: isize>() -> IDropTargetProvider_Vtbl { - unsafe extern "system" fn DropEffect, Impl: IDropTargetProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DropEffect() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn DropEffects, Impl: IDropTargetProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DropEffects() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - DropEffect: DropEffect::, - DropEffects: DropEffects::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IExpandCollapseProvider_Impl: Sized { - fn ExpandCollapseState(&self) -> ::windows::core::Result; - fn Collapse(&self) -> ::windows::core::Result<()>; - fn Expand(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IExpandCollapseProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IExpandCollapseProvider"; -} -impl IExpandCollapseProvider_Vtbl { - pub const fn new, Impl: IExpandCollapseProvider_Impl, const OFFSET: isize>() -> IExpandCollapseProvider_Vtbl { - unsafe extern "system" fn ExpandCollapseState, Impl: IExpandCollapseProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::ExpandCollapseState) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ExpandCollapseState() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Collapse, Impl: IExpandCollapseProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Collapse().into() - } - unsafe extern "system" fn Expand, Impl: IExpandCollapseProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Expand().into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ExpandCollapseState: ExpandCollapseState::, - Collapse: Collapse::, - Expand: Expand::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IGridItemProvider_Impl: Sized { - fn Column(&self) -> ::windows::core::Result; - fn ColumnSpan(&self) -> ::windows::core::Result; - fn ContainingGrid(&self) -> ::windows::core::Result; - fn Row(&self) -> ::windows::core::Result; - fn RowSpan(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IGridItemProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IGridItemProvider"; -} -impl IGridItemProvider_Vtbl { - pub const fn new, Impl: IGridItemProvider_Impl, const OFFSET: isize>() -> IGridItemProvider_Vtbl { - unsafe extern "system" fn Column, Impl: IGridItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Column() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ColumnSpan, Impl: IGridItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ColumnSpan() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ContainingGrid, Impl: IGridItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ContainingGrid() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Row, Impl: IGridItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Row() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RowSpan, Impl: IGridItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RowSpan() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - Column: Column::, - ColumnSpan: ColumnSpan::, - ContainingGrid: ContainingGrid::, - Row: Row::, - RowSpan: RowSpan::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IGridProvider_Impl: Sized { - fn ColumnCount(&self) -> ::windows::core::Result; - fn RowCount(&self) -> ::windows::core::Result; - fn GetItem(&self, row: i32, column: i32) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IGridProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IGridProvider"; -} -impl IGridProvider_Vtbl { - pub const fn new, Impl: IGridProvider_Impl, const OFFSET: isize>() -> IGridProvider_Vtbl { - unsafe extern "system" fn ColumnCount, Impl: IGridProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ColumnCount() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RowCount, Impl: IGridProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RowCount() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetItem, Impl: IGridProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, row: i32, column: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetItem(row, column) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ColumnCount: ColumnCount::, - RowCount: RowCount::, - GetItem: GetItem::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IInvokeProvider_Impl: Sized { - fn Invoke(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IInvokeProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IInvokeProvider"; -} -impl IInvokeProvider_Vtbl { - pub const fn new, Impl: IInvokeProvider_Impl, const OFFSET: isize>() -> IInvokeProvider_Vtbl { - unsafe extern "system" fn Invoke, Impl: IInvokeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Invoke().into() - } - Self { base__: ::windows::core::IInspectableVtbl::new::(), Invoke: Invoke:: } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IItemContainerProvider_Impl: Sized { - fn FindItemByProperty(&self, startafter: &::core::option::Option, automationproperty: &::core::option::Option, value: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IItemContainerProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IItemContainerProvider"; -} -impl IItemContainerProvider_Vtbl { - pub const fn new, Impl: IItemContainerProvider_Impl, const OFFSET: isize>() -> IItemContainerProvider_Vtbl { - unsafe extern "system" fn FindItemByProperty, Impl: IItemContainerProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, startafter: *mut ::core::ffi::c_void, automationproperty: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.FindItemByProperty(::core::mem::transmute(&startafter), ::core::mem::transmute(&automationproperty), ::core::mem::transmute(&value)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - FindItemByProperty: FindItemByProperty::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IMultipleViewProvider_Impl: Sized { - fn CurrentView(&self) -> ::windows::core::Result; - fn GetSupportedViews(&self) -> ::windows::core::Result<::windows::core::Array>; - fn GetViewName(&self, viewid: i32) -> ::windows::core::Result<::windows::core::HSTRING>; - fn SetCurrentView(&self, viewid: i32) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IMultipleViewProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IMultipleViewProvider"; -} -impl IMultipleViewProvider_Vtbl { - pub const fn new, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>() -> IMultipleViewProvider_Vtbl { - unsafe extern "system" fn CurrentView, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CurrentView() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetSupportedViews, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetSupportedViews() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetViewName, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, viewid: i32, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetViewName(viewid) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetCurrentView, Impl: IMultipleViewProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, viewid: i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetCurrentView(viewid).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - CurrentView: CurrentView::, - GetSupportedViews: GetSupportedViews::, - GetViewName: GetViewName::, - SetCurrentView: SetCurrentView::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IObjectModelProvider_Impl: Sized { - fn GetUnderlyingObjectModel(&self) -> ::windows::core::Result<::windows::core::IInspectable>; -} -impl ::windows::core::RuntimeName for IObjectModelProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IObjectModelProvider"; -} -impl IObjectModelProvider_Vtbl { - pub const fn new, Impl: IObjectModelProvider_Impl, const OFFSET: isize>() -> IObjectModelProvider_Vtbl { - unsafe extern "system" fn GetUnderlyingObjectModel, Impl: IObjectModelProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetUnderlyingObjectModel() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetUnderlyingObjectModel: GetUnderlyingObjectModel::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IRangeValueProvider_Impl: Sized { - fn IsReadOnly(&self) -> ::windows::core::Result; - fn LargeChange(&self) -> ::windows::core::Result; - fn Maximum(&self) -> ::windows::core::Result; - fn Minimum(&self) -> ::windows::core::Result; - fn SmallChange(&self) -> ::windows::core::Result; - fn Value(&self) -> ::windows::core::Result; - fn SetValue(&self, value: f64) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IRangeValueProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IRangeValueProvider"; -} -impl IRangeValueProvider_Vtbl { - pub const fn new, Impl: IRangeValueProvider_Impl, const OFFSET: isize>() -> IRangeValueProvider_Vtbl { - unsafe extern "system" fn IsReadOnly, Impl: IRangeValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsReadOnly() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn LargeChange, Impl: IRangeValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.LargeChange() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Maximum, Impl: IRangeValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Maximum() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Minimum, Impl: IRangeValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Minimum() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SmallChange, Impl: IRangeValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SmallChange() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Value, Impl: IRangeValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Value() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetValue, Impl: IRangeValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetValue(value).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsReadOnly: IsReadOnly::, - LargeChange: LargeChange::, - Maximum: Maximum::, - Minimum: Minimum::, - SmallChange: SmallChange::, - Value: Value::, - SetValue: SetValue::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IScrollItemProvider_Impl: Sized { - fn ScrollIntoView(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IScrollItemProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IScrollItemProvider"; -} -impl IScrollItemProvider_Vtbl { - pub const fn new, Impl: IScrollItemProvider_Impl, const OFFSET: isize>() -> IScrollItemProvider_Vtbl { - unsafe extern "system" fn ScrollIntoView, Impl: IScrollItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ScrollIntoView().into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ScrollIntoView: ScrollIntoView::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IScrollProvider_Impl: Sized { - fn HorizontallyScrollable(&self) -> ::windows::core::Result; - fn HorizontalScrollPercent(&self) -> ::windows::core::Result; - fn HorizontalViewSize(&self) -> ::windows::core::Result; - fn VerticallyScrollable(&self) -> ::windows::core::Result; - fn VerticalScrollPercent(&self) -> ::windows::core::Result; - fn VerticalViewSize(&self) -> ::windows::core::Result; - fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()>; - fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IScrollProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IScrollProvider"; -} -impl IScrollProvider_Vtbl { - pub const fn new, Impl: IScrollProvider_Impl, const OFFSET: isize>() -> IScrollProvider_Vtbl { - unsafe extern "system" fn HorizontallyScrollable, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.HorizontallyScrollable() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn HorizontalScrollPercent, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.HorizontalScrollPercent() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn HorizontalViewSize, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.HorizontalViewSize() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn VerticallyScrollable, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.VerticallyScrollable() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn VerticalScrollPercent, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.VerticalScrollPercent() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn VerticalViewSize, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.VerticalViewSize() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Scroll, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Scroll(horizontalamount, verticalamount).into() - } - unsafe extern "system" fn SetScrollPercent, Impl: IScrollProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetScrollPercent(horizontalpercent, verticalpercent).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - HorizontallyScrollable: HorizontallyScrollable::, - HorizontalScrollPercent: HorizontalScrollPercent::, - HorizontalViewSize: HorizontalViewSize::, - VerticallyScrollable: VerticallyScrollable::, - VerticalScrollPercent: VerticalScrollPercent::, - VerticalViewSize: VerticalViewSize::, - Scroll: Scroll::, - SetScrollPercent: SetScrollPercent::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ISelectionItemProvider_Impl: Sized { - fn IsSelected(&self) -> ::windows::core::Result; - fn SelectionContainer(&self) -> ::windows::core::Result; - fn AddToSelection(&self) -> ::windows::core::Result<()>; - fn RemoveFromSelection(&self) -> ::windows::core::Result<()>; - fn Select(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for ISelectionItemProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ISelectionItemProvider"; -} -impl ISelectionItemProvider_Vtbl { - pub const fn new, Impl: ISelectionItemProvider_Impl, const OFFSET: isize>() -> ISelectionItemProvider_Vtbl { - unsafe extern "system" fn IsSelected, Impl: ISelectionItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsSelected() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SelectionContainer, Impl: ISelectionItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SelectionContainer() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn AddToSelection, Impl: ISelectionItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.AddToSelection().into() - } - unsafe extern "system" fn RemoveFromSelection, Impl: ISelectionItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveFromSelection().into() - } - unsafe extern "system" fn Select, Impl: ISelectionItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Select().into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsSelected: IsSelected::, - SelectionContainer: SelectionContainer::, - AddToSelection: AddToSelection::, - RemoveFromSelection: RemoveFromSelection::, - Select: Select::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ISelectionProvider_Impl: Sized { - fn CanSelectMultiple(&self) -> ::windows::core::Result; - fn IsSelectionRequired(&self) -> ::windows::core::Result; - fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array>; -} -impl ::windows::core::RuntimeName for ISelectionProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ISelectionProvider"; -} -impl ISelectionProvider_Vtbl { - pub const fn new, Impl: ISelectionProvider_Impl, const OFFSET: isize>() -> ISelectionProvider_Vtbl { - unsafe extern "system" fn CanSelectMultiple, Impl: ISelectionProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CanSelectMultiple() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsSelectionRequired, Impl: ISelectionProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsSelectionRequired() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetSelection, Impl: ISelectionProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetSelection() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - CanSelectMultiple: CanSelectMultiple::, - IsSelectionRequired: IsSelectionRequired::, - GetSelection: GetSelection::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ISpreadsheetItemProvider_Impl: Sized { - fn Formula(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn GetAnnotationObjects(&self) -> ::windows::core::Result<::windows::core::Array>; - fn GetAnnotationTypes(&self) -> ::windows::core::Result<::windows::core::Array>; -} -impl ::windows::core::RuntimeName for ISpreadsheetItemProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ISpreadsheetItemProvider"; -} -impl ISpreadsheetItemProvider_Vtbl { - pub const fn new, Impl: ISpreadsheetItemProvider_Impl, const OFFSET: isize>() -> ISpreadsheetItemProvider_Vtbl { - unsafe extern "system" fn Formula, Impl: ISpreadsheetItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Formula() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAnnotationObjects, Impl: ISpreadsheetItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAnnotationObjects() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAnnotationTypes, Impl: ISpreadsheetItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut super::AnnotationType) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAnnotationTypes() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - Formula: Formula::, - GetAnnotationObjects: GetAnnotationObjects::, - GetAnnotationTypes: GetAnnotationTypes::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ISpreadsheetProvider_Impl: Sized { - fn GetItemByName(&self, name: &::windows::core::HSTRING) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for ISpreadsheetProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ISpreadsheetProvider"; -} -impl ISpreadsheetProvider_Vtbl { - pub const fn new, Impl: ISpreadsheetProvider_Impl, const OFFSET: isize>() -> ISpreadsheetProvider_Vtbl { - unsafe extern "system" fn GetItemByName, Impl: ISpreadsheetProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetItemByName(::core::mem::transmute(&name)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetItemByName: GetItemByName::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IStylesProvider_Impl: Sized { - fn ExtendedProperties(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn FillColor(&self) -> ::windows::core::Result; - fn FillPatternColor(&self) -> ::windows::core::Result; - fn FillPatternStyle(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn Shape(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn StyleId(&self) -> ::windows::core::Result; - fn StyleName(&self) -> ::windows::core::Result<::windows::core::HSTRING>; -} -impl ::windows::core::RuntimeName for IStylesProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IStylesProvider"; -} -impl IStylesProvider_Vtbl { - pub const fn new, Impl: IStylesProvider_Impl, const OFFSET: isize>() -> IStylesProvider_Vtbl { - unsafe extern "system" fn ExtendedProperties, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ExtendedProperties() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn FillColor, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.FillColor() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn FillPatternColor, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.FillPatternColor() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn FillPatternStyle, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.FillPatternStyle() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Shape, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Shape() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn StyleId, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.StyleId() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn StyleName, Impl: IStylesProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.StyleName() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ExtendedProperties: ExtendedProperties::, - FillColor: FillColor::, - FillPatternColor: FillPatternColor::, - FillPatternStyle: FillPatternStyle::, - Shape: Shape::, - StyleId: StyleId::, - StyleName: StyleName::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ISynchronizedInputProvider_Impl: Sized { - fn Cancel(&self) -> ::windows::core::Result<()>; - fn StartListening(&self, inputtype: super::SynchronizedInputType) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for ISynchronizedInputProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ISynchronizedInputProvider"; -} -impl ISynchronizedInputProvider_Vtbl { - pub const fn new, Impl: ISynchronizedInputProvider_Impl, const OFFSET: isize>() -> ISynchronizedInputProvider_Vtbl { - unsafe extern "system" fn Cancel, Impl: ISynchronizedInputProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Cancel().into() - } - unsafe extern "system" fn StartListening, Impl: ISynchronizedInputProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, inputtype: super::SynchronizedInputType) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.StartListening(inputtype).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - Cancel: Cancel::, - StartListening: StartListening::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ITableItemProvider_Impl: Sized { - fn GetColumnHeaderItems(&self) -> ::windows::core::Result<::windows::core::Array>; - fn GetRowHeaderItems(&self) -> ::windows::core::Result<::windows::core::Array>; -} -impl ::windows::core::RuntimeName for ITableItemProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITableItemProvider"; -} -impl ITableItemProvider_Vtbl { - pub const fn new, Impl: ITableItemProvider_Impl, const OFFSET: isize>() -> ITableItemProvider_Vtbl { - unsafe extern "system" fn GetColumnHeaderItems, Impl: ITableItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetColumnHeaderItems() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetRowHeaderItems, Impl: ITableItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetRowHeaderItems() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetColumnHeaderItems: GetColumnHeaderItems::, - GetRowHeaderItems: GetRowHeaderItems::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ITableProvider_Impl: Sized { - fn RowOrColumnMajor(&self) -> ::windows::core::Result; - fn GetColumnHeaders(&self) -> ::windows::core::Result<::windows::core::Array>; - fn GetRowHeaders(&self) -> ::windows::core::Result<::windows::core::Array>; -} -impl ::windows::core::RuntimeName for ITableProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITableProvider"; -} -impl ITableProvider_Vtbl { - pub const fn new, Impl: ITableProvider_Impl, const OFFSET: isize>() -> ITableProvider_Vtbl { - unsafe extern "system" fn RowOrColumnMajor, Impl: ITableProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::RowOrColumnMajor) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RowOrColumnMajor() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetColumnHeaders, Impl: ITableProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetColumnHeaders() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetRowHeaders, Impl: ITableProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetRowHeaders() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - RowOrColumnMajor: RowOrColumnMajor::, - GetColumnHeaders: GetColumnHeaders::, - GetRowHeaders: GetRowHeaders::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ITextChildProvider_Impl: Sized { - fn TextContainer(&self) -> ::windows::core::Result; - fn TextRange(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for ITextChildProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITextChildProvider"; -} -impl ITextChildProvider_Vtbl { - pub const fn new, Impl: ITextChildProvider_Impl, const OFFSET: isize>() -> ITextChildProvider_Vtbl { - unsafe extern "system" fn TextContainer, Impl: ITextChildProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TextContainer() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn TextRange, Impl: ITextChildProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TextRange() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - TextContainer: TextContainer::, - TextRange: TextRange::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation")] -pub trait ITextEditProvider_Impl: Sized + ITextProvider_Impl { - fn GetActiveComposition(&self) -> ::windows::core::Result; - fn GetConversionTarget(&self) -> ::windows::core::Result; -} -#[cfg(feature = "Foundation")] -impl ::windows::core::RuntimeName for ITextEditProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITextEditProvider"; -} -#[cfg(feature = "Foundation")] -impl ITextEditProvider_Vtbl { - pub const fn new, Impl: ITextEditProvider_Impl, const OFFSET: isize>() -> ITextEditProvider_Vtbl { - unsafe extern "system" fn GetActiveComposition, Impl: ITextEditProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetActiveComposition() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetConversionTarget, Impl: ITextEditProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetConversionTarget() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetActiveComposition: GetActiveComposition::, - GetConversionTarget: GetConversionTarget::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation")] -pub trait ITextProvider_Impl: Sized { - fn DocumentRange(&self) -> ::windows::core::Result; - fn SupportedTextSelection(&self) -> ::windows::core::Result; - fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array>; - fn GetVisibleRanges(&self) -> ::windows::core::Result<::windows::core::Array>; - fn RangeFromChild(&self, childelement: &::core::option::Option) -> ::windows::core::Result; - fn RangeFromPoint(&self, screenlocation: &super::super::super::super::Foundation::Point) -> ::windows::core::Result; -} -#[cfg(feature = "Foundation")] -impl ::windows::core::RuntimeName for ITextProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITextProvider"; -} -#[cfg(feature = "Foundation")] -impl ITextProvider_Vtbl { - pub const fn new, Impl: ITextProvider_Impl, const OFFSET: isize>() -> ITextProvider_Vtbl { - unsafe extern "system" fn DocumentRange, Impl: ITextProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DocumentRange() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SupportedTextSelection, Impl: ITextProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::SupportedTextSelection) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SupportedTextSelection() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetSelection, Impl: ITextProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetSelection() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetVisibleRanges, Impl: ITextProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetVisibleRanges() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RangeFromChild, Impl: ITextProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, childelement: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RangeFromChild(::core::mem::transmute(&childelement)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RangeFromPoint, Impl: ITextProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, screenlocation: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RangeFromPoint(::core::mem::transmute(&screenlocation)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - DocumentRange: DocumentRange::, - SupportedTextSelection: SupportedTextSelection::, - GetSelection: GetSelection::, - GetVisibleRanges: GetVisibleRanges::, - RangeFromChild: RangeFromChild::, - RangeFromPoint: RangeFromPoint::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation")] -pub trait ITextProvider2_Impl: Sized + ITextProvider_Impl { - fn RangeFromAnnotation(&self, annotationelement: &::core::option::Option) -> ::windows::core::Result; - fn GetCaretRange(&self, isactive: &mut bool) -> ::windows::core::Result; -} -#[cfg(feature = "Foundation")] -impl ::windows::core::RuntimeName for ITextProvider2 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITextProvider2"; -} -#[cfg(feature = "Foundation")] -impl ITextProvider2_Vtbl { - pub const fn new, Impl: ITextProvider2_Impl, const OFFSET: isize>() -> ITextProvider2_Vtbl { - unsafe extern "system" fn RangeFromAnnotation, Impl: ITextProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, annotationelement: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RangeFromAnnotation(::core::mem::transmute(&annotationelement)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetCaretRange, Impl: ITextProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, isactive: *mut bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCaretRange(::core::mem::transmute_copy(&isactive)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - RangeFromAnnotation: RangeFromAnnotation::, - GetCaretRange: GetCaretRange::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Automation_Text")] -pub trait ITextRangeProvider_Impl: Sized { - fn Clone(&self) -> ::windows::core::Result; - fn Compare(&self, textrangeprovider: &::core::option::Option) -> ::windows::core::Result; - fn CompareEndpoints(&self, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: &::core::option::Option, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::Result; - fn ExpandToEnclosingUnit(&self, unit: super::Text::TextUnit) -> ::windows::core::Result<()>; - fn FindAttribute(&self, attributeid: i32, value: &::core::option::Option<::windows::core::IInspectable>, backward: bool) -> ::windows::core::Result; - fn FindText(&self, text: &::windows::core::HSTRING, backward: bool, ignorecase: bool) -> ::windows::core::Result; - fn GetAttributeValue(&self, attributeid: i32) -> ::windows::core::Result<::windows::core::IInspectable>; - fn GetBoundingRectangles(&self, returnvalue: &mut ::windows::core::Array) -> ::windows::core::Result<()>; - fn GetEnclosingElement(&self) -> ::windows::core::Result; - fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::HSTRING>; - fn Move(&self, unit: super::Text::TextUnit, count: i32) -> ::windows::core::Result; - fn MoveEndpointByUnit(&self, endpoint: super::Text::TextPatternRangeEndpoint, unit: super::Text::TextUnit, count: i32) -> ::windows::core::Result; - fn MoveEndpointByRange(&self, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: &::core::option::Option, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::Result<()>; - fn Select(&self) -> ::windows::core::Result<()>; - fn AddToSelection(&self) -> ::windows::core::Result<()>; - fn RemoveFromSelection(&self) -> ::windows::core::Result<()>; - fn ScrollIntoView(&self, aligntotop: bool) -> ::windows::core::Result<()>; - fn GetChildren(&self) -> ::windows::core::Result<::windows::core::Array>; -} -#[cfg(feature = "UI_Xaml_Automation_Text")] -impl ::windows::core::RuntimeName for ITextRangeProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITextRangeProvider"; -} -#[cfg(feature = "UI_Xaml_Automation_Text")] -impl ITextRangeProvider_Vtbl { - pub const fn new, Impl: ITextRangeProvider_Impl, const OFFSET: isize>() -> ITextRangeProvider_Vtbl { - unsafe extern "system" fn Clone, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Clone() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Compare, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, textrangeprovider: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Compare(::core::mem::transmute(&textrangeprovider)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn CompareEndpoints, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: *mut ::core::ffi::c_void, targetendpoint: super::Text::TextPatternRangeEndpoint, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CompareEndpoints(endpoint, ::core::mem::transmute(&textrangeprovider), targetendpoint) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ExpandToEnclosingUnit, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, unit: super::Text::TextUnit) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ExpandToEnclosingUnit(unit).into() - } - unsafe extern "system" fn FindAttribute, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributeid: i32, value: *mut ::core::ffi::c_void, backward: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.FindAttribute(attributeid, ::core::mem::transmute(&value), backward) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn FindText, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, backward: bool, ignorecase: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.FindText(::core::mem::transmute(&text), backward, ignorecase) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetAttributeValue, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, attributeid: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetAttributeValue(attributeid) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetBoundingRectangles, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, returnValue_array_size: *mut u32, returnvalue: *mut *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetBoundingRectangles(::windows::core::ArrayProxy::from_raw_parts(::core::mem::transmute_copy(&returnvalue), returnValue_array_size).as_array()).into() - } - unsafe extern "system" fn GetEnclosingElement, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetEnclosingElement() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetText, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, maxlength: i32, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetText(maxlength) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Move, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, unit: super::Text::TextUnit, count: i32, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Move(unit, count) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn MoveEndpointByUnit, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, endpoint: super::Text::TextPatternRangeEndpoint, unit: super::Text::TextUnit, count: i32, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.MoveEndpointByUnit(endpoint, unit, count) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn MoveEndpointByRange, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: *mut ::core::ffi::c_void, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.MoveEndpointByRange(endpoint, ::core::mem::transmute(&textrangeprovider), targetendpoint).into() - } - unsafe extern "system" fn Select, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Select().into() - } - unsafe extern "system" fn AddToSelection, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.AddToSelection().into() - } - unsafe extern "system" fn RemoveFromSelection, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveFromSelection().into() - } - unsafe extern "system" fn ScrollIntoView, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, aligntotop: bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ScrollIntoView(aligntotop).into() - } - unsafe extern "system" fn GetChildren, Impl: ITextRangeProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetChildren() { - ::core::result::Result::Ok(ok__) => { - let (ok_data__, ok_data_len__) = ok__.into_abi(); - ::core::ptr::write(result__, ok_data__); - ::core::ptr::write(result_size__, ok_data_len__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - Clone: Clone::, - Compare: Compare::, - CompareEndpoints: CompareEndpoints::, - ExpandToEnclosingUnit: ExpandToEnclosingUnit::, - FindAttribute: FindAttribute::, - FindText: FindText::, - GetAttributeValue: GetAttributeValue::, - GetBoundingRectangles: GetBoundingRectangles::, - GetEnclosingElement: GetEnclosingElement::, - GetText: GetText::, - Move: Move::, - MoveEndpointByUnit: MoveEndpointByUnit::, - MoveEndpointByRange: MoveEndpointByRange::, - Select: Select::, - AddToSelection: AddToSelection::, - RemoveFromSelection: RemoveFromSelection::, - ScrollIntoView: ScrollIntoView::, - GetChildren: GetChildren::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Automation_Text")] -pub trait ITextRangeProvider2_Impl: Sized + ITextRangeProvider_Impl { - fn ShowContextMenu(&self) -> ::windows::core::Result<()>; -} -#[cfg(feature = "UI_Xaml_Automation_Text")] -impl ::windows::core::RuntimeName for ITextRangeProvider2 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITextRangeProvider2"; -} -#[cfg(feature = "UI_Xaml_Automation_Text")] -impl ITextRangeProvider2_Vtbl { - pub const fn new, Impl: ITextRangeProvider2_Impl, const OFFSET: isize>() -> ITextRangeProvider2_Vtbl { - unsafe extern "system" fn ShowContextMenu, Impl: ITextRangeProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ShowContextMenu().into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ShowContextMenu: ShowContextMenu::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IToggleProvider_Impl: Sized { - fn ToggleState(&self) -> ::windows::core::Result; - fn Toggle(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IToggleProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IToggleProvider"; -} -impl IToggleProvider_Vtbl { - pub const fn new, Impl: IToggleProvider_Impl, const OFFSET: isize>() -> IToggleProvider_Vtbl { - unsafe extern "system" fn ToggleState, Impl: IToggleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::ToggleState) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ToggleState() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Toggle, Impl: IToggleProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Toggle().into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ToggleState: ToggleState::, - Toggle: Toggle::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ITransformProvider_Impl: Sized { - fn CanMove(&self) -> ::windows::core::Result; - fn CanResize(&self) -> ::windows::core::Result; - fn CanRotate(&self) -> ::windows::core::Result; - fn Move(&self, x: f64, y: f64) -> ::windows::core::Result<()>; - fn Resize(&self, width: f64, height: f64) -> ::windows::core::Result<()>; - fn Rotate(&self, degrees: f64) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for ITransformProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITransformProvider"; -} -impl ITransformProvider_Vtbl { - pub const fn new, Impl: ITransformProvider_Impl, const OFFSET: isize>() -> ITransformProvider_Vtbl { - unsafe extern "system" fn CanMove, Impl: ITransformProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CanMove() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn CanResize, Impl: ITransformProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CanResize() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn CanRotate, Impl: ITransformProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CanRotate() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Move, Impl: ITransformProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, x: f64, y: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Move(x, y).into() - } - unsafe extern "system" fn Resize, Impl: ITransformProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, width: f64, height: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Resize(width, height).into() - } - unsafe extern "system" fn Rotate, Impl: ITransformProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, degrees: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Rotate(degrees).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - CanMove: CanMove::, - CanResize: CanResize::, - CanRotate: CanRotate::, - Move: Move::, - Resize: Resize::, - Rotate: Rotate::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ITransformProvider2_Impl: Sized + ITransformProvider_Impl { - fn CanZoom(&self) -> ::windows::core::Result; - fn ZoomLevel(&self) -> ::windows::core::Result; - fn MaxZoom(&self) -> ::windows::core::Result; - fn MinZoom(&self) -> ::windows::core::Result; - fn Zoom(&self, zoom: f64) -> ::windows::core::Result<()>; - fn ZoomByUnit(&self, zoomunit: super::ZoomUnit) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for ITransformProvider2 { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.ITransformProvider2"; -} -impl ITransformProvider2_Vtbl { - pub const fn new, Impl: ITransformProvider2_Impl, const OFFSET: isize>() -> ITransformProvider2_Vtbl { - unsafe extern "system" fn CanZoom, Impl: ITransformProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CanZoom() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ZoomLevel, Impl: ITransformProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ZoomLevel() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn MaxZoom, Impl: ITransformProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.MaxZoom() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn MinZoom, Impl: ITransformProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.MinZoom() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Zoom, Impl: ITransformProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, zoom: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Zoom(zoom).into() - } - unsafe extern "system" fn ZoomByUnit, Impl: ITransformProvider2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, zoomunit: super::ZoomUnit) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ZoomByUnit(zoomunit).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - CanZoom: CanZoom::, - ZoomLevel: ZoomLevel::, - MaxZoom: MaxZoom::, - MinZoom: MinZoom::, - Zoom: Zoom::, - ZoomByUnit: ZoomByUnit::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IValueProvider_Impl: Sized { - fn IsReadOnly(&self) -> ::windows::core::Result; - fn Value(&self) -> ::windows::core::Result<::windows::core::HSTRING>; - fn SetValue(&self, value: &::windows::core::HSTRING) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IValueProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IValueProvider"; -} -impl IValueProvider_Vtbl { - pub const fn new, Impl: IValueProvider_Impl, const OFFSET: isize>() -> IValueProvider_Vtbl { - unsafe extern "system" fn IsReadOnly, Impl: IValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsReadOnly() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Value, Impl: IValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Value() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetValue, Impl: IValueProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetValue(::core::mem::transmute(&value)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsReadOnly: IsReadOnly::, - Value: Value::, - SetValue: SetValue::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IVirtualizedItemProvider_Impl: Sized { - fn Realize(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IVirtualizedItemProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IVirtualizedItemProvider"; -} -impl IVirtualizedItemProvider_Vtbl { - pub const fn new, Impl: IVirtualizedItemProvider_Impl, const OFFSET: isize>() -> IVirtualizedItemProvider_Vtbl { - unsafe extern "system" fn Realize, Impl: IVirtualizedItemProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Realize().into() - } - Self { base__: ::windows::core::IInspectableVtbl::new::(), Realize: Realize:: } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IWindowProvider_Impl: Sized { - fn IsModal(&self) -> ::windows::core::Result; - fn IsTopmost(&self) -> ::windows::core::Result; - fn Maximizable(&self) -> ::windows::core::Result; - fn Minimizable(&self) -> ::windows::core::Result; - fn InteractionState(&self) -> ::windows::core::Result; - fn VisualState(&self) -> ::windows::core::Result; - fn Close(&self) -> ::windows::core::Result<()>; - fn SetVisualState(&self, state: super::WindowVisualState) -> ::windows::core::Result<()>; - fn WaitForInputIdle(&self, milliseconds: i32) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IWindowProvider { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IWindowProvider"; -} -impl IWindowProvider_Vtbl { - pub const fn new, Impl: IWindowProvider_Impl, const OFFSET: isize>() -> IWindowProvider_Vtbl { - unsafe extern "system" fn IsModal, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsModal() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IsTopmost, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsTopmost() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Maximizable, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Maximizable() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Minimizable, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Minimizable() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn InteractionState, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::WindowInteractionState) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.InteractionState() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn VisualState, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut super::WindowVisualState) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.VisualState() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Close, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Close().into() - } - unsafe extern "system" fn SetVisualState, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, state: super::WindowVisualState) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetVisualState(state).into() - } - unsafe extern "system" fn WaitForInputIdle, Impl: IWindowProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, milliseconds: i32, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.WaitForInputIdle(milliseconds) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsModal: IsModal::, - IsTopmost: IsTopmost::, - Maximizable: Maximizable::, - Minimizable: Minimizable::, - InteractionState: InteractionState::, - VisualState: VisualState::, - Close: Close::, - SetVisualState: SetVisualState::, - WaitForInputIdle: WaitForInputIdle::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Provider/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/Provider/mod.rs deleted file mode 100644 index 3a3862f5e0..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Provider/mod.rs +++ /dev/null @@ -1,4278 +0,0 @@ -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IAnnotationProvider(::windows::core::IUnknown); -impl IAnnotationProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn AnnotationTypeId(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AnnotationTypeId)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn AnnotationTypeName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).AnnotationTypeName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Author(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Author)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DateTime(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DateTime)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Target(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Target)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IAnnotationProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IAnnotationProvider> for ::windows::core::IUnknown { - fn from(value: &IAnnotationProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IAnnotationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IAnnotationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IAnnotationProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IAnnotationProvider> for ::windows::core::IInspectable { - fn from(value: &IAnnotationProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IAnnotationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IAnnotationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IAnnotationProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IAnnotationProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IAnnotationProvider {} -impl ::core::fmt::Debug for IAnnotationProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IAnnotationProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IAnnotationProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{95ba1417-4437-451b-9461-050a49b59d06}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IAnnotationProvider { - type Vtable = IAnnotationProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x95ba1417_4437_451b_9461_050a49b59d06); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAnnotationProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AnnotationTypeId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub AnnotationTypeName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Author: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub DateTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Target: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ICustomNavigationProvider(::windows::core::IUnknown); -impl ICustomNavigationProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn NavigateCustom(&self, direction: super::Peers::AutomationNavigationDirection) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).NavigateCustom)(::windows::core::Interface::as_raw(this), direction, result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ICustomNavigationProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ICustomNavigationProvider> for ::windows::core::IUnknown { - fn from(value: &ICustomNavigationProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ICustomNavigationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ICustomNavigationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ICustomNavigationProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ICustomNavigationProvider> for ::windows::core::IInspectable { - fn from(value: &ICustomNavigationProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ICustomNavigationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ICustomNavigationProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ICustomNavigationProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ICustomNavigationProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ICustomNavigationProvider {} -impl ::core::fmt::Debug for ICustomNavigationProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ICustomNavigationProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ICustomNavigationProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{2bd8a6d0-2fa3-4717-b28c-4917ce54928d}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ICustomNavigationProvider { - type Vtable = ICustomNavigationProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2bd8a6d0_2fa3_4717_b28c_4917ce54928d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICustomNavigationProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub NavigateCustom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, direction: super::Peers::AutomationNavigationDirection, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - NavigateCustom: usize, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IDockProvider(::windows::core::IUnknown); -impl IDockProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DockPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DockPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SetDockPosition(&self, dockposition: super::DockPosition) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDockPosition)(::windows::core::Interface::as_raw(this), dockposition).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IDockProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IDockProvider> for ::windows::core::IUnknown { - fn from(value: &IDockProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDockProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDockProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IDockProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IDockProvider> for ::windows::core::IInspectable { - fn from(value: &IDockProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IDockProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IDockProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IDockProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IDockProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IDockProvider {} -impl ::core::fmt::Debug for IDockProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IDockProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IDockProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{48c243f8-78b1-44a0-ac5f-750757bcde3c}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IDockProvider { - type Vtable = IDockProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x48c243f8_78b1_44a0_ac5f_750757bcde3c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDockProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DockPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::DockPosition) -> ::windows::core::HRESULT, - pub SetDockPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dockposition: super::DockPosition) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IDragProvider(::windows::core::IUnknown); -impl IDragProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn IsGrabbed(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsGrabbed)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffects)(::windows::core::Interface::as_raw(this), ::windows::core::Array::<::windows::core::HSTRING>::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetGrabbedItems(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetGrabbedItems)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IDragProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IDragProvider> for ::windows::core::IUnknown { - fn from(value: &IDragProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDragProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDragProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IDragProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IDragProvider> for ::windows::core::IInspectable { - fn from(value: &IDragProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IDragProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IDragProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IDragProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IDragProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IDragProvider {} -impl ::core::fmt::Debug for IDragProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IDragProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IDragProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{2e7786a9-7ffc-4f57-b965-1ef1f373f546}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IDragProvider { - type Vtable = IDragProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2e7786a9_7ffc_4f57_b965_1ef1f373f546); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsGrabbed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub DropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub DropEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetGrabbedItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IDropTargetProvider(::windows::core::IUnknown); -impl IDropTargetProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DropEffect(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DropEffects(&self) -> ::windows::core::Result<::windows::core::Array<::windows::core::HSTRING>> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffects)(::windows::core::Interface::as_raw(this), ::windows::core::Array::<::windows::core::HSTRING>::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IDropTargetProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IDropTargetProvider> for ::windows::core::IUnknown { - fn from(value: &IDropTargetProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IDropTargetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IDropTargetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IDropTargetProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IDropTargetProvider> for ::windows::core::IInspectable { - fn from(value: &IDropTargetProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IDropTargetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IDropTargetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IDropTargetProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IDropTargetProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IDropTargetProvider {} -impl ::core::fmt::Debug for IDropTargetProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IDropTargetProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IDropTargetProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{7a245bdd-b458-4fe0-98c8-aac89df56d61}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IDropTargetProvider { - type Vtable = IDropTargetProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a245bdd_b458_4fe0_98c8_aac89df56d61); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDropTargetProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DropEffect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub DropEffects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IExpandCollapseProvider(::windows::core::IUnknown); -impl IExpandCollapseProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ExpandCollapseState(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Collapse(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Collapse)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Expand(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Expand)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IExpandCollapseProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IExpandCollapseProvider> for ::windows::core::IUnknown { - fn from(value: &IExpandCollapseProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IExpandCollapseProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IExpandCollapseProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IExpandCollapseProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IExpandCollapseProvider> for ::windows::core::IInspectable { - fn from(value: &IExpandCollapseProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IExpandCollapseProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IExpandCollapseProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IExpandCollapseProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IExpandCollapseProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IExpandCollapseProvider {} -impl ::core::fmt::Debug for IExpandCollapseProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IExpandCollapseProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IExpandCollapseProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{49ac8399-d626-4543-94b9-a6d9a9593af6}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IExpandCollapseProvider { - type Vtable = IExpandCollapseProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x49ac8399_d626_4543_94b9_a6d9a9593af6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IExpandCollapseProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ExpandCollapseState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::ExpandCollapseState) -> ::windows::core::HRESULT, - pub Collapse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Expand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IGridItemProvider(::windows::core::IUnknown); -impl IGridItemProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Column(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Column)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ColumnSpan(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ColumnSpan)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ContainingGrid(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ContainingGrid)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Row(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Row)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RowSpan(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).RowSpan)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IGridItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IGridItemProvider> for ::windows::core::IUnknown { - fn from(value: &IGridItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGridItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGridItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IGridItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IGridItemProvider> for ::windows::core::IInspectable { - fn from(value: &IGridItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IGridItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IGridItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IGridItemProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IGridItemProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IGridItemProvider {} -impl ::core::fmt::Debug for IGridItemProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IGridItemProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IGridItemProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{fff3683c-7407-45bb-a936-df3ed6d3837d}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IGridItemProvider { - type Vtable = IGridItemProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfff3683c_7407_45bb_a936_df3ed6d3837d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridItemProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Column: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub ColumnSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub ContainingGrid: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Row: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub RowSpan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IGridProvider(::windows::core::IUnknown); -impl IGridProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ColumnCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ColumnCount)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RowCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).RowCount)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetItem(&self, row: i32, column: i32) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetItem)(::windows::core::Interface::as_raw(this), row, column, result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IGridProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IGridProvider> for ::windows::core::IUnknown { - fn from(value: &IGridProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IGridProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IGridProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IGridProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IGridProvider> for ::windows::core::IInspectable { - fn from(value: &IGridProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IGridProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IGridProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IGridProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IGridProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IGridProvider {} -impl ::core::fmt::Debug for IGridProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IGridProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IGridProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{8b62b7a0-932c-4490-9a13-02fdb39a8f5b}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IGridProvider { - type Vtable = IGridProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8b62b7a0_932c_4490_9a13_02fdb39a8f5b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColumnCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub RowCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub GetItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, row: i32, column: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IIRawElementProviderSimple(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IIRawElementProviderSimple { - type Vtable = IIRawElementProviderSimple_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xec752224_9b77_4720_bb21_4ac89fdb1afd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IIRawElementProviderSimple_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IInvokeProvider(::windows::core::IUnknown); -impl IInvokeProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Invoke(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Invoke)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IInvokeProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IInvokeProvider> for ::windows::core::IUnknown { - fn from(value: &IInvokeProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IInvokeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IInvokeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IInvokeProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IInvokeProvider> for ::windows::core::IInspectable { - fn from(value: &IInvokeProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IInvokeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IInvokeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IInvokeProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IInvokeProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IInvokeProvider {} -impl ::core::fmt::Debug for IInvokeProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IInvokeProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IInvokeProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{f7d1a187-b13c-4540-b09e-6778e2dc9ba5}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IInvokeProvider { - type Vtable = IInvokeProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf7d1a187_b13c_4540_b09e_6778e2dc9ba5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IInvokeProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IItemContainerProvider(::windows::core::IUnknown); -impl IItemContainerProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FindItemByProperty<'a, Param0: ::windows::core::IntoParam<'a, 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 = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindItemByProperty)(::windows::core::Interface::as_raw(this), startafter.into_param().abi(), automationproperty.into_param().abi(), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IItemContainerProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IItemContainerProvider> for ::windows::core::IUnknown { - fn from(value: &IItemContainerProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IItemContainerProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IItemContainerProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IItemContainerProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IItemContainerProvider> for ::windows::core::IInspectable { - fn from(value: &IItemContainerProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IItemContainerProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IItemContainerProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IItemContainerProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IItemContainerProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IItemContainerProvider {} -impl ::core::fmt::Debug for IItemContainerProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IItemContainerProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IItemContainerProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{ef5cd845-e1d4-40f4-bad5-c7fad44a703e}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IItemContainerProvider { - type Vtable = IItemContainerProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xef5cd845_e1d4_40f4_bad5_c7fad44a703e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemContainerProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FindItemByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, startafter: *mut ::core::ffi::c_void, automationproperty: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IMultipleViewProvider(::windows::core::IUnknown); -impl IMultipleViewProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CurrentView(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CurrentView)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetSupportedViews(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSupportedViews)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetViewName(&self, viewid: i32) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetViewName)(::windows::core::Interface::as_raw(this), viewid, result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SetCurrentView(&self, viewid: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCurrentView)(::windows::core::Interface::as_raw(this), viewid).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IMultipleViewProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IMultipleViewProvider> for ::windows::core::IUnknown { - fn from(value: &IMultipleViewProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IMultipleViewProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IMultipleViewProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IMultipleViewProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IMultipleViewProvider> for ::windows::core::IInspectable { - fn from(value: &IMultipleViewProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IMultipleViewProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IMultipleViewProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IMultipleViewProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IMultipleViewProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IMultipleViewProvider {} -impl ::core::fmt::Debug for IMultipleViewProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IMultipleViewProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IMultipleViewProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{d014e196-0e50-4843-a5d2-c22897c8845a}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IMultipleViewProvider { - type Vtable = IMultipleViewProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd014e196_0e50_4843_a5d2_c22897c8845a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMultipleViewProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub GetSupportedViews: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut i32) -> ::windows::core::HRESULT, - pub GetViewName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetCurrentView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, viewid: i32) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IObjectModelProvider(::windows::core::IUnknown); -impl IObjectModelProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetUnderlyingObjectModel(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetUnderlyingObjectModel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IObjectModelProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IObjectModelProvider> for ::windows::core::IUnknown { - fn from(value: &IObjectModelProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IObjectModelProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IObjectModelProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IObjectModelProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IObjectModelProvider> for ::windows::core::IInspectable { - fn from(value: &IObjectModelProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IObjectModelProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IObjectModelProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IObjectModelProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IObjectModelProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IObjectModelProvider {} -impl ::core::fmt::Debug for IObjectModelProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IObjectModelProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IObjectModelProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{c3ca36b9-0793-4ed0-bbf4-9ff4e0f98f80}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IObjectModelProvider { - type Vtable = IObjectModelProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3ca36b9_0793_4ed0_bbf4_9ff4e0f98f80); -} -#[repr(C)] -#[doc(hidden)] -pub struct IObjectModelProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetUnderlyingObjectModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IRangeValueProvider(::windows::core::IUnknown); -impl IRangeValueProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsReadOnly)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LargeChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Maximum(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Maximum)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Minimum)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SmallChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Value(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Value)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SetValue(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetValue)(::windows::core::Interface::as_raw(this), value).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IRangeValueProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IRangeValueProvider> for ::windows::core::IUnknown { - fn from(value: &IRangeValueProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IRangeValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IRangeValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IRangeValueProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IRangeValueProvider> for ::windows::core::IInspectable { - fn from(value: &IRangeValueProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IRangeValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IRangeValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IRangeValueProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IRangeValueProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IRangeValueProvider {} -impl ::core::fmt::Debug for IRangeValueProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IRangeValueProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IRangeValueProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{838a34a8-7d5f-4079-af03-c3d015e93413}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IRangeValueProvider { - type Vtable = IRangeValueProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x838a34a8_7d5f_4079_af03_c3d015e93413); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeValueProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub LargeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub Maximum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub Minimum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SmallChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IRawElementProviderSimple(::windows::core::IUnknown); -impl IRawElementProviderSimple {} -impl ::core::clone::Clone for IRawElementProviderSimple { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IRawElementProviderSimple { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IRawElementProviderSimple {} -impl ::core::fmt::Debug for IRawElementProviderSimple { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IRawElementProviderSimple").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IRawElementProviderSimple { - type Vtable = IIRawElementProviderSimple_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for IRawElementProviderSimple { - const NAME: &'static str = "Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IRawElementProviderSimple) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IRawElementProviderSimple> for ::windows::core::IUnknown { - fn from(value: &IRawElementProviderSimple) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IRawElementProviderSimple { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IRawElementProviderSimple { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IRawElementProviderSimple) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IRawElementProviderSimple> for ::windows::core::IInspectable { - fn from(value: &IRawElementProviderSimple) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IRawElementProviderSimple { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IRawElementProviderSimple { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: IRawElementProviderSimple) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&IRawElementProviderSimple> for super::super::DependencyObject { - fn from(value: &IRawElementProviderSimple) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for IRawElementProviderSimple { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &IRawElementProviderSimple { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for IRawElementProviderSimple {} -unsafe impl ::core::marker::Sync for IRawElementProviderSimple {} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IScrollItemProvider(::windows::core::IUnknown); -impl IScrollItemProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ScrollIntoView(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).ScrollIntoView)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IScrollItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IScrollItemProvider> for ::windows::core::IUnknown { - fn from(value: &IScrollItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IScrollItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IScrollItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IScrollItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IScrollItemProvider> for ::windows::core::IInspectable { - fn from(value: &IScrollItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IScrollItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IScrollItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IScrollItemProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IScrollItemProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IScrollItemProvider {} -impl ::core::fmt::Debug for IScrollItemProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IScrollItemProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IScrollItemProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{9a3ec090-5d2c-4e42-9ee6-9d58db100b55}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IScrollItemProvider { - type Vtable = IScrollItemProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9a3ec090_5d2c_4e42_9ee6_9d58db100b55); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollItemProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ScrollIntoView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IScrollProvider(::windows::core::IUnknown); -impl IScrollProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn HorizontallyScrollable(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn HorizontalScrollPercent(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn HorizontalViewSize(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn VerticallyScrollable(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticallyScrollable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn VerticalScrollPercent(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalScrollPercent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn VerticalViewSize(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalViewSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Scroll(&self, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Scroll)(::windows::core::Interface::as_raw(this), horizontalamount, verticalamount).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SetScrollPercent(&self, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetScrollPercent)(::windows::core::Interface::as_raw(this), horizontalpercent, verticalpercent).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IScrollProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IScrollProvider> for ::windows::core::IUnknown { - fn from(value: &IScrollProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IScrollProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IScrollProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IScrollProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IScrollProvider> for ::windows::core::IInspectable { - fn from(value: &IScrollProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IScrollProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IScrollProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IScrollProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IScrollProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IScrollProvider {} -impl ::core::fmt::Debug for IScrollProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IScrollProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IScrollProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{374bf581-7716-4bbc-82eb-d997006ea999}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IScrollProvider { - type Vtable = IScrollProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x374bf581_7716_4bbc_82eb_d997006ea999); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub HorizontallyScrollable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub HorizontalScrollPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub HorizontalViewSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticallyScrollable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub VerticalScrollPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticalViewSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub Scroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalamount: super::ScrollAmount, verticalamount: super::ScrollAmount) -> ::windows::core::HRESULT, - pub SetScrollPercent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalpercent: f64, verticalpercent: f64) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ISelectionItemProvider(::windows::core::IUnknown); -impl ISelectionItemProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelected)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SelectionContainer(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionContainer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).AddToSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).RemoveFromSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Select)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ISelectionItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISelectionItemProvider> for ::windows::core::IUnknown { - fn from(value: &ISelectionItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISelectionItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISelectionItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ISelectionItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISelectionItemProvider> for ::windows::core::IInspectable { - fn from(value: &ISelectionItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ISelectionItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ISelectionItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ISelectionItemProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ISelectionItemProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ISelectionItemProvider {} -impl ::core::fmt::Debug for ISelectionItemProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ISelectionItemProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ISelectionItemProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{6a4977c1-830d-42d2-bf62-042ebddecc19}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ISelectionItemProvider { - type Vtable = ISelectionItemProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a4977c1_830d_42d2_bf62_042ebddecc19); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectionItemProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SelectionContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AddToSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RemoveFromSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Select: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ISelectionProvider(::windows::core::IUnknown); -impl ISelectionProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanSelectMultiple(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanSelectMultiple)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn IsSelectionRequired(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelectionRequired)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSelection)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ISelectionProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISelectionProvider> for ::windows::core::IUnknown { - fn from(value: &ISelectionProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISelectionProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISelectionProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ISelectionProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISelectionProvider> for ::windows::core::IInspectable { - fn from(value: &ISelectionProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ISelectionProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ISelectionProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ISelectionProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ISelectionProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ISelectionProvider {} -impl ::core::fmt::Debug for ISelectionProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ISelectionProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ISelectionProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{1f018fca-b944-4395-8de1-88f674af51d3}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ISelectionProvider { - type Vtable = ISelectionProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1f018fca_b944_4395_8de1_88f674af51d3); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectionProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanSelectMultiple: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsSelectionRequired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ISpreadsheetItemProvider(::windows::core::IUnknown); -impl ISpreadsheetItemProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Formula(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Formula)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetAnnotationObjects(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetAnnotationObjects)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetAnnotationTypes(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetAnnotationTypes)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ISpreadsheetItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISpreadsheetItemProvider> for ::windows::core::IUnknown { - fn from(value: &ISpreadsheetItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISpreadsheetItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISpreadsheetItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ISpreadsheetItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISpreadsheetItemProvider> for ::windows::core::IInspectable { - fn from(value: &ISpreadsheetItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ISpreadsheetItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ISpreadsheetItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ISpreadsheetItemProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ISpreadsheetItemProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ISpreadsheetItemProvider {} -impl ::core::fmt::Debug for ISpreadsheetItemProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ISpreadsheetItemProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ISpreadsheetItemProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{ebde8f92-6015-4826-b719-47521a81c67e}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ISpreadsheetItemProvider { - type Vtable = ISpreadsheetItemProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xebde8f92_6015_4826_b719_47521a81c67e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISpreadsheetItemProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Formula: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GetAnnotationObjects: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAnnotationTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut super::AnnotationType) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ISpreadsheetProvider(::windows::core::IUnknown); -impl ISpreadsheetProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetItemByName<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, name: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetItemByName)(::windows::core::Interface::as_raw(this), name.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ISpreadsheetProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISpreadsheetProvider> for ::windows::core::IUnknown { - fn from(value: &ISpreadsheetProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISpreadsheetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISpreadsheetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ISpreadsheetProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISpreadsheetProvider> for ::windows::core::IInspectable { - fn from(value: &ISpreadsheetProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ISpreadsheetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ISpreadsheetProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ISpreadsheetProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ISpreadsheetProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ISpreadsheetProvider {} -impl ::core::fmt::Debug for ISpreadsheetProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ISpreadsheetProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ISpreadsheetProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{15359093-bd99-4cfd-9f07-3b14b315e23d}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ISpreadsheetProvider { - type Vtable = ISpreadsheetProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x15359093_bd99_4cfd_9f07_3b14b315e23d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISpreadsheetProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetItemByName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, name: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IStylesProvider(::windows::core::IUnknown); -impl IStylesProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ExtendedProperties(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).ExtendedProperties)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FillColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FillColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FillPatternColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FillPatternColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FillPatternStyle(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).FillPatternStyle)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Shape(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Shape)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn StyleId(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StyleId)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn StyleName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).StyleName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IStylesProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IStylesProvider> for ::windows::core::IUnknown { - fn from(value: &IStylesProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IStylesProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IStylesProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IStylesProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IStylesProvider> for ::windows::core::IInspectable { - fn from(value: &IStylesProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IStylesProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IStylesProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IStylesProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IStylesProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IStylesProvider {} -impl ::core::fmt::Debug for IStylesProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IStylesProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IStylesProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{1a5b7a17-7c01-4bec-9cd4-2dfa7dc246cd}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IStylesProvider { - type Vtable = IStylesProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1a5b7a17_7c01_4bec_9cd4_2dfa7dc246cd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IStylesProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ExtendedProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub FillColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub FillPatternColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub FillPatternStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Shape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub StyleId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub StyleName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ISynchronizedInputProvider(::windows::core::IUnknown); -impl ISynchronizedInputProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Cancel(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Cancel)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn StartListening(&self, inputtype: super::SynchronizedInputType) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).StartListening)(::windows::core::Interface::as_raw(this), inputtype).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ISynchronizedInputProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISynchronizedInputProvider> for ::windows::core::IUnknown { - fn from(value: &ISynchronizedInputProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ISynchronizedInputProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ISynchronizedInputProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ISynchronizedInputProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ISynchronizedInputProvider> for ::windows::core::IInspectable { - fn from(value: &ISynchronizedInputProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ISynchronizedInputProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ISynchronizedInputProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ISynchronizedInputProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ISynchronizedInputProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ISynchronizedInputProvider {} -impl ::core::fmt::Debug for ISynchronizedInputProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ISynchronizedInputProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ISynchronizedInputProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{3d60cecb-da54-4aa3-b915-e3244427d4ac}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ISynchronizedInputProvider { - type Vtable = ISynchronizedInputProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3d60cecb_da54_4aa3_b915_e3244427d4ac); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISynchronizedInputProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StartListening: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, inputtype: super::SynchronizedInputType) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITableItemProvider(::windows::core::IUnknown); -impl ITableItemProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetColumnHeaderItems(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetColumnHeaderItems)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetRowHeaderItems(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetRowHeaderItems)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITableItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITableItemProvider> for ::windows::core::IUnknown { - fn from(value: &ITableItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITableItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITableItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITableItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITableItemProvider> for ::windows::core::IInspectable { - fn from(value: &ITableItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITableItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITableItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ITableItemProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITableItemProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITableItemProvider {} -impl ::core::fmt::Debug for ITableItemProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITableItemProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITableItemProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{3b2c49cd-1de2-4ee2-a3e1-fb553559d15d}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITableItemProvider { - type Vtable = ITableItemProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3b2c49cd_1de2_4ee2_a3e1_fb553559d15d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITableItemProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetColumnHeaderItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetRowHeaderItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITableProvider(::windows::core::IUnknown); -impl ITableProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RowOrColumnMajor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).RowOrColumnMajor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetColumnHeaders(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetColumnHeaders)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetRowHeaders(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetRowHeaders)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITableProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITableProvider> for ::windows::core::IUnknown { - fn from(value: &ITableProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITableProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITableProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITableProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITableProvider> for ::windows::core::IInspectable { - fn from(value: &ITableProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITableProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITableProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ITableProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITableProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITableProvider {} -impl ::core::fmt::Debug for ITableProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITableProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITableProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{7a8ed399-6824-4595-bab3-464bc9a04417}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITableProvider { - type Vtable = ITableProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a8ed399_6824_4595_bab3_464bc9a04417); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITableProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub RowOrColumnMajor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::RowOrColumnMajor) -> ::windows::core::HRESULT, - pub GetColumnHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetRowHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITextChildProvider(::windows::core::IUnknown); -impl ITextChildProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn TextContainer(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TextContainer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn TextRange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TextRange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITextChildProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextChildProvider> for ::windows::core::IUnknown { - fn from(value: &ITextChildProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITextChildProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITextChildProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITextChildProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextChildProvider> for ::windows::core::IInspectable { - fn from(value: &ITextChildProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITextChildProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITextChildProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ITextChildProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITextChildProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITextChildProvider {} -impl ::core::fmt::Debug for ITextChildProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITextChildProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITextChildProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{1133c336-a89b-4130-9be6-55e33334f557}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITextChildProvider { - type Vtable = ITextChildProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1133c336_a89b_4130_9be6_55e33334f557); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextChildProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub TextContainer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TextRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITextEditProvider(::windows::core::IUnknown); -impl ITextEditProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetActiveComposition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetActiveComposition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetConversionTarget(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetConversionTarget)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DocumentRange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DocumentRange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SupportedTextSelection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SupportedTextSelection)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"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__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSelection)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetVisibleRanges(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetVisibleRanges)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RangeFromChild<'a, Param0: ::windows::core::IntoParam<'a, IRawElementProviderSimple>>(&self, childelement: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RangeFromChild)(::windows::core::Interface::as_raw(this), childelement.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RangeFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, screenlocation: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RangeFromPoint)(::windows::core::Interface::as_raw(this), screenlocation.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITextEditProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextEditProvider> for ::windows::core::IUnknown { - fn from(value: &ITextEditProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITextEditProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITextEditProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITextEditProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextEditProvider> for ::windows::core::IInspectable { - fn from(value: &ITextEditProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITextEditProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITextEditProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::TryFrom for ITextProvider { - type Error = ::windows::core::Error; - fn try_from(value: ITextEditProvider) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&ITextEditProvider> for ITextProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ITextEditProvider) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITextProvider> for ITextEditProvider { - fn into_param(self) -> ::windows::core::Param<'a, ITextProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITextProvider> for &ITextEditProvider { - fn into_param(self) -> ::windows::core::Param<'a, ITextProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::clone::Clone for ITextEditProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITextEditProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITextEditProvider {} -impl ::core::fmt::Debug for ITextEditProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITextEditProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITextEditProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{ea3605b4-3a05-400e-b5f9-4e91b40f6176}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITextEditProvider { - type Vtable = ITextEditProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea3605b4_3a05_400e_b5f9_4e91b40f6176); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextEditProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetActiveComposition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetConversionTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITextProvider(::windows::core::IUnknown); -impl ITextProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DocumentRange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DocumentRange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SupportedTextSelection(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SupportedTextSelection)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetSelection(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSelection)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetVisibleRanges(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetVisibleRanges)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RangeFromChild<'a, Param0: ::windows::core::IntoParam<'a, IRawElementProviderSimple>>(&self, childelement: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RangeFromChild)(::windows::core::Interface::as_raw(this), childelement.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RangeFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, screenlocation: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RangeFromPoint)(::windows::core::Interface::as_raw(this), screenlocation.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITextProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextProvider> for ::windows::core::IUnknown { - fn from(value: &ITextProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITextProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITextProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITextProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextProvider> for ::windows::core::IInspectable { - fn from(value: &ITextProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITextProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITextProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ITextProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITextProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITextProvider {} -impl ::core::fmt::Debug for ITextProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITextProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITextProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{db5bbc9f-4807-4f2a-8678-1b13f3c60e22}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITextProvider { - type Vtable = ITextProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdb5bbc9f_4807_4f2a_8678_1b13f3c60e22); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DocumentRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SupportedTextSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::SupportedTextSelection) -> ::windows::core::HRESULT, - pub GetSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetVisibleRanges: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RangeFromChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, childelement: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub RangeFromPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, screenlocation: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RangeFromPoint: usize, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITextProvider2(::windows::core::IUnknown); -impl ITextProvider2 { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RangeFromAnnotation<'a, Param0: ::windows::core::IntoParam<'a, IRawElementProviderSimple>>(&self, annotationelement: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RangeFromAnnotation)(::windows::core::Interface::as_raw(this), annotationelement.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetCaretRange(&self, isactive: &mut bool) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetCaretRange)(::windows::core::Interface::as_raw(this), isactive, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn DocumentRange(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DocumentRange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SupportedTextSelection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SupportedTextSelection)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"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__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetSelection)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetVisibleRanges(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetVisibleRanges)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RangeFromChild<'a, Param0: ::windows::core::IntoParam<'a, IRawElementProviderSimple>>(&self, childelement: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RangeFromChild)(::windows::core::Interface::as_raw(this), childelement.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RangeFromPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, screenlocation: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RangeFromPoint)(::windows::core::Interface::as_raw(this), screenlocation.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITextProvider2) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextProvider2> for ::windows::core::IUnknown { - fn from(value: &ITextProvider2) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITextProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITextProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITextProvider2) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextProvider2> for ::windows::core::IInspectable { - fn from(value: &ITextProvider2) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITextProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITextProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::TryFrom for ITextProvider { - type Error = ::windows::core::Error; - fn try_from(value: ITextProvider2) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&ITextProvider2> for ITextProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ITextProvider2) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITextProvider> for ITextProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ITextProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITextProvider> for &ITextProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ITextProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::clone::Clone for ITextProvider2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITextProvider2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITextProvider2 {} -impl ::core::fmt::Debug for ITextProvider2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITextProvider2").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITextProvider2 { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{df1d48bc-0487-4e7f-9d5e-f09e77e41246}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITextProvider2 { - type Vtable = ITextProvider2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdf1d48bc_0487_4e7f_9d5e_f09e77e41246); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextProvider2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub RangeFromAnnotation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, annotationelement: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetCaretRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, isactive: *mut bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITextRangeProvider(::windows::core::IUnknown); -impl ITextRangeProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Clone(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Clone)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Compare<'a, Param0: ::windows::core::IntoParam<'a, ITextRangeProvider>>(&self, textrangeprovider: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Compare)(::windows::core::Interface::as_raw(this), textrangeprovider.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn CompareEndpoints<'a, Param1: ::windows::core::IntoParam<'a, ITextRangeProvider>>(&self, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: Param1, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CompareEndpoints)(::windows::core::Interface::as_raw(this), endpoint, textrangeprovider.into_param().abi(), targetendpoint, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn ExpandToEnclosingUnit(&self, unit: super::Text::TextUnit) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).ExpandToEnclosingUnit)(::windows::core::Interface::as_raw(this), unit).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FindAttribute<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, attributeid: i32, value: Param1, backward: bool) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindAttribute)(::windows::core::Interface::as_raw(this), attributeid, value.into_param().abi(), backward, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FindText<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, text: Param0, backward: bool, ignorecase: bool) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindText)(::windows::core::Interface::as_raw(this), text.into_param().abi(), backward, ignorecase, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetAttributeValue(&self, attributeid: i32) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetAttributeValue)(::windows::core::Interface::as_raw(this), attributeid, result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetBoundingRectangles(&self, returnvalue: &mut ::windows::core::Array) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).GetBoundingRectangles)(::windows::core::Interface::as_raw(this), returnvalue.set_abi_len(), returnvalue as *mut _ as _).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetEnclosingElement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetEnclosingElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetText)(::windows::core::Interface::as_raw(this), maxlength, result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn Move(&self, unit: super::Text::TextUnit, count: i32) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Move)(::windows::core::Interface::as_raw(this), unit, count, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn MoveEndpointByUnit(&self, endpoint: super::Text::TextPatternRangeEndpoint, unit: super::Text::TextUnit, count: i32) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MoveEndpointByUnit)(::windows::core::Interface::as_raw(this), endpoint, unit, count, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn MoveEndpointByRange<'a, Param1: ::windows::core::IntoParam<'a, ITextRangeProvider>>(&self, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: Param1, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MoveEndpointByRange)(::windows::core::Interface::as_raw(this), endpoint, textrangeprovider.into_param().abi(), targetendpoint).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Select)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).AddToSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).RemoveFromSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ScrollIntoView(&self, aligntotop: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).ScrollIntoView)(::windows::core::Interface::as_raw(this), aligntotop).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetChildren(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetChildren)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITextRangeProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextRangeProvider> for ::windows::core::IUnknown { - fn from(value: &ITextRangeProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITextRangeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITextRangeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITextRangeProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextRangeProvider> for ::windows::core::IInspectable { - fn from(value: &ITextRangeProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITextRangeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITextRangeProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ITextRangeProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITextRangeProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITextRangeProvider {} -impl ::core::fmt::Debug for ITextRangeProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITextRangeProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITextRangeProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{0274688d-06e9-4f66-9446-28a5be98fbd0}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITextRangeProvider { - type Vtable = ITextRangeProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0274688d_06e9_4f66_9446_28a5be98fbd0); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextRangeProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Clone: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Compare: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, textrangeprovider: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub CompareEndpoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: *mut ::core::ffi::c_void, targetendpoint: super::Text::TextPatternRangeEndpoint, result__: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Text"))] - CompareEndpoints: usize, - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub ExpandToEnclosingUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: super::Text::TextUnit) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Text"))] - ExpandToEnclosingUnit: usize, - pub FindAttribute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributeid: i32, value: *mut ::core::ffi::c_void, backward: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FindText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, text: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, backward: bool, ignorecase: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAttributeValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, attributeid: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetBoundingRectangles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, returnValue_array_size: *mut u32, returnvalue: *mut *mut f64) -> ::windows::core::HRESULT, - pub GetEnclosingElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, maxlength: i32, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, unit: super::Text::TextUnit, count: i32, result__: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Text"))] - Move: usize, - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub MoveEndpointByUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: super::Text::TextPatternRangeEndpoint, unit: super::Text::TextUnit, count: i32, result__: *mut i32) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Text"))] - MoveEndpointByUnit: usize, - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub MoveEndpointByRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: *mut ::core::ffi::c_void, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Text"))] - MoveEndpointByRange: usize, - pub Select: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AddToSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RemoveFromSelection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ScrollIntoView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, aligntotop: bool) -> ::windows::core::HRESULT, - pub GetChildren: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result_size__: *mut u32, result__: *mut *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITextRangeProvider2(::windows::core::IUnknown); -impl ITextRangeProvider2 { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ShowContextMenu(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).ShowContextMenu)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Clone(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Clone)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Compare<'a, Param0: ::windows::core::IntoParam<'a, ITextRangeProvider>>(&self, textrangeprovider: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Compare)(::windows::core::Interface::as_raw(this), textrangeprovider.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn CompareEndpoints<'a, Param1: ::windows::core::IntoParam<'a, ITextRangeProvider>>(&self, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: Param1, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CompareEndpoints)(::windows::core::Interface::as_raw(this), endpoint, textrangeprovider.into_param().abi(), targetendpoint, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn ExpandToEnclosingUnit(&self, unit: super::Text::TextUnit) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).ExpandToEnclosingUnit)(::windows::core::Interface::as_raw(this), unit).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FindAttribute<'a, Param1: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, attributeid: i32, value: Param1, backward: bool) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindAttribute)(::windows::core::Interface::as_raw(this), attributeid, value.into_param().abi(), backward, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn FindText<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, text: Param0, backward: bool, ignorecase: bool) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindText)(::windows::core::Interface::as_raw(this), text.into_param().abi(), backward, ignorecase, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetAttributeValue(&self, attributeid: i32) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetAttributeValue)(::windows::core::Interface::as_raw(this), attributeid, result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetBoundingRectangles(&self, returnvalue: &mut ::windows::core::Array) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).GetBoundingRectangles)(::windows::core::Interface::as_raw(this), returnvalue.set_abi_len(), returnvalue as *mut _ as _).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetEnclosingElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetEnclosingElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetText(&self, maxlength: i32) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetText)(::windows::core::Interface::as_raw(this), maxlength, result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn Move(&self, unit: super::Text::TextUnit, count: i32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Move)(::windows::core::Interface::as_raw(this), unit, count, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn MoveEndpointByUnit(&self, endpoint: super::Text::TextPatternRangeEndpoint, unit: super::Text::TextUnit, count: i32) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MoveEndpointByUnit)(::windows::core::Interface::as_raw(this), endpoint, unit, count, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`, `\"UI_Xaml_Automation_Text\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Text")] - pub fn MoveEndpointByRange<'a, Param1: ::windows::core::IntoParam<'a, ITextRangeProvider>>(&self, endpoint: super::Text::TextPatternRangeEndpoint, textrangeprovider: Param1, targetendpoint: super::Text::TextPatternRangeEndpoint) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).MoveEndpointByRange)(::windows::core::Interface::as_raw(this), endpoint, textrangeprovider.into_param().abi(), targetendpoint).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Select(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).Select)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn AddToSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).AddToSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn RemoveFromSelection(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveFromSelection)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ScrollIntoView(&self, aligntotop: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).ScrollIntoView)(::windows::core::Interface::as_raw(this), aligntotop).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn GetChildren(&self) -> ::windows::core::Result<::windows::core::Array> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::windows::core::Array>::zeroed(); - (::windows::core::Interface::vtable(this).GetChildren)(::windows::core::Interface::as_raw(this), ::windows::core::Array::::set_abi_len(result__.assume_init_mut()), result__.as_mut_ptr() as *mut _ as _).and_then(|| result__.assume_init()) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITextRangeProvider2) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextRangeProvider2> for ::windows::core::IUnknown { - fn from(value: &ITextRangeProvider2) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITextRangeProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITextRangeProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITextRangeProvider2) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITextRangeProvider2> for ::windows::core::IInspectable { - fn from(value: &ITextRangeProvider2) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITextRangeProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITextRangeProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::TryFrom for ITextRangeProvider { - type Error = ::windows::core::Error; - fn try_from(value: ITextRangeProvider2) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&ITextRangeProvider2> for ITextRangeProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ITextRangeProvider2) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITextRangeProvider> for ITextRangeProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ITextRangeProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITextRangeProvider> for &ITextRangeProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ITextRangeProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::clone::Clone for ITextRangeProvider2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITextRangeProvider2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITextRangeProvider2 {} -impl ::core::fmt::Debug for ITextRangeProvider2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITextRangeProvider2").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITextRangeProvider2 { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{d3be3dfb-9f54-4642-a7a5-5c18d5ee2a3f}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITextRangeProvider2 { - type Vtable = ITextRangeProvider2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3be3dfb_9f54_4642_a7a5_5c18d5ee2a3f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITextRangeProvider2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShowContextMenu: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IToggleProvider(::windows::core::IUnknown); -impl IToggleProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ToggleState(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ToggleState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Toggle(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Toggle)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IToggleProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IToggleProvider> for ::windows::core::IUnknown { - fn from(value: &IToggleProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IToggleProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IToggleProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IToggleProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IToggleProvider> for ::windows::core::IInspectable { - fn from(value: &IToggleProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IToggleProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IToggleProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IToggleProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IToggleProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IToggleProvider {} -impl ::core::fmt::Debug for IToggleProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IToggleProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IToggleProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{93b88290-656f-44f7-aeaf-78b8f944d062}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IToggleProvider { - type Vtable = IToggleProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93b88290_656f_44f7_aeaf_78b8f944d062); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ToggleState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::ToggleState) -> ::windows::core::HRESULT, - pub Toggle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITransformProvider(::windows::core::IUnknown); -impl ITransformProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanMove(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanMove)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanResize(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanResize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanRotate(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanRotate)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Move(&self, x: f64, y: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Move)(::windows::core::Interface::as_raw(this), x, y).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Resize(&self, width: f64, height: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Resize)(::windows::core::Interface::as_raw(this), width, height).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Rotate(&self, degrees: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Rotate)(::windows::core::Interface::as_raw(this), degrees).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITransformProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITransformProvider> for ::windows::core::IUnknown { - fn from(value: &ITransformProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITransformProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITransformProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITransformProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITransformProvider> for ::windows::core::IInspectable { - fn from(value: &ITransformProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITransformProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITransformProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for ITransformProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITransformProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITransformProvider {} -impl ::core::fmt::Debug for ITransformProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITransformProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITransformProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{79670fdd-f6a9-4a65-af17-861db799a2da}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITransformProvider { - type Vtable = ITransformProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x79670fdd_f6a9_4a65_af17_861db799a2da); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITransformProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanMove: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub CanResize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub CanRotate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub Move: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, x: f64, y: f64) -> ::windows::core::HRESULT, - pub Resize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, width: f64, height: f64) -> ::windows::core::HRESULT, - pub Rotate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, degrees: f64) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct ITransformProvider2(::windows::core::IUnknown); -impl ITransformProvider2 { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanZoom(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanZoom)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ZoomLevel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn MaxZoom(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MaxZoom)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn MinZoom(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinZoom)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Zoom(&self, zoom: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Zoom)(::windows::core::Interface::as_raw(this), zoom).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn ZoomByUnit(&self, zoomunit: super::ZoomUnit) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).ZoomByUnit)(::windows::core::Interface::as_raw(this), zoomunit).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanMove(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanMove)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanResize(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanResize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn CanRotate(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanRotate)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"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).Move)(::windows::core::Interface::as_raw(this), x, y).ok() } - } - #[doc = "*Required features: `\"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).Resize)(::windows::core::Interface::as_raw(this), width, height).ok() } - } - #[doc = "*Required features: `\"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).Rotate)(::windows::core::Interface::as_raw(this), degrees).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ITransformProvider2) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITransformProvider2> for ::windows::core::IUnknown { - fn from(value: &ITransformProvider2) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ITransformProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ITransformProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ITransformProvider2) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ITransformProvider2> for ::windows::core::IInspectable { - fn from(value: &ITransformProvider2) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ITransformProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ITransformProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::TryFrom for ITransformProvider { - type Error = ::windows::core::Error; - fn try_from(value: ITransformProvider2) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -impl ::core::convert::TryFrom<&ITransformProvider2> for ITransformProvider { - type Error = ::windows::core::Error; - fn try_from(value: &ITransformProvider2) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITransformProvider> for ITransformProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ITransformProvider> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ITransformProvider> for &ITransformProvider2 { - fn into_param(self) -> ::windows::core::Param<'a, ITransformProvider> { - ::core::convert::TryInto::::try_into(self).map(::windows::core::Param::Owned).unwrap_or(::windows::core::Param::None) - } -} -impl ::core::clone::Clone for ITransformProvider2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ITransformProvider2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ITransformProvider2 {} -impl ::core::fmt::Debug for ITransformProvider2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ITransformProvider2").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ITransformProvider2 { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{a8b11756-a39f-4e97-8c7d-c1ea8dd633c5}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ITransformProvider2 { - type Vtable = ITransformProvider2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa8b11756_a39f_4e97_8c7d_c1ea8dd633c5); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITransformProvider2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanZoom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub ZoomLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub MaxZoom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub MinZoom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub Zoom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, zoom: f64) -> ::windows::core::HRESULT, - pub ZoomByUnit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, zoomunit: super::ZoomUnit) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IValueProvider(::windows::core::IUnknown); -impl IValueProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn IsReadOnly(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsReadOnly)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Value(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Value)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SetValue<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetValue)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IValueProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IValueProvider> for ::windows::core::IUnknown { - fn from(value: &IValueProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IValueProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IValueProvider> for ::windows::core::IInspectable { - fn from(value: &IValueProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IValueProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IValueProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IValueProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IValueProvider {} -impl ::core::fmt::Debug for IValueProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IValueProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IValueProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{2086b7a7-ac0e-47d1-ab9b-2a64292afdf8}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IValueProvider { - type Vtable = IValueProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2086b7a7_ac0e_47d1_ab9b_2a64292afdf8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IValueProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsReadOnly: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IVirtualizedItemProvider(::windows::core::IUnknown); -impl IVirtualizedItemProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Realize(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Realize)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IVirtualizedItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IVirtualizedItemProvider> for ::windows::core::IUnknown { - fn from(value: &IVirtualizedItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IVirtualizedItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IVirtualizedItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IVirtualizedItemProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IVirtualizedItemProvider> for ::windows::core::IInspectable { - fn from(value: &IVirtualizedItemProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IVirtualizedItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IVirtualizedItemProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IVirtualizedItemProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IVirtualizedItemProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IVirtualizedItemProvider {} -impl ::core::fmt::Debug for IVirtualizedItemProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IVirtualizedItemProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IVirtualizedItemProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{17d4a04b-d658-48e0-a574-5a516c58dfa7}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IVirtualizedItemProvider { - type Vtable = IVirtualizedItemProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x17d4a04b_d658_48e0_a574_5a516c58dfa7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IVirtualizedItemProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Realize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] -#[repr(transparent)] -pub struct IWindowProvider(::windows::core::IUnknown); -impl IWindowProvider { - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn IsModal(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsModal)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn IsTopmost(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsTopmost)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Maximizable(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Maximizable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Minimizable(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Minimizable)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn InteractionState(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).InteractionState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn VisualState(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VisualState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn Close(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Close)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn SetVisualState(&self, state: super::WindowVisualState) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetVisualState)(::windows::core::Interface::as_raw(this), state).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation_Provider\"`*"] - pub fn WaitForInputIdle(&self, milliseconds: i32) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WaitForInputIdle)(::windows::core::Interface::as_raw(this), milliseconds, result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IWindowProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IWindowProvider> for ::windows::core::IUnknown { - fn from(value: &IWindowProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for IWindowProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a IWindowProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IWindowProvider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IWindowProvider> for ::windows::core::IInspectable { - fn from(value: &IWindowProvider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for IWindowProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a IWindowProvider { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IWindowProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IWindowProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IWindowProvider {} -impl ::core::fmt::Debug for IWindowProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IWindowProvider").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IWindowProvider { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{1baa8b3d-38cf-415a-85d3-20e43a0ec1b1}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IWindowProvider { - type Vtable = IWindowProvider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1baa8b3d_38cf_415a_85d3_20e43a0ec1b1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IWindowProvider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsModal: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsTopmost: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub Maximizable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub Minimizable: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub InteractionState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::WindowInteractionState) -> ::windows::core::HRESULT, - pub VisualState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::WindowVisualState) -> ::windows::core::HRESULT, - pub Close: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetVisualState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, state: super::WindowVisualState) -> ::windows::core::HRESULT, - pub WaitForInputIdle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, milliseconds: i32, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Text/impl.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/Text/impl.rs deleted file mode 100644 index 8b13789179..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Text/impl.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Text/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/Text/mod.rs deleted file mode 100644 index c87efef1f3..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/Text/mod.rs +++ /dev/null @@ -1,75 +0,0 @@ -#[doc = "*Required features: `\"UI_Xaml_Automation_Text\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct TextPatternRangeEndpoint(pub i32); -impl TextPatternRangeEndpoint { - pub const Start: Self = Self(0i32); - pub const End: Self = Self(1i32); -} -impl ::core::marker::Copy for TextPatternRangeEndpoint {} -impl ::core::clone::Clone for TextPatternRangeEndpoint { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for TextPatternRangeEndpoint { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for TextPatternRangeEndpoint { - type Abi = Self; -} -impl ::core::fmt::Debug for TextPatternRangeEndpoint { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TextPatternRangeEndpoint").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TextPatternRangeEndpoint { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Text.TextPatternRangeEndpoint;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation_Text\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct TextUnit(pub i32); -impl TextUnit { - pub const Character: Self = Self(0i32); - pub const Format: Self = Self(1i32); - pub const Word: Self = Self(2i32); - pub const Line: Self = Self(3i32); - pub const Paragraph: Self = Self(4i32); - pub const Page: Self = Self(5i32); - pub const Document: Self = Self(6i32); -} -impl ::core::marker::Copy for TextUnit {} -impl ::core::clone::Clone for TextUnit { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for TextUnit { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for TextUnit { - type Abi = Self; -} -impl ::core::fmt::Debug for TextUnit { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TextUnit").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TextUnit { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.Text.TextUnit;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/impl.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/impl.rs deleted file mode 100644 index 8b13789179..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/impl.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Automation/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Automation/mod.rs deleted file mode 100644 index 810d0d84b7..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Automation/mod.rs +++ /dev/null @@ -1,5317 +0,0 @@ -#[cfg(feature = "UI_Xaml_Automation_Peers")] -pub mod Peers; -#[cfg(feature = "UI_Xaml_Automation_Provider")] -pub mod Provider; -#[cfg(feature = "UI_Xaml_Automation_Text")] -pub mod Text; -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct AnnotationPatternIdentifiers(::windows::core::IUnknown); -impl AnnotationPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AnnotationTypeIdProperty() -> ::windows::core::Result { - Self::IAnnotationPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AnnotationTypeIdProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AnnotationTypeNameProperty() -> ::windows::core::Result { - Self::IAnnotationPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AnnotationTypeNameProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AuthorProperty() -> ::windows::core::Result { - Self::IAnnotationPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AuthorProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DateTimeProperty() -> ::windows::core::Result { - Self::IAnnotationPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DateTimeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn TargetProperty() -> ::windows::core::Result { - Self::IAnnotationPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TargetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IAnnotationPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AnnotationPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AnnotationPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AnnotationPatternIdentifiers {} -impl ::core::fmt::Debug for AnnotationPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AnnotationPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AnnotationPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.AnnotationPatternIdentifiers;{d475a0c1-48b2-4e40-a6cf-3dc4b638c0de})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AnnotationPatternIdentifiers { - type Vtable = IAnnotationPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AnnotationPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.AnnotationPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AnnotationPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AnnotationPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &AnnotationPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AnnotationPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AnnotationPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AnnotationPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AnnotationPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &AnnotationPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AnnotationPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AnnotationPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for AnnotationPatternIdentifiers {} -unsafe impl ::core::marker::Sync for AnnotationPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AnnotationType(pub i32); -impl AnnotationType { - pub const Unknown: Self = Self(60000i32); - pub const SpellingError: Self = Self(60001i32); - pub const GrammarError: Self = Self(60002i32); - pub const Comment: Self = Self(60003i32); - pub const FormulaError: Self = Self(60004i32); - pub const TrackChanges: Self = Self(60005i32); - pub const Header: Self = Self(60006i32); - pub const Footer: Self = Self(60007i32); - pub const Highlighted: Self = Self(60008i32); - pub const Endnote: Self = Self(60009i32); - pub const Footnote: Self = Self(60010i32); - pub const InsertionChange: Self = Self(60011i32); - pub const DeletionChange: Self = Self(60012i32); - pub const MoveChange: Self = Self(60013i32); - pub const FormatChange: Self = Self(60014i32); - pub const UnsyncedChange: Self = Self(60015i32); - pub const EditingLockedChange: Self = Self(60016i32); - pub const ExternalChange: Self = Self(60017i32); - pub const ConflictingChange: Self = Self(60018i32); - pub const Author: Self = Self(60019i32); - pub const AdvancedProofingIssue: Self = Self(60020i32); - pub const DataValidationError: Self = Self(60021i32); - pub const CircularReferenceError: Self = Self(60022i32); -} -impl ::core::marker::Copy for AnnotationType {} -impl ::core::clone::Clone for AnnotationType { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AnnotationType { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AnnotationType { - type Abi = Self; -} -impl ::core::fmt::Debug for AnnotationType { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AnnotationType").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AnnotationType { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AnnotationType;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationActiveEnd(pub i32); -impl AutomationActiveEnd { - pub const None: Self = Self(0i32); - pub const Start: Self = Self(1i32); - pub const End: Self = Self(2i32); -} -impl ::core::marker::Copy for AutomationActiveEnd {} -impl ::core::clone::Clone for AutomationActiveEnd { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationActiveEnd { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationActiveEnd { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationActiveEnd { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationActiveEnd").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationActiveEnd { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationActiveEnd;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationAnimationStyle(pub i32); -impl AutomationAnimationStyle { - pub const None: Self = Self(0i32); - pub const LasVegasLights: Self = Self(1i32); - pub const BlinkingBackground: Self = Self(2i32); - pub const SparkleText: Self = Self(3i32); - pub const MarchingBlackAnts: Self = Self(4i32); - pub const MarchingRedAnts: Self = Self(5i32); - pub const Shimmer: Self = Self(6i32); - pub const Other: Self = Self(7i32); -} -impl ::core::marker::Copy for AutomationAnimationStyle {} -impl ::core::clone::Clone for AutomationAnimationStyle { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationAnimationStyle { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationAnimationStyle { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationAnimationStyle { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationAnimationStyle").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationAnimationStyle { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationAnimationStyle;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct AutomationAnnotation(::windows::core::IUnknown); -impl AutomationAnnotation { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn Type(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Type)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetType(&self, value: AnnotationType) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetType)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn Element(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Element)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetElement<'a, Param0: ::windows::core::IntoParam<'a, super::UIElement>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetElement)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CreateInstance(r#type: AnnotationType) -> ::windows::core::Result { - Self::IAutomationAnnotationFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), r#type, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CreateWithElementParameter<'a, Param1: ::windows::core::IntoParam<'a, super::UIElement>>(r#type: AnnotationType, element: Param1) -> ::windows::core::Result { - Self::IAutomationAnnotationFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateWithElementParameter)(::windows::core::Interface::as_raw(this), r#type, element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn TypeProperty() -> ::windows::core::Result { - Self::IAutomationAnnotationStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ElementProperty() -> ::windows::core::Result { - Self::IAutomationAnnotationStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ElementProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IAutomationAnnotationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationAnnotationStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AutomationAnnotation { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AutomationAnnotation { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AutomationAnnotation {} -impl ::core::fmt::Debug for AutomationAnnotation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationAnnotation").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationAnnotation { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.AutomationAnnotation;{fb3c30ca-03d8-4618-91bf-e4d84f4af318})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AutomationAnnotation { - type Vtable = IAutomationAnnotation_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AutomationAnnotation { - const NAME: &'static str = "Windows.UI.Xaml.Automation.AutomationAnnotation"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AutomationAnnotation) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationAnnotation> for ::windows::core::IUnknown { - fn from(value: &AutomationAnnotation) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutomationAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutomationAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutomationAnnotation) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationAnnotation> for ::windows::core::IInspectable { - fn from(value: &AutomationAnnotation) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutomationAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutomationAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::DependencyObject { - fn from(value: AutomationAnnotation) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AutomationAnnotation> for super::DependencyObject { - fn from(value: &AutomationAnnotation) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::DependencyObject> for AutomationAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::DependencyObject> for &AutomationAnnotation { - fn into_param(self) -> ::windows::core::Param<'a, super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AutomationAnnotation {} -unsafe impl ::core::marker::Sync for AutomationAnnotation {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationBulletStyle(pub i32); -impl AutomationBulletStyle { - pub const None: Self = Self(0i32); - pub const HollowRoundBullet: Self = Self(1i32); - pub const FilledRoundBullet: Self = Self(2i32); - pub const HollowSquareBullet: Self = Self(3i32); - pub const FilledSquareBullet: Self = Self(4i32); - pub const DashBullet: Self = Self(5i32); - pub const Other: Self = Self(6i32); -} -impl ::core::marker::Copy for AutomationBulletStyle {} -impl ::core::clone::Clone for AutomationBulletStyle { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationBulletStyle { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationBulletStyle { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationBulletStyle { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationBulletStyle").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationBulletStyle { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationBulletStyle;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationCaretBidiMode(pub i32); -impl AutomationCaretBidiMode { - pub const LTR: Self = Self(0i32); - pub const RTL: Self = Self(1i32); -} -impl ::core::marker::Copy for AutomationCaretBidiMode {} -impl ::core::clone::Clone for AutomationCaretBidiMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationCaretBidiMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationCaretBidiMode { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationCaretBidiMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationCaretBidiMode").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationCaretBidiMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationCaretBidiMode;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationCaretPosition(pub i32); -impl AutomationCaretPosition { - pub const Unknown: Self = Self(0i32); - pub const EndOfLine: Self = Self(1i32); - pub const BeginningOfLine: Self = Self(2i32); -} -impl ::core::marker::Copy for AutomationCaretPosition {} -impl ::core::clone::Clone for AutomationCaretPosition { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationCaretPosition { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationCaretPosition { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationCaretPosition { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationCaretPosition").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationCaretPosition { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationCaretPosition;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct AutomationElementIdentifiers(::windows::core::IUnknown); -impl AutomationElementIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AcceleratorKeyProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AcceleratorKeyProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AccessKeyProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AccessKeyProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AutomationIdProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AutomationIdProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn BoundingRectangleProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).BoundingRectangleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ClassNameProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ClassNameProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ClickablePointProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ClickablePointProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ControlTypeProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ControlTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HasKeyboardFocusProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HasKeyboardFocusProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HelpTextProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HelpTextProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsContentElementProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsContentElementProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsControlElementProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsControlElementProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsEnabledProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsKeyboardFocusableProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsKeyboardFocusableProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsOffscreenProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsOffscreenProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsPasswordProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsPasswordProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsRequiredForFormProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsRequiredForFormProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ItemStatusProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemStatusProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ItemTypeProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LabeledByProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LabeledByProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LocalizedControlTypeProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalizedControlTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn NameProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).NameProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn OrientationProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).OrientationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LiveSettingProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LiveSettingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ControlledPeersProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ControlledPeersProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn PositionInSetProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PositionInSetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SizeOfSetProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SizeOfSetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LevelProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LevelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AnnotationsProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AnnotationsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LandmarkTypeProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LandmarkTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LocalizedLandmarkTypeProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalizedLandmarkTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsPeripheralProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsPeripheralProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsDataValidForFormProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsDataValidForFormProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FullDescriptionProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FullDescriptionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DescribedByProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DescribedByProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FlowsToProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FlowsToProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FlowsFromProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FlowsFromProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CultureProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics6(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CultureProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HeadingLevelProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics7(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HeadingLevelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsDialogProperty() -> ::windows::core::Result { - Self::IAutomationElementIdentifiersStatics8(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsDialogProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics7 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationElementIdentifiersStatics8 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AutomationElementIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AutomationElementIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AutomationElementIdentifiers {} -impl ::core::fmt::Debug for AutomationElementIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationElementIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationElementIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.AutomationElementIdentifiers;{e68a63cf-4345-4e2d-8a6a-49cce1fa2dcc})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AutomationElementIdentifiers { - type Vtable = IAutomationElementIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AutomationElementIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.AutomationElementIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AutomationElementIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationElementIdentifiers> for ::windows::core::IUnknown { - fn from(value: &AutomationElementIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutomationElementIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutomationElementIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutomationElementIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationElementIdentifiers> for ::windows::core::IInspectable { - fn from(value: &AutomationElementIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutomationElementIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutomationElementIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for AutomationElementIdentifiers {} -unsafe impl ::core::marker::Sync for AutomationElementIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationFlowDirections(pub i32); -impl AutomationFlowDirections { - pub const Default: Self = Self(0i32); - pub const RightToLeft: Self = Self(1i32); - pub const BottomToTop: Self = Self(2i32); - pub const Vertical: Self = Self(3i32); -} -impl ::core::marker::Copy for AutomationFlowDirections {} -impl ::core::clone::Clone for AutomationFlowDirections { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationFlowDirections { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationFlowDirections { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationFlowDirections { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationFlowDirections").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationFlowDirections { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationFlowDirections;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationOutlineStyles(pub i32); -impl AutomationOutlineStyles { - pub const None: Self = Self(0i32); - pub const Outline: Self = Self(1i32); - pub const Shadow: Self = Self(2i32); - pub const Engraved: Self = Self(3i32); - pub const Embossed: Self = Self(4i32); -} -impl ::core::marker::Copy for AutomationOutlineStyles {} -impl ::core::clone::Clone for AutomationOutlineStyles { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationOutlineStyles { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationOutlineStyles { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationOutlineStyles { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationOutlineStyles").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationOutlineStyles { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationOutlineStyles;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct AutomationProperties(::windows::core::IUnknown); -impl AutomationProperties { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AcceleratorKeyProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AcceleratorKeyProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetAcceleratorKey<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetAcceleratorKey)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetAcceleratorKey<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetAcceleratorKey)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AccessKeyProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AccessKeyProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetAccessKey)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetAccessKey<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetAccessKey)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AutomationIdProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AutomationIdProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetAutomationId<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetAutomationId)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetAutomationId<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetAutomationId)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HelpTextProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HelpTextProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetHelpText<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetHelpText)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetHelpText<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetHelpText)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsRequiredForFormProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsRequiredForFormProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetIsRequiredForForm<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetIsRequiredForForm)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetIsRequiredForForm<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: bool) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetIsRequiredForForm)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ItemStatusProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemStatusProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetItemStatus<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetItemStatus)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetItemStatus<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetItemStatus)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ItemTypeProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetItemType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetItemType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetItemType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetItemType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LabeledByProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LabeledByProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetLabeledBy<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetLabeledBy)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetLabeledBy<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, super::UIElement>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetLabeledBy)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn NameProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).NameProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetName<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetName)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetName<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetName)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LiveSettingProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LiveSettingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn GetLiveSetting<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetLiveSetting)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn SetLiveSetting<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: Peers::AutomationLiveSetting) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetLiveSetting)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AccessibilityViewProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AccessibilityViewProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn GetAccessibilityView<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetAccessibilityView)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn SetAccessibilityView<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: Peers::AccessibilityView) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics2(|this| unsafe { (::windows::core::Interface::vtable(this).SetAccessibilityView)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ControlledPeersProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ControlledPeersProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetControlledPeers<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result> { - Self::IAutomationPropertiesStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetControlledPeers)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn PositionInSetProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PositionInSetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetPositionInSet<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetPositionInSet)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetPositionInSet<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: i32) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics3(|this| unsafe { (::windows::core::Interface::vtable(this).SetPositionInSet)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SizeOfSetProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SizeOfSetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetSizeOfSet<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetSizeOfSet)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetSizeOfSet<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: i32) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics3(|this| unsafe { (::windows::core::Interface::vtable(this).SetSizeOfSet)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LevelProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LevelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetLevel<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetLevel)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetLevel<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: i32) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics3(|this| unsafe { (::windows::core::Interface::vtable(this).SetLevel)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AnnotationsProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AnnotationsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetAnnotations<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result> { - Self::IAutomationPropertiesStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetAnnotations)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LandmarkTypeProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LandmarkTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn GetLandmarkType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetLandmarkType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn SetLandmarkType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: Peers::AutomationLandmarkType) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics4(|this| unsafe { (::windows::core::Interface::vtable(this).SetLandmarkType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LocalizedLandmarkTypeProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalizedLandmarkTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetLocalizedLandmarkType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetLocalizedLandmarkType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetLocalizedLandmarkType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics4(|this| unsafe { (::windows::core::Interface::vtable(this).SetLocalizedLandmarkType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsPeripheralProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsPeripheralProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetIsPeripheral<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetIsPeripheral)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetIsPeripheral<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: bool) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics5(|this| unsafe { (::windows::core::Interface::vtable(this).SetIsPeripheral)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsDataValidForFormProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsDataValidForFormProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetIsDataValidForForm<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetIsDataValidForForm)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetIsDataValidForForm<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: bool) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics5(|this| unsafe { (::windows::core::Interface::vtable(this).SetIsDataValidForForm)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FullDescriptionProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FullDescriptionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetFullDescription<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetFullDescription)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetFullDescription<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics5(|this| unsafe { (::windows::core::Interface::vtable(this).SetFullDescription)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LocalizedControlTypeProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalizedControlTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetLocalizedControlType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetLocalizedControlType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetLocalizedControlType<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics5(|this| unsafe { (::windows::core::Interface::vtable(this).SetLocalizedControlType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DescribedByProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DescribedByProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetDescribedBy<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result> { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetDescribedBy)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FlowsToProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FlowsToProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetFlowsTo<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result> { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetFlowsTo)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FlowsFromProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FlowsFromProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetFlowsFrom<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result> { - Self::IAutomationPropertiesStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetFlowsFrom)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CultureProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics6(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CultureProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetCulture<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics6(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetCulture)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetCulture<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: i32) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics6(|this| unsafe { (::windows::core::Interface::vtable(this).SetCulture)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HeadingLevelProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics7(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HeadingLevelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn GetHeadingLevel<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics7(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetHeadingLevel)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn SetHeadingLevel<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: Peers::AutomationHeadingLevel) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics7(|this| unsafe { (::windows::core::Interface::vtable(this).SetHeadingLevel)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsDialogProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics8(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsDialogProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GetIsDialog<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics8(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetIsDialog)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SetIsDialog<'a, Param0: ::windows::core::IntoParam<'a, super::DependencyObject>>(element: Param0, value: bool) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics8(|this| unsafe { (::windows::core::Interface::vtable(this).SetIsDialog)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn AutomationControlTypeProperty() -> ::windows::core::Result { - Self::IAutomationPropertiesStatics9(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AutomationControlTypeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn GetAutomationControlType<'a, Param0: ::windows::core::IntoParam<'a, super::UIElement>>(element: Param0) -> ::windows::core::Result { - Self::IAutomationPropertiesStatics9(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetAutomationControlType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`, `\"UI_Xaml_Automation_Peers\"`*"] - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub fn SetAutomationControlType<'a, Param0: ::windows::core::IntoParam<'a, super::UIElement>>(element: Param0, value: Peers::AutomationControlType) -> ::windows::core::Result<()> { - Self::IAutomationPropertiesStatics9(|this| unsafe { (::windows::core::Interface::vtable(this).SetAutomationControlType)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value).ok() }) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics7 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics8 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAutomationPropertiesStatics9 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AutomationProperties { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AutomationProperties { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AutomationProperties {} -impl ::core::fmt::Debug for AutomationProperties { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationProperties").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationProperties { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.AutomationProperties;{68d7232c-e622-48e9-af0b-1ffa33cc5cba})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AutomationProperties { - type Vtable = IAutomationProperties_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AutomationProperties { - const NAME: &'static str = "Windows.UI.Xaml.Automation.AutomationProperties"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AutomationProperties) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationProperties> for ::windows::core::IUnknown { - fn from(value: &AutomationProperties) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutomationProperties { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutomationProperties { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutomationProperties) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationProperties> for ::windows::core::IInspectable { - fn from(value: &AutomationProperties) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutomationProperties { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutomationProperties { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for AutomationProperties {} -unsafe impl ::core::marker::Sync for AutomationProperties {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct AutomationProperty(::windows::core::IUnknown); -impl AutomationProperty {} -impl ::core::clone::Clone for AutomationProperty { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AutomationProperty { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AutomationProperty {} -impl ::core::fmt::Debug for AutomationProperty { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationProperty").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationProperty { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.AutomationProperty;{b627195b-3227-4e16-9534-ddece30ddb46})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AutomationProperty { - type Vtable = IAutomationProperty_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AutomationProperty { - const NAME: &'static str = "Windows.UI.Xaml.Automation.AutomationProperty"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AutomationProperty) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationProperty> for ::windows::core::IUnknown { - fn from(value: &AutomationProperty) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AutomationProperty { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AutomationProperty { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AutomationProperty) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AutomationProperty> for ::windows::core::IInspectable { - fn from(value: &AutomationProperty) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AutomationProperty { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AutomationProperty { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for AutomationProperty {} -unsafe impl ::core::marker::Sync for AutomationProperty {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationStyleId(pub i32); -impl AutomationStyleId { - pub const Heading1: Self = Self(70001i32); - pub const Heading2: Self = Self(70002i32); - pub const Heading3: Self = Self(70003i32); - pub const Heading4: Self = Self(70004i32); - pub const Heading5: Self = Self(70005i32); - pub const Heading6: Self = Self(70006i32); - pub const Heading7: Self = Self(70007i32); - pub const Heading8: Self = Self(70008i32); - pub const Heading9: Self = Self(70009i32); - pub const Title: Self = Self(70010i32); - pub const Subtitle: Self = Self(70011i32); - pub const Normal: Self = Self(70012i32); - pub const Emphasis: Self = Self(70013i32); - pub const Quote: Self = Self(70014i32); - pub const BulletedList: Self = Self(70015i32); -} -impl ::core::marker::Copy for AutomationStyleId {} -impl ::core::clone::Clone for AutomationStyleId { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationStyleId { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationStyleId { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationStyleId { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationStyleId").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationStyleId { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationStyleId;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationTextDecorationLineStyle(pub i32); -impl AutomationTextDecorationLineStyle { - pub const None: Self = Self(0i32); - pub const Single: Self = Self(1i32); - pub const WordsOnly: Self = Self(2i32); - pub const Double: Self = Self(3i32); - pub const Dot: Self = Self(4i32); - pub const Dash: Self = Self(5i32); - pub const DashDot: Self = Self(6i32); - pub const DashDotDot: Self = Self(7i32); - pub const Wavy: Self = Self(8i32); - pub const ThickSingle: Self = Self(9i32); - pub const DoubleWavy: Self = Self(10i32); - pub const ThickWavy: Self = Self(11i32); - pub const LongDash: Self = Self(12i32); - pub const ThickDash: Self = Self(13i32); - pub const ThickDashDot: Self = Self(14i32); - pub const ThickDashDotDot: Self = Self(15i32); - pub const ThickDot: Self = Self(16i32); - pub const ThickLongDash: Self = Self(17i32); - pub const Other: Self = Self(18i32); -} -impl ::core::marker::Copy for AutomationTextDecorationLineStyle {} -impl ::core::clone::Clone for AutomationTextDecorationLineStyle { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationTextDecorationLineStyle { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationTextDecorationLineStyle { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationTextDecorationLineStyle { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationTextDecorationLineStyle").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationTextDecorationLineStyle { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationTextDecorationLineStyle;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AutomationTextEditChangeType(pub i32); -impl AutomationTextEditChangeType { - pub const None: Self = Self(0i32); - pub const AutoCorrect: Self = Self(1i32); - pub const Composition: Self = Self(2i32); - pub const CompositionFinalized: Self = Self(3i32); -} -impl ::core::marker::Copy for AutomationTextEditChangeType {} -impl ::core::clone::Clone for AutomationTextEditChangeType { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AutomationTextEditChangeType { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AutomationTextEditChangeType { - type Abi = Self; -} -impl ::core::fmt::Debug for AutomationTextEditChangeType { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AutomationTextEditChangeType").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AutomationTextEditChangeType { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.AutomationTextEditChangeType;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct DockPatternIdentifiers(::windows::core::IUnknown); -impl DockPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DockPositionProperty() -> ::windows::core::Result { - Self::IDockPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DockPositionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IDockPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for DockPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DockPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DockPatternIdentifiers {} -impl ::core::fmt::Debug for DockPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DockPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for DockPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.DockPatternIdentifiers;{ccd7f4e6-e4f9-47ff-bde7-378b11f78e09})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DockPatternIdentifiers { - type Vtable = IDockPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for DockPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.DockPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DockPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DockPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &DockPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DockPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DockPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DockPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DockPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &DockPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DockPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DockPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for DockPatternIdentifiers {} -unsafe impl ::core::marker::Sync for DockPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct DockPosition(pub i32); -impl DockPosition { - pub const Top: Self = Self(0i32); - pub const Left: Self = Self(1i32); - pub const Bottom: Self = Self(2i32); - pub const Right: Self = Self(3i32); - pub const Fill: Self = Self(4i32); - pub const None: Self = Self(5i32); -} -impl ::core::marker::Copy for DockPosition {} -impl ::core::clone::Clone for DockPosition { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for DockPosition { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for DockPosition { - type Abi = Self; -} -impl ::core::fmt::Debug for DockPosition { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DockPosition").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for DockPosition { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.DockPosition;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct DragPatternIdentifiers(::windows::core::IUnknown); -impl DragPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DropEffectProperty() -> ::windows::core::Result { - Self::IDragPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffectProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DropEffectsProperty() -> ::windows::core::Result { - Self::IDragPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DropEffectsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn GrabbedItemsProperty() -> ::windows::core::Result { - Self::IDragPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GrabbedItemsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsGrabbedProperty() -> ::windows::core::Result { - Self::IDragPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsGrabbedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IDragPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for DragPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DragPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DragPatternIdentifiers {} -impl ::core::fmt::Debug for DragPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DragPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for DragPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.DragPatternIdentifiers;{6266e985-4d07-4e80-82eb-8f96690a1a0c})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DragPatternIdentifiers { - type Vtable = IDragPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for DragPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.DragPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DragPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &DragPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DragPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DragPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DragPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &DragPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DragPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DragPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for DragPatternIdentifiers {} -unsafe impl ::core::marker::Sync for DragPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct DropTargetPatternIdentifiers(::windows::core::IUnknown); -impl DropTargetPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DropTargetEffectProperty() -> ::windows::core::Result { - Self::IDropTargetPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DropTargetEffectProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn DropTargetEffectsProperty() -> ::windows::core::Result { - Self::IDropTargetPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DropTargetEffectsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IDropTargetPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for DropTargetPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DropTargetPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DropTargetPatternIdentifiers {} -impl ::core::fmt::Debug for DropTargetPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DropTargetPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for DropTargetPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.DropTargetPatternIdentifiers;{11865133-a6fe-4634-bd18-0ef612b7b208})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DropTargetPatternIdentifiers { - type Vtable = IDropTargetPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for DropTargetPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.DropTargetPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: DropTargetPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DropTargetPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &DropTargetPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for DropTargetPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a DropTargetPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DropTargetPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DropTargetPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &DropTargetPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for DropTargetPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a DropTargetPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for DropTargetPatternIdentifiers {} -unsafe impl ::core::marker::Sync for DropTargetPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct ExpandCollapsePatternIdentifiers(::windows::core::IUnknown); -impl ExpandCollapsePatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ExpandCollapseStateProperty() -> ::windows::core::Result { - Self::IExpandCollapsePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ExpandCollapseStateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IExpandCollapsePatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ExpandCollapsePatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ExpandCollapsePatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ExpandCollapsePatternIdentifiers {} -impl ::core::fmt::Debug for ExpandCollapsePatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ExpandCollapsePatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ExpandCollapsePatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.ExpandCollapsePatternIdentifiers;{b006bac0-751b-4d55-92cb-613ec1bdf5d0})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ExpandCollapsePatternIdentifiers { - type Vtable = IExpandCollapsePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for ExpandCollapsePatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.ExpandCollapsePatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ExpandCollapsePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ExpandCollapsePatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &ExpandCollapsePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ExpandCollapsePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ExpandCollapsePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ExpandCollapsePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ExpandCollapsePatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &ExpandCollapsePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ExpandCollapsePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ExpandCollapsePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for ExpandCollapsePatternIdentifiers {} -unsafe impl ::core::marker::Sync for ExpandCollapsePatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ExpandCollapseState(pub i32); -impl ExpandCollapseState { - pub const Collapsed: Self = Self(0i32); - pub const Expanded: Self = Self(1i32); - pub const PartiallyExpanded: Self = Self(2i32); - pub const LeafNode: Self = Self(3i32); -} -impl ::core::marker::Copy for ExpandCollapseState {} -impl ::core::clone::Clone for ExpandCollapseState { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ExpandCollapseState { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ExpandCollapseState { - type Abi = Self; -} -impl ::core::fmt::Debug for ExpandCollapseState { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ExpandCollapseState").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ExpandCollapseState { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.ExpandCollapseState;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct GridItemPatternIdentifiers(::windows::core::IUnknown); -impl GridItemPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ColumnProperty() -> ::windows::core::Result { - Self::IGridItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColumnProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ColumnSpanProperty() -> ::windows::core::Result { - Self::IGridItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColumnSpanProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ContainingGridProperty() -> ::windows::core::Result { - Self::IGridItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ContainingGridProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn RowProperty() -> ::windows::core::Result { - Self::IGridItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RowProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn RowSpanProperty() -> ::windows::core::Result { - Self::IGridItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RowSpanProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGridItemPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GridItemPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridItemPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridItemPatternIdentifiers {} -impl ::core::fmt::Debug for GridItemPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridItemPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for GridItemPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.GridItemPatternIdentifiers;{757744f1-3285-4fb1-803b-2545bd431599})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridItemPatternIdentifiers { - type Vtable = IGridItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for GridItemPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.GridItemPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridItemPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &GridItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridItemPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &GridItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for GridItemPatternIdentifiers {} -unsafe impl ::core::marker::Sync for GridItemPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct GridPatternIdentifiers(::windows::core::IUnknown); -impl GridPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ColumnCountProperty() -> ::windows::core::Result { - Self::IGridPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColumnCountProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn RowCountProperty() -> ::windows::core::Result { - Self::IGridPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RowCountProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGridPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GridPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridPatternIdentifiers {} -impl ::core::fmt::Debug for GridPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for GridPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.GridPatternIdentifiers;{c902980f-96c5-450c-9044-7e52c24f9e94})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridPatternIdentifiers { - type Vtable = IGridPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for GridPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.GridPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: GridPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &GridPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for GridPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a GridPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &GridPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for GridPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a GridPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for GridPatternIdentifiers {} -unsafe impl ::core::marker::Sync for GridPatternIdentifiers {} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAnnotationPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAnnotationPatternIdentifiers { - type Vtable = IAnnotationPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd475a0c1_48b2_4e40_a6cf_3dc4b638c0de); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAnnotationPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAnnotationPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAnnotationPatternIdentifiersStatics { - type Vtable = IAnnotationPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe0e3a35d_d167_46dc_95ab_330af61aebb5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAnnotationPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AnnotationTypeIdProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AnnotationTypeNameProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AuthorProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DateTimeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TargetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationAnnotation(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationAnnotation { - type Vtable = IAutomationAnnotation_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfb3c30ca_03d8_4618_91bf_e4d84f4af318); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationAnnotation_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Type: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AnnotationType) -> ::windows::core::HRESULT, - pub SetType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: AnnotationType) -> ::windows::core::HRESULT, - pub Element: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationAnnotationFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationAnnotationFactory { - type Vtable = IAutomationAnnotationFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4906fa52_ddc0_4e69_b76b_019d928d822f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationAnnotationFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AnnotationType, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateWithElementParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, r#type: AnnotationType, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationAnnotationStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationAnnotationStatics { - type Vtable = IAutomationAnnotationStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe503eab7_4ee5_48cb_b5b8_bbcd46c9d1da); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationAnnotationStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub TypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ElementProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiers { - type Vtable = IAutomationElementIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe68a63cf_4345_4e2d_8a6a_49cce1fa2dcc); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics { - type Vtable = IAutomationElementIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4549399f_8340_4d67_b9bf_8c2ac6a0773a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AcceleratorKeyProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AccessKeyProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AutomationIdProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub BoundingRectangleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ClassNameProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ClickablePointProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ControlTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HasKeyboardFocusProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HelpTextProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsContentElementProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsControlElementProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsKeyboardFocusableProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsOffscreenProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsPasswordProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsRequiredForFormProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemStatusProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LabeledByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LocalizedControlTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub NameProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub OrientationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LiveSettingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics2 { - type Vtable = IAutomationElementIdentifiersStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb5cbb1e2_d55f_46a9_9eda_1a4742515dc3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ControlledPeersProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics3 { - type Vtable = IAutomationElementIdentifiersStatics3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0f5cbebd_b3eb_4083_adc7_0c2f39bb3543); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub PositionInSetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SizeOfSetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LevelProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AnnotationsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics4 { - type Vtable = IAutomationElementIdentifiersStatics4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5af51f75_5913_4d78_b330_a6f50b73ed9b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LandmarkTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LocalizedLandmarkTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics5 { - type Vtable = IAutomationElementIdentifiersStatics5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x986a8206_de59_42f9_a1e7_62b8af9e756d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsPeripheralProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsDataValidForFormProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FullDescriptionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DescribedByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FlowsToProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FlowsFromProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics6 { - type Vtable = IAutomationElementIdentifiersStatics6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde52b00d_8328_4eae_8035_f8db99c8bac4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CultureProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics7(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics7 { - type Vtable = IAutomationElementIdentifiersStatics7_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00f1abb2_742c_446a_a8f6_1672b10d2874); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics7_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub HeadingLevelProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationElementIdentifiersStatics8(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationElementIdentifiersStatics8 { - type Vtable = IAutomationElementIdentifiersStatics8_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8517b060_806c_5dc5_bc41_891bb5a47adf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationElementIdentifiersStatics8_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsDialogProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationProperties(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationProperties { - type Vtable = IAutomationProperties_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x68d7232c_e622_48e9_af0b_1ffa33cc5cba); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationProperties_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics { - type Vtable = IAutomationPropertiesStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb618fd7b_32d0_4970_9c42_7c039ac7be78); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AcceleratorKeyProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAcceleratorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetAcceleratorKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub AccessKeyProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAccessKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetAccessKey: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub AutomationIdProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAutomationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetAutomationId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub HelpTextProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetHelpText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetHelpText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub IsRequiredForFormProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetIsRequiredForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsRequiredForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ItemStatusProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetItemStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub ItemTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetItemType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub LabeledByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetLabeledBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetLabeledBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub NameProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub LiveSettingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub GetLiveSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut Peers::AutomationLiveSetting) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - GetLiveSetting: usize, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub SetLiveSetting: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: Peers::AutomationLiveSetting) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - SetLiveSetting: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics2 { - type Vtable = IAutomationPropertiesStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3976547f_7089_4801_8f1d_aab78090d1a0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AccessibilityViewProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub GetAccessibilityView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut Peers::AccessibilityView) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - GetAccessibilityView: usize, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub SetAccessibilityView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: Peers::AccessibilityView) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - SetAccessibilityView: usize, - pub ControlledPeersProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetControlledPeers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetControlledPeers: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics3 { - type Vtable = IAutomationPropertiesStatics3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b75d735_5cb1_42ad_9b57_5faba8c1867f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub PositionInSetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetPositionInSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetPositionInSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub SizeOfSetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetSizeOfSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetSizeOfSet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub LevelProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub AnnotationsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetAnnotations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetAnnotations: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics4 { - type Vtable = IAutomationPropertiesStatics4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf7d62655_311a_4b7c_a131_524e89cd3cf9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LandmarkTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub GetLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut Peers::AutomationLandmarkType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - GetLandmarkType: usize, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub SetLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: Peers::AutomationLandmarkType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - SetLandmarkType: usize, - pub LocalizedLandmarkTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetLocalizedLandmarkType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics5 { - type Vtable = IAutomationPropertiesStatics5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0be35b26_c8f9_41a2_b4db_e6a7a32b0c34); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsPeripheralProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetIsPeripheral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsPeripheral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub IsDataValidForFormProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetIsDataValidForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsDataValidForForm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub FullDescriptionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetFullDescription: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub LocalizedControlTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetLocalizedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetLocalizedControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub DescribedByProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetDescribedBy: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetDescribedBy: usize, - pub FlowsToProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetFlowsTo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFlowsTo: usize, - pub FlowsFromProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub GetFlowsFrom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetFlowsFrom: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics6 { - type Vtable = IAutomationPropertiesStatics6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc61e030f_eb49_4e5d_b012_4c1c96c3901b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CultureProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetCulture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetCulture: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics7(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics7 { - type Vtable = IAutomationPropertiesStatics7_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf7e98bf3_8f91_4068_a4ad_b7b402d10a2c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics7_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub HeadingLevelProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub GetHeadingLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut Peers::AutomationHeadingLevel) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - GetHeadingLevel: usize, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub SetHeadingLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: Peers::AutomationHeadingLevel) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - SetHeadingLevel: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics8(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics8 { - type Vtable = IAutomationPropertiesStatics8_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x432eca20_171a_560d_8524_3e651d3ad6ca); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics8_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsDialogProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetIsDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsDialog: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationPropertiesStatics9(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationPropertiesStatics9 { - type Vtable = IAutomationPropertiesStatics9_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2f20b1d1_87b2_5562_8077_da593edafd2d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationPropertiesStatics9_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AutomationControlTypeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub GetAutomationControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut Peers::AutomationControlType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - GetAutomationControlType: usize, - #[cfg(feature = "UI_Xaml_Automation_Peers")] - pub SetAutomationControlType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: Peers::AutomationControlType) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Automation_Peers"))] - SetAutomationControlType: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAutomationProperty(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAutomationProperty { - type Vtable = IAutomationProperty_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb627195b_3227_4e16_9534_ddece30ddb46); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAutomationProperty_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDockPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDockPatternIdentifiers { - type Vtable = IDockPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xccd7f4e6_e4f9_47ff_bde7_378b11f78e09); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDockPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDockPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDockPatternIdentifiersStatics { - type Vtable = IDockPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2b87245c_ed80_4fe5_8eb4_708a39c841e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDockPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DockPositionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragPatternIdentifiers { - type Vtable = IDragPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6266e985_4d07_4e80_82eb_8f96690a1a0c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragPatternIdentifiersStatics { - type Vtable = IDragPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a05379d_1755_4082_9d90_46f1411d7986); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DropEffectProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DropEffectsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GrabbedItemsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsGrabbedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDropTargetPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDropTargetPatternIdentifiers { - type Vtable = IDropTargetPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x11865133_a6fe_4634_bd18_0ef612b7b208); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDropTargetPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDropTargetPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDropTargetPatternIdentifiersStatics { - type Vtable = IDropTargetPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b693304_89fb_4b0a_9452_ca2c66aaf9f3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDropTargetPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DropTargetEffectProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DropTargetEffectsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IExpandCollapsePatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IExpandCollapsePatternIdentifiers { - type Vtable = IExpandCollapsePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb006bac0_751b_4d55_92cb_613ec1bdf5d0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IExpandCollapsePatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IExpandCollapsePatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IExpandCollapsePatternIdentifiersStatics { - type Vtable = IExpandCollapsePatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd7816fd4_6ee0_4f38_8e14_56ef21adacfd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IExpandCollapsePatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ExpandCollapseStateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridItemPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridItemPatternIdentifiers { - type Vtable = IGridItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x757744f1_3285_4fb1_803b_2545bd431599); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridItemPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridItemPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridItemPatternIdentifiersStatics { - type Vtable = IGridItemPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x217d2402_5e46_4d61_8794_b8ee8e774714); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridItemPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColumnProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ColumnSpanProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ContainingGridProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RowProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RowSpanProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridPatternIdentifiers { - type Vtable = IGridPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc902980f_96c5_450c_9044_7e52c24f9e94); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridPatternIdentifiersStatics { - type Vtable = IGridPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7bc452f3_a181_4137_8de9_1f9b1a8320ed); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColumnCountProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RowCountProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMultipleViewPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMultipleViewPatternIdentifiers { - type Vtable = IMultipleViewPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5d5cd3b8_1e12_488b_b0ea_5e6cb89816e1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMultipleViewPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMultipleViewPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMultipleViewPatternIdentifiersStatics { - type Vtable = IMultipleViewPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa9cfa66f_6b84_4d71_9e48_d764d3bcda8e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMultipleViewPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CurrentViewProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SupportedViewsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeValuePatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeValuePatternIdentifiers { - type Vtable = IRangeValuePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf8760f45_33c9_467d_bc9e_d1515263ace1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeValuePatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeValuePatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeValuePatternIdentifiersStatics { - type Vtable = IRangeValuePatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce23450f_1c27_457f_b815_7a5e46863dbb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeValuePatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsReadOnlyProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LargeChangeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MaximumProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MinimumProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SmallChangeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ValueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollPatternIdentifiers { - type Vtable = IScrollPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x366b1003_425c_4951_ae83_d521e73bc696); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollPatternIdentifiersStatics { - type Vtable = IScrollPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4bf8e0a1_fb7f_4fa4_83b3_cfaeb103a685); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub HorizontallyScrollableProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HorizontalScrollPercentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HorizontalViewSizeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub NoScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticallyScrollableProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub VerticalScrollPercentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub VerticalViewSizeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectionItemPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectionItemPatternIdentifiers { - type Vtable = ISelectionItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2dafa41a_3ef8_4bb5_a02b_3ee1b2274740); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectionItemPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectionItemPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectionItemPatternIdentifiersStatics { - type Vtable = ISelectionItemPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa918d163_487e_4e3e_9f86_7b44acbe27ce); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectionItemPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsSelectedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionContainerProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectionPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectionPatternIdentifiers { - type Vtable = ISelectionPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4aa66fb0_e3f7_475f_b78d_f8a83bb730c4); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectionPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectionPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectionPatternIdentifiersStatics { - type Vtable = ISelectionPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93035b4c_6b50_40a1_b23f_5c78ddbd479a); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectionPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanSelectMultipleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsSelectionRequiredProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISpreadsheetItemPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISpreadsheetItemPatternIdentifiers { - type Vtable = ISpreadsheetItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x84347e19_ca4b_46a2_a794_c87928a3b1ab); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISpreadsheetItemPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISpreadsheetItemPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISpreadsheetItemPatternIdentifiersStatics { - type Vtable = ISpreadsheetItemPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x43658779_5380_4f12_b468_b4f368ad4499); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISpreadsheetItemPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FormulaProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IStylesPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IStylesPatternIdentifiers { - type Vtable = IStylesPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0e4e201_e89d_436b_8287_4f7903466879); -} -#[repr(C)] -#[doc(hidden)] -pub struct IStylesPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IStylesPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IStylesPatternIdentifiersStatics { - type Vtable = IStylesPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x528a457a_bc3c_4d48_94af_1f68703ca296); -} -#[repr(C)] -#[doc(hidden)] -pub struct IStylesPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ExtendedPropertiesProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FillColorProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FillPatternColorProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FillPatternStyleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ShapeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StyleIdProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StyleNameProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITableItemPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITableItemPatternIdentifiers { - type Vtable = ITableItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc326e5ad_8077_4c64_98e4_e83bcf1b4389); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITableItemPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITableItemPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITableItemPatternIdentifiersStatics { - type Vtable = ITableItemPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x24c4b923_e9a2_4de9_b2a4_a8b22d0be362); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITableItemPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColumnHeaderItemsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RowHeaderItemsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITablePatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITablePatternIdentifiers { - type Vtable = ITablePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x38d104fe_0d0c_412a_bf8d_51ede683baf5); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITablePatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITablePatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITablePatternIdentifiersStatics { - type Vtable = ITablePatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x75073d25_32c9_4903_aecf_dc3504cbd244); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITablePatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColumnHeadersProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RowHeadersProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RowOrColumnMajorProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITogglePatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITogglePatternIdentifiers { - type Vtable = ITogglePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7e191f6b_34d4_4ae7_83ac_29f88882d985); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITogglePatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITogglePatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITogglePatternIdentifiersStatics { - type Vtable = ITogglePatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc7f75544_14a5_4f2f_92fc_760524de06ea); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITogglePatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ToggleStateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITransformPattern2Identifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITransformPattern2Identifiers { - type Vtable = ITransformPattern2Identifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x08aaa03d_dea7_402f_8097_9a2783d60e5d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITransformPattern2Identifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITransformPattern2IdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITransformPattern2IdentifiersStatics { - type Vtable = ITransformPattern2IdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x78963644_11f0_467c_a72b_5dac41c1f6fe); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITransformPattern2IdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanZoomProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ZoomLevelProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MaxZoomProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MinZoomProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITransformPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITransformPatternIdentifiers { - type Vtable = ITransformPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe4115b8c_c3c8_4a37_b994_2709a7811665); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITransformPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITransformPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITransformPatternIdentifiersStatics { - type Vtable = ITransformPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4570edab_d705_40c4_a1dc_e9acfcef85f6); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITransformPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanMoveProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CanResizeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CanRotateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IValuePatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IValuePatternIdentifiers { - type Vtable = IValuePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x425bf64c_5333_4e41_b470_2bad14ecd085); -} -#[repr(C)] -#[doc(hidden)] -pub struct IValuePatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IValuePatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IValuePatternIdentifiersStatics { - type Vtable = IValuePatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc247e8f7_adcc_440f_b123_33788a40525a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IValuePatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsReadOnlyProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ValueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IWindowPatternIdentifiers(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IWindowPatternIdentifiers { - type Vtable = IWindowPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x39f78bb4_7032_41e2_b79e_27b74a8628de); -} -#[repr(C)] -#[doc(hidden)] -pub struct IWindowPatternIdentifiers_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IWindowPatternIdentifiersStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IWindowPatternIdentifiersStatics { - type Vtable = IWindowPatternIdentifiersStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x07d0ad06_6302_4d29_878b_19da03fc228d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IWindowPatternIdentifiersStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanMaximizeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CanMinimizeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsModalProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsTopmostProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub WindowInteractionStateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub WindowVisualStateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct MultipleViewPatternIdentifiers(::windows::core::IUnknown); -impl MultipleViewPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CurrentViewProperty() -> ::windows::core::Result { - Self::IMultipleViewPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CurrentViewProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SupportedViewsProperty() -> ::windows::core::Result { - Self::IMultipleViewPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SupportedViewsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMultipleViewPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MultipleViewPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MultipleViewPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MultipleViewPatternIdentifiers {} -impl ::core::fmt::Debug for MultipleViewPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MultipleViewPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MultipleViewPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.MultipleViewPatternIdentifiers;{5d5cd3b8-1e12-488b-b0ea-5e6cb89816e1})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MultipleViewPatternIdentifiers { - type Vtable = IMultipleViewPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MultipleViewPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.MultipleViewPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MultipleViewPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MultipleViewPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &MultipleViewPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MultipleViewPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MultipleViewPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MultipleViewPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MultipleViewPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &MultipleViewPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MultipleViewPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MultipleViewPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MultipleViewPatternIdentifiers {} -unsafe impl ::core::marker::Sync for MultipleViewPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct RangeValuePatternIdentifiers(::windows::core::IUnknown); -impl RangeValuePatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsReadOnlyProperty() -> ::windows::core::Result { - Self::IRangeValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsReadOnlyProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn LargeChangeProperty() -> ::windows::core::Result { - Self::IRangeValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LargeChangeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn MaximumProperty() -> ::windows::core::Result { - Self::IRangeValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MaximumProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn MinimumProperty() -> ::windows::core::Result { - Self::IRangeValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MinimumProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SmallChangeProperty() -> ::windows::core::Result { - Self::IRangeValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SmallChangeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ValueProperty() -> ::windows::core::Result { - Self::IRangeValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ValueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRangeValuePatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RangeValuePatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RangeValuePatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RangeValuePatternIdentifiers {} -impl ::core::fmt::Debug for RangeValuePatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RangeValuePatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for RangeValuePatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.RangeValuePatternIdentifiers;{f8760f45-33c9-467d-bc9e-d1515263ace1})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RangeValuePatternIdentifiers { - type Vtable = IRangeValuePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for RangeValuePatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.RangeValuePatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: RangeValuePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeValuePatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &RangeValuePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for RangeValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a RangeValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RangeValuePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeValuePatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &RangeValuePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for RangeValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a RangeValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for RangeValuePatternIdentifiers {} -unsafe impl ::core::marker::Sync for RangeValuePatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct RowOrColumnMajor(pub i32); -impl RowOrColumnMajor { - pub const RowMajor: Self = Self(0i32); - pub const ColumnMajor: Self = Self(1i32); - pub const Indeterminate: Self = Self(2i32); -} -impl ::core::marker::Copy for RowOrColumnMajor {} -impl ::core::clone::Clone for RowOrColumnMajor { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for RowOrColumnMajor { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for RowOrColumnMajor { - type Abi = Self; -} -impl ::core::fmt::Debug for RowOrColumnMajor { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RowOrColumnMajor").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for RowOrColumnMajor { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.RowOrColumnMajor;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ScrollAmount(pub i32); -impl ScrollAmount { - pub const LargeDecrement: Self = Self(0i32); - pub const SmallDecrement: Self = Self(1i32); - pub const NoAmount: Self = Self(2i32); - pub const LargeIncrement: Self = Self(3i32); - pub const SmallIncrement: Self = Self(4i32); -} -impl ::core::marker::Copy for ScrollAmount {} -impl ::core::clone::Clone for ScrollAmount { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ScrollAmount { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ScrollAmount { - type Abi = Self; -} -impl ::core::fmt::Debug for ScrollAmount { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollAmount").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ScrollAmount { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.ScrollAmount;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct ScrollPatternIdentifiers(::windows::core::IUnknown); -impl ScrollPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HorizontallyScrollableProperty() -> ::windows::core::Result { - Self::IScrollPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HorizontallyScrollableProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HorizontalScrollPercentProperty() -> ::windows::core::Result { - Self::IScrollPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalScrollPercentProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn HorizontalViewSizeProperty() -> ::windows::core::Result { - Self::IScrollPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalViewSizeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn NoScroll() -> ::windows::core::Result { - Self::IScrollPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NoScroll)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn VerticallyScrollableProperty() -> ::windows::core::Result { - Self::IScrollPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).VerticallyScrollableProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn VerticalScrollPercentProperty() -> ::windows::core::Result { - Self::IScrollPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).VerticalScrollPercentProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn VerticalViewSizeProperty() -> ::windows::core::Result { - Self::IScrollPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).VerticalViewSizeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IScrollPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ScrollPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ScrollPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ScrollPatternIdentifiers {} -impl ::core::fmt::Debug for ScrollPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ScrollPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.ScrollPatternIdentifiers;{366b1003-425c-4951-ae83-d521e73bc696})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ScrollPatternIdentifiers { - type Vtable = IScrollPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for ScrollPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.ScrollPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ScrollPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &ScrollPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ScrollPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ScrollPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &ScrollPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ScrollPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ScrollPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for ScrollPatternIdentifiers {} -unsafe impl ::core::marker::Sync for ScrollPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct SelectionItemPatternIdentifiers(::windows::core::IUnknown); -impl SelectionItemPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsSelectedProperty() -> ::windows::core::Result { - Self::ISelectionItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsSelectedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SelectionContainerProperty() -> ::windows::core::Result { - Self::ISelectionItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionContainerProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISelectionItemPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SelectionItemPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SelectionItemPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SelectionItemPatternIdentifiers {} -impl ::core::fmt::Debug for SelectionItemPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SelectionItemPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for SelectionItemPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.SelectionItemPatternIdentifiers;{2dafa41a-3ef8-4bb5-a02b-3ee1b2274740})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SelectionItemPatternIdentifiers { - type Vtable = ISelectionItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for SelectionItemPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.SelectionItemPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SelectionItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectionItemPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &SelectionItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectionItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectionItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectionItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectionItemPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &SelectionItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectionItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectionItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for SelectionItemPatternIdentifiers {} -unsafe impl ::core::marker::Sync for SelectionItemPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct SelectionPatternIdentifiers(::windows::core::IUnknown); -impl SelectionPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CanSelectMultipleProperty() -> ::windows::core::Result { - Self::ISelectionPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanSelectMultipleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsSelectionRequiredProperty() -> ::windows::core::Result { - Self::ISelectionPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsSelectionRequiredProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn SelectionProperty() -> ::windows::core::Result { - Self::ISelectionPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISelectionPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SelectionPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SelectionPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SelectionPatternIdentifiers {} -impl ::core::fmt::Debug for SelectionPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SelectionPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for SelectionPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.SelectionPatternIdentifiers;{4aa66fb0-e3f7-475f-b78d-f8a83bb730c4})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SelectionPatternIdentifiers { - type Vtable = ISelectionPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for SelectionPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.SelectionPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SelectionPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectionPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &SelectionPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SelectionPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SelectionPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectionPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectionPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &SelectionPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SelectionPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SelectionPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for SelectionPatternIdentifiers {} -unsafe impl ::core::marker::Sync for SelectionPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct SpreadsheetItemPatternIdentifiers(::windows::core::IUnknown); -impl SpreadsheetItemPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FormulaProperty() -> ::windows::core::Result { - Self::ISpreadsheetItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FormulaProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISpreadsheetItemPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SpreadsheetItemPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SpreadsheetItemPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SpreadsheetItemPatternIdentifiers {} -impl ::core::fmt::Debug for SpreadsheetItemPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SpreadsheetItemPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for SpreadsheetItemPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.SpreadsheetItemPatternIdentifiers;{84347e19-ca4b-46a2-a794-c87928a3b1ab})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SpreadsheetItemPatternIdentifiers { - type Vtable = ISpreadsheetItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for SpreadsheetItemPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.SpreadsheetItemPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: SpreadsheetItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SpreadsheetItemPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &SpreadsheetItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for SpreadsheetItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a SpreadsheetItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SpreadsheetItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SpreadsheetItemPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &SpreadsheetItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for SpreadsheetItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a SpreadsheetItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for SpreadsheetItemPatternIdentifiers {} -unsafe impl ::core::marker::Sync for SpreadsheetItemPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct StylesPatternIdentifiers(::windows::core::IUnknown); -impl StylesPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ExtendedPropertiesProperty() -> ::windows::core::Result { - Self::IStylesPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ExtendedPropertiesProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FillColorProperty() -> ::windows::core::Result { - Self::IStylesPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FillColorProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FillPatternColorProperty() -> ::windows::core::Result { - Self::IStylesPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FillPatternColorProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn FillPatternStyleProperty() -> ::windows::core::Result { - Self::IStylesPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FillPatternStyleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ShapeProperty() -> ::windows::core::Result { - Self::IStylesPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ShapeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn StyleIdProperty() -> ::windows::core::Result { - Self::IStylesPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StyleIdProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn StyleNameProperty() -> ::windows::core::Result { - Self::IStylesPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StyleNameProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IStylesPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for StylesPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for StylesPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for StylesPatternIdentifiers {} -impl ::core::fmt::Debug for StylesPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("StylesPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for StylesPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.StylesPatternIdentifiers;{b0e4e201-e89d-436b-8287-4f7903466879})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for StylesPatternIdentifiers { - type Vtable = IStylesPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for StylesPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.StylesPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: StylesPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&StylesPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &StylesPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for StylesPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a StylesPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: StylesPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&StylesPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &StylesPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for StylesPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a StylesPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for StylesPatternIdentifiers {} -unsafe impl ::core::marker::Sync for StylesPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct SupportedTextSelection(pub i32); -impl SupportedTextSelection { - pub const None: Self = Self(0i32); - pub const Single: Self = Self(1i32); - pub const Multiple: Self = Self(2i32); -} -impl ::core::marker::Copy for SupportedTextSelection {} -impl ::core::clone::Clone for SupportedTextSelection { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for SupportedTextSelection { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for SupportedTextSelection { - type Abi = Self; -} -impl ::core::fmt::Debug for SupportedTextSelection { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SupportedTextSelection").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for SupportedTextSelection { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.SupportedTextSelection;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct SynchronizedInputType(pub i32); -impl SynchronizedInputType { - pub const KeyUp: Self = Self(1i32); - pub const KeyDown: Self = Self(2i32); - pub const LeftMouseUp: Self = Self(4i32); - pub const LeftMouseDown: Self = Self(8i32); - pub const RightMouseUp: Self = Self(16i32); - pub const RightMouseDown: Self = Self(32i32); -} -impl ::core::marker::Copy for SynchronizedInputType {} -impl ::core::clone::Clone for SynchronizedInputType { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for SynchronizedInputType { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for SynchronizedInputType { - type Abi = Self; -} -impl ::core::fmt::Debug for SynchronizedInputType { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SynchronizedInputType").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for SynchronizedInputType { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.SynchronizedInputType;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct TableItemPatternIdentifiers(::windows::core::IUnknown); -impl TableItemPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ColumnHeaderItemsProperty() -> ::windows::core::Result { - Self::ITableItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColumnHeaderItemsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn RowHeaderItemsProperty() -> ::windows::core::Result { - Self::ITableItemPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RowHeaderItemsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITableItemPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TableItemPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TableItemPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TableItemPatternIdentifiers {} -impl ::core::fmt::Debug for TableItemPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TableItemPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TableItemPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.TableItemPatternIdentifiers;{c326e5ad-8077-4c64-98e4-e83bcf1b4389})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TableItemPatternIdentifiers { - type Vtable = ITableItemPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for TableItemPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.TableItemPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TableItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TableItemPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &TableItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TableItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TableItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TableItemPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TableItemPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &TableItemPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TableItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TableItemPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for TableItemPatternIdentifiers {} -unsafe impl ::core::marker::Sync for TableItemPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct TablePatternIdentifiers(::windows::core::IUnknown); -impl TablePatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ColumnHeadersProperty() -> ::windows::core::Result { - Self::ITablePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColumnHeadersProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn RowHeadersProperty() -> ::windows::core::Result { - Self::ITablePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RowHeadersProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn RowOrColumnMajorProperty() -> ::windows::core::Result { - Self::ITablePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RowOrColumnMajorProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITablePatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TablePatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TablePatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TablePatternIdentifiers {} -impl ::core::fmt::Debug for TablePatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TablePatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TablePatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.TablePatternIdentifiers;{38d104fe-0d0c-412a-bf8d-51ede683baf5})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TablePatternIdentifiers { - type Vtable = ITablePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for TablePatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.TablePatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TablePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TablePatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &TablePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TablePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TablePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TablePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TablePatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &TablePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TablePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TablePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for TablePatternIdentifiers {} -unsafe impl ::core::marker::Sync for TablePatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct TogglePatternIdentifiers(::windows::core::IUnknown); -impl TogglePatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ToggleStateProperty() -> ::windows::core::Result { - Self::ITogglePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ToggleStateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITogglePatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TogglePatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TogglePatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TogglePatternIdentifiers {} -impl ::core::fmt::Debug for TogglePatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TogglePatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TogglePatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.TogglePatternIdentifiers;{7e191f6b-34d4-4ae7-83ac-29f88882d985})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TogglePatternIdentifiers { - type Vtable = ITogglePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for TogglePatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.TogglePatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TogglePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TogglePatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &TogglePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TogglePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TogglePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TogglePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TogglePatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &TogglePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TogglePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TogglePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for TogglePatternIdentifiers {} -unsafe impl ::core::marker::Sync for TogglePatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ToggleState(pub i32); -impl ToggleState { - pub const Off: Self = Self(0i32); - pub const On: Self = Self(1i32); - pub const Indeterminate: Self = Self(2i32); -} -impl ::core::marker::Copy for ToggleState {} -impl ::core::clone::Clone for ToggleState { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ToggleState { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ToggleState { - type Abi = Self; -} -impl ::core::fmt::Debug for ToggleState { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ToggleState").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ToggleState { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.ToggleState;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct TransformPattern2Identifiers(::windows::core::IUnknown); -impl TransformPattern2Identifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CanZoomProperty() -> ::windows::core::Result { - Self::ITransformPattern2IdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanZoomProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ZoomLevelProperty() -> ::windows::core::Result { - Self::ITransformPattern2IdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn MaxZoomProperty() -> ::windows::core::Result { - Self::ITransformPattern2IdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MaxZoomProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn MinZoomProperty() -> ::windows::core::Result { - Self::ITransformPattern2IdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MinZoomProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITransformPattern2IdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TransformPattern2Identifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TransformPattern2Identifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TransformPattern2Identifiers {} -impl ::core::fmt::Debug for TransformPattern2Identifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TransformPattern2Identifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TransformPattern2Identifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.TransformPattern2Identifiers;{08aaa03d-dea7-402f-8097-9a2783d60e5d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TransformPattern2Identifiers { - type Vtable = ITransformPattern2Identifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for TransformPattern2Identifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.TransformPattern2Identifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TransformPattern2Identifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TransformPattern2Identifiers> for ::windows::core::IUnknown { - fn from(value: &TransformPattern2Identifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TransformPattern2Identifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TransformPattern2Identifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TransformPattern2Identifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TransformPattern2Identifiers> for ::windows::core::IInspectable { - fn from(value: &TransformPattern2Identifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TransformPattern2Identifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TransformPattern2Identifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for TransformPattern2Identifiers {} -unsafe impl ::core::marker::Sync for TransformPattern2Identifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct TransformPatternIdentifiers(::windows::core::IUnknown); -impl TransformPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CanMoveProperty() -> ::windows::core::Result { - Self::ITransformPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanMoveProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CanResizeProperty() -> ::windows::core::Result { - Self::ITransformPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanResizeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CanRotateProperty() -> ::windows::core::Result { - Self::ITransformPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanRotateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITransformPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TransformPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TransformPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TransformPatternIdentifiers {} -impl ::core::fmt::Debug for TransformPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TransformPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for TransformPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.TransformPatternIdentifiers;{e4115b8c-c3c8-4a37-b994-2709a7811665})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TransformPatternIdentifiers { - type Vtable = ITransformPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for TransformPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.TransformPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: TransformPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TransformPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &TransformPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for TransformPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a TransformPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TransformPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TransformPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &TransformPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for TransformPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a TransformPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for TransformPatternIdentifiers {} -unsafe impl ::core::marker::Sync for TransformPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct ValuePatternIdentifiers(::windows::core::IUnknown); -impl ValuePatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsReadOnlyProperty() -> ::windows::core::Result { - Self::IValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsReadOnlyProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn ValueProperty() -> ::windows::core::Result { - Self::IValuePatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ValueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IValuePatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ValuePatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ValuePatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ValuePatternIdentifiers {} -impl ::core::fmt::Debug for ValuePatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ValuePatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ValuePatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.ValuePatternIdentifiers;{425bf64c-5333-4e41-b470-2bad14ecd085})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ValuePatternIdentifiers { - type Vtable = IValuePatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for ValuePatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.ValuePatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ValuePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ValuePatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &ValuePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ValuePatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ValuePatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &ValuePatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ValuePatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for ValuePatternIdentifiers {} -unsafe impl ::core::marker::Sync for ValuePatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct WindowInteractionState(pub i32); -impl WindowInteractionState { - pub const Running: Self = Self(0i32); - pub const Closing: Self = Self(1i32); - pub const ReadyForUserInteraction: Self = Self(2i32); - pub const BlockedByModalWindow: Self = Self(3i32); - pub const NotResponding: Self = Self(4i32); -} -impl ::core::marker::Copy for WindowInteractionState {} -impl ::core::clone::Clone for WindowInteractionState { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for WindowInteractionState { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for WindowInteractionState { - type Abi = Self; -} -impl ::core::fmt::Debug for WindowInteractionState { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("WindowInteractionState").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for WindowInteractionState { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.WindowInteractionState;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -pub struct WindowPatternIdentifiers(::windows::core::IUnknown); -impl WindowPatternIdentifiers { - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CanMaximizeProperty() -> ::windows::core::Result { - Self::IWindowPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanMaximizeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn CanMinimizeProperty() -> ::windows::core::Result { - Self::IWindowPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanMinimizeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsModalProperty() -> ::windows::core::Result { - Self::IWindowPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsModalProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn IsTopmostProperty() -> ::windows::core::Result { - Self::IWindowPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsTopmostProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn WindowInteractionStateProperty() -> ::windows::core::Result { - Self::IWindowPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).WindowInteractionStateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] - pub fn WindowVisualStateProperty() -> ::windows::core::Result { - Self::IWindowPatternIdentifiersStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).WindowVisualStateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IWindowPatternIdentifiersStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for WindowPatternIdentifiers { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for WindowPatternIdentifiers { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for WindowPatternIdentifiers {} -impl ::core::fmt::Debug for WindowPatternIdentifiers { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("WindowPatternIdentifiers").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for WindowPatternIdentifiers { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Automation.WindowPatternIdentifiers;{39f78bb4-7032-41e2-b79e-27b74a8628de})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for WindowPatternIdentifiers { - type Vtable = IWindowPatternIdentifiers_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for WindowPatternIdentifiers { - const NAME: &'static str = "Windows.UI.Xaml.Automation.WindowPatternIdentifiers"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: WindowPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&WindowPatternIdentifiers> for ::windows::core::IUnknown { - fn from(value: &WindowPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for WindowPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a WindowPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: WindowPatternIdentifiers) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&WindowPatternIdentifiers> for ::windows::core::IInspectable { - fn from(value: &WindowPatternIdentifiers) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for WindowPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a WindowPatternIdentifiers { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for WindowPatternIdentifiers {} -unsafe impl ::core::marker::Sync for WindowPatternIdentifiers {} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct WindowVisualState(pub i32); -impl WindowVisualState { - pub const Normal: Self = Self(0i32); - pub const Maximized: Self = Self(1i32); - pub const Minimized: Self = Self(2i32); -} -impl ::core::marker::Copy for WindowVisualState {} -impl ::core::clone::Clone for WindowVisualState { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for WindowVisualState { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for WindowVisualState { - type Abi = Self; -} -impl ::core::fmt::Debug for WindowVisualState { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("WindowVisualState").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for WindowVisualState { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.WindowVisualState;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Automation\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ZoomUnit(pub i32); -impl ZoomUnit { - pub const NoAmount: Self = Self(0i32); - pub const LargeDecrement: Self = Self(1i32); - pub const SmallDecrement: Self = Self(2i32); - pub const LargeIncrement: Self = Self(3i32); - pub const SmallIncrement: Self = Self(4i32); -} -impl ::core::marker::Copy for ZoomUnit {} -impl ::core::clone::Clone for ZoomUnit { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ZoomUnit { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ZoomUnit { - type Abi = Self; -} -impl ::core::fmt::Debug for ZoomUnit { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ZoomUnit").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ZoomUnit { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Automation.ZoomUnit;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Maps/impl.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/Maps/impl.rs deleted file mode 100644 index 8b13789179..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Maps/impl.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Maps/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/Maps/mod.rs deleted file mode 100644 index 9ca6a3cd40..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Maps/mod.rs +++ /dev/null @@ -1,12768 +0,0 @@ -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct CustomMapTileDataSource(::windows::core::IUnknown); -impl CustomMapTileDataSource { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn BitmapRequested<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BitmapRequested)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveBitmapRequested<'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).RemoveBitmapRequested)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::ICustomMapTileDataSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::ICustomMapTileDataSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ICustomMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for CustomMapTileDataSource { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CustomMapTileDataSource { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CustomMapTileDataSource {} -impl ::core::fmt::Debug for CustomMapTileDataSource { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CustomMapTileDataSource").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for CustomMapTileDataSource { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource;{65da384a-2db1-4be1-b155-3d0c9ecf4799})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CustomMapTileDataSource { - type Vtable = ICustomMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for CustomMapTileDataSource { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.CustomMapTileDataSource"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: CustomMapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CustomMapTileDataSource> for ::windows::core::IUnknown { - fn from(value: &CustomMapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CustomMapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CustomMapTileDataSource> for ::windows::core::IInspectable { - fn from(value: &CustomMapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapTileDataSource { - fn from(value: CustomMapTileDataSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&CustomMapTileDataSource> for MapTileDataSource { - fn from(value: &CustomMapTileDataSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapTileDataSource> for CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, MapTileDataSource> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapTileDataSource> for &CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, MapTileDataSource> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CustomMapTileDataSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&CustomMapTileDataSource> for super::super::DependencyObject { - fn from(value: &CustomMapTileDataSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &CustomMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for CustomMapTileDataSource {} -unsafe impl ::core::marker::Sync for CustomMapTileDataSource {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct HttpMapTileDataSource(::windows::core::IUnknown); -impl HttpMapTileDataSource { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn UriFormatString(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).UriFormatString)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetUriFormatString<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetUriFormatString)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn AdditionalRequestHeaders(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AdditionalRequestHeaders)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AllowCaching(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AllowCaching)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetAllowCaching(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetAllowCaching)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn UriRequested<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).UriRequested)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveUriRequested<'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).RemoveUriRequested)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IHttpMapTileDataSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IHttpMapTileDataSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithUriFormatString<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(uriformatstring: Param0) -> ::windows::core::Result { - Self::IHttpMapTileDataSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithUriFormatString)(::windows::core::Interface::as_raw(this), uriformatstring.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithUriFormatString_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, T: ::windows::core::Compose>(uriformatstring: Param0, compose: T) -> ::windows::core::Result { - Self::IHttpMapTileDataSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithUriFormatString)(::windows::core::Interface::as_raw(this), uriformatstring.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IHttpMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for HttpMapTileDataSource { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for HttpMapTileDataSource { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for HttpMapTileDataSource {} -impl ::core::fmt::Debug for HttpMapTileDataSource { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("HttpMapTileDataSource").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for HttpMapTileDataSource { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource;{9d03cb5c-fd79-4795-87be-7e54ca0b37d0})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for HttpMapTileDataSource { - type Vtable = IHttpMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for HttpMapTileDataSource { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.HttpMapTileDataSource"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: HttpMapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HttpMapTileDataSource> for ::windows::core::IUnknown { - fn from(value: &HttpMapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: HttpMapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&HttpMapTileDataSource> for ::windows::core::IInspectable { - fn from(value: &HttpMapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapTileDataSource { - fn from(value: HttpMapTileDataSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&HttpMapTileDataSource> for MapTileDataSource { - fn from(value: &HttpMapTileDataSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapTileDataSource> for HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, MapTileDataSource> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapTileDataSource> for &HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, MapTileDataSource> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: HttpMapTileDataSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&HttpMapTileDataSource> for super::super::DependencyObject { - fn from(value: &HttpMapTileDataSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &HttpMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for HttpMapTileDataSource {} -unsafe impl ::core::marker::Sync for HttpMapTileDataSource {} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICustomMapTileDataSource(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICustomMapTileDataSource { - type Vtable = ICustomMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x65da384a_2db1_4be1_b155_3d0c9ecf4799); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICustomMapTileDataSource_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub BitmapRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - BitmapRequested: usize, - #[cfg(feature = "Foundation")] - pub RemoveBitmapRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveBitmapRequested: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICustomMapTileDataSourceFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICustomMapTileDataSourceFactory { - type Vtable = ICustomMapTileDataSourceFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc8477947_c955_4f22_9444_a1d8d744af11); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICustomMapTileDataSourceFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHttpMapTileDataSource(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHttpMapTileDataSource { - type Vtable = IHttpMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9d03cb5c_fd79_4795_87be_7e54ca0b37d0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHttpMapTileDataSource_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub UriFormatString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetUriFormatString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub AdditionalRequestHeaders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - AdditionalRequestHeaders: usize, - pub AllowCaching: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetAllowCaching: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub UriRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - UriRequested: usize, - #[cfg(feature = "Foundation")] - pub RemoveUriRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveUriRequested: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IHttpMapTileDataSourceFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IHttpMapTileDataSourceFactory { - type Vtable = IHttpMapTileDataSourceFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53b4b107_84dc_4291_89f8_6d0bb612a055); -} -#[repr(C)] -#[doc(hidden)] -pub struct IHttpMapTileDataSourceFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateInstanceWithUriFormatString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uriformatstring: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILocalMapTileDataSource(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILocalMapTileDataSource { - type Vtable = ILocalMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x616257b5_9108_4f12_8bf4_bb3c8f6274e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILocalMapTileDataSource_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub UriFormatString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetUriFormatString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub UriRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - UriRequested: usize, - #[cfg(feature = "Foundation")] - pub RemoveUriRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveUriRequested: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILocalMapTileDataSourceFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILocalMapTileDataSourceFactory { - type Vtable = ILocalMapTileDataSourceFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc5cfe9fc_72ac_4839_8a0d_011f24693c79); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILocalMapTileDataSourceFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateInstanceWithUriFormatString: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, uriformatstring: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapActualCameraChangedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapActualCameraChangedEventArgs { - type Vtable = IMapActualCameraChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdaa080da_b7f4_422c_a618_bbaa7c1d814c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapActualCameraChangedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Camera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapActualCameraChangedEventArgs2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapActualCameraChangedEventArgs2 { - type Vtable = IMapActualCameraChangedEventArgs2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ba4c7e5_10dc_455a_9d04_1d72fb6d9b93); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapActualCameraChangedEventArgs2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ChangeReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapCameraChangeReason) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapActualCameraChangingEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapActualCameraChangingEventArgs { - type Vtable = IMapActualCameraChangingEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6b0dbed6_93f7_4682_8de5_a47a1cc7a945); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapActualCameraChangingEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Camera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapActualCameraChangingEventArgs2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapActualCameraChangingEventArgs2 { - type Vtable = IMapActualCameraChangingEventArgs2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2867897_40ac_4e8a_a927_510f3846a47e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapActualCameraChangingEventArgs2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ChangeReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapCameraChangeReason) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapBillboard(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapBillboard { - type Vtable = IMapBillboard_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1694259d_0ae2_4f42_a02e_292ca835d39d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapBillboard_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetLocation: usize, - #[cfg(feature = "Foundation")] - pub NormalizedAnchorPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - NormalizedAnchorPoint: usize, - #[cfg(feature = "Foundation")] - pub SetNormalizedAnchorPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetNormalizedAnchorPoint: usize, - #[cfg(feature = "Storage_Streams")] - pub Image: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - Image: usize, - #[cfg(feature = "Storage_Streams")] - pub SetImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - SetImage: usize, - pub CollisionBehaviorDesired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapElementCollisionBehavior) -> ::windows::core::HRESULT, - pub SetCollisionBehaviorDesired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapElementCollisionBehavior) -> ::windows::core::HRESULT, - pub ReferenceCamera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapBillboardFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapBillboardFactory { - type Vtable = IMapBillboardFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbe45a4c5_8f09_4b86_ae28_783740eb8b31); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapBillboardFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceFromCamera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, camera: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapBillboardStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapBillboardStatics { - type Vtable = IMapBillboardStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfdf839fe_e1f7_4fb0_8887_7da68c647333); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapBillboardStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LocationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub NormalizedAnchorPointProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CollisionBehaviorDesiredProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapCamera(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapCamera { - type Vtable = IMapCamera_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53a6b623_c0f8_4d8b_ad1e_a59598ea840b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapCamera_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetLocation: usize, - pub Heading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetHeading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub Pitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub Roll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetRoll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub FieldOfView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetFieldOfView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapCameraFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapCameraFactory { - type Vtable = IMapCameraFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xea3b0f16_83af_4ace_8e71_10ad9f1e9e7f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapCameraFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub CreateInstanceWithLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateInstanceWithLocation: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateInstanceWithLocationAndHeading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, headingindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateInstanceWithLocationAndHeading: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateInstanceWithLocationHeadingAndPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, headingindegrees: f64, pitchindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateInstanceWithLocationHeadingAndPitch: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateInstanceWithLocationHeadingPitchRollAndFieldOfView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, headingindegrees: f64, pitchindegrees: f64, rollindegrees: f64, fieldofviewindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateInstanceWithLocationHeadingPitchRollAndFieldOfView: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapContextRequestedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapContextRequestedEventArgs { - type Vtable = IMapContextRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfdd1b423_c961_4df2_bb57_82ee0f0bb591); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapContextRequestedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub MapElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MapElements: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl { - type Vtable = IMapControl_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x42d0b851_5256_4747_9e6c_0d11e966141e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Center: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Center: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetCenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetCenter: usize, - #[cfg(feature = "Foundation_Collections")] - pub Children: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Children: usize, - pub ColorScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapColorScheme) -> ::windows::core::HRESULT, - pub SetColorScheme: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapColorScheme) -> ::windows::core::HRESULT, - pub DesiredPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetDesiredPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub Heading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetHeading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub LandmarksVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetLandmarksVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub LoadingStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapLoadingStatus) -> ::windows::core::HRESULT, - pub MapServiceToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetMapServiceToken: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub MaxZoomLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub MinZoomLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub PedestrianFeaturesVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetPedestrianFeaturesVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub Pitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub Style: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapStyle) -> ::windows::core::HRESULT, - pub SetStyle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapStyle) -> ::windows::core::HRESULT, - pub TrafficFlowVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetTrafficFlowVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub TransformOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TransformOrigin: usize, - #[cfg(feature = "Foundation")] - pub SetTransformOrigin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetTransformOrigin: usize, - pub WatermarkMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapWatermarkMode) -> ::windows::core::HRESULT, - pub SetWatermarkMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapWatermarkMode) -> ::windows::core::HRESULT, - pub ZoomLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetZoomLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub MapElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MapElements: usize, - #[cfg(feature = "Foundation_Collections")] - pub Routes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Routes: usize, - #[cfg(feature = "Foundation_Collections")] - pub TileSources: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TileSources: usize, - #[cfg(feature = "Foundation")] - pub CenterChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - CenterChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveCenterChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveCenterChanged: usize, - #[cfg(feature = "Foundation")] - pub HeadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - HeadingChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveHeadingChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveHeadingChanged: usize, - #[cfg(feature = "Foundation")] - pub LoadingStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - LoadingStatusChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveLoadingStatusChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveLoadingStatusChanged: usize, - #[cfg(feature = "Foundation")] - pub MapDoubleTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapDoubleTapped: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapDoubleTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapDoubleTapped: usize, - #[cfg(feature = "Foundation")] - pub MapHolding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapHolding: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapHolding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapHolding: usize, - #[cfg(feature = "Foundation")] - pub MapTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapTapped: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapTapped: usize, - #[cfg(feature = "Foundation")] - pub PitchChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - PitchChanged: usize, - #[cfg(feature = "Foundation")] - pub RemovePitchChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemovePitchChanged: usize, - #[cfg(feature = "Foundation")] - pub TransformOriginChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TransformOriginChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveTransformOriginChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveTransformOriginChanged: usize, - #[cfg(feature = "Foundation")] - pub ZoomLevelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ZoomLevelChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveZoomLevelChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveZoomLevelChanged: usize, - #[cfg(feature = "Foundation_Collections")] - pub FindMapElementsAtOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: super::super::super::super::Foundation::Point, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindMapElementsAtOffset: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub GetLocationFromOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: super::super::super::super::Foundation::Point, location: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - GetLocationFromOffset: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub GetOffsetFromLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, offset: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - GetOffsetFromLocation: usize, - #[cfg(feature = "Devices_Geolocation")] - pub IsLocationInView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, isinview: *mut bool) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - IsLocationInView: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TrySetViewBoundsAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bounds: *mut ::core::ffi::c_void, margin: *mut ::core::ffi::c_void, animation: MapAnimationKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TrySetViewBoundsAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TrySetViewWithCenterAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, center: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TrySetViewWithCenterAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TrySetViewWithCenterAndZoomAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, center: *mut ::core::ffi::c_void, zoomlevel: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TrySetViewWithCenterAndZoomAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TrySetViewWithCenterZoomHeadingAndPitchAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, center: *mut ::core::ffi::c_void, zoomlevel: *mut ::core::ffi::c_void, heading: *mut ::core::ffi::c_void, desiredpitch: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TrySetViewWithCenterZoomHeadingAndPitchAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, center: *mut ::core::ffi::c_void, zoomlevel: *mut ::core::ffi::c_void, heading: *mut ::core::ffi::c_void, desiredpitch: *mut ::core::ffi::c_void, animation: MapAnimationKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl2 { - type Vtable = IMapControl2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe1fd644d_96ec_4065_b0f0_75281da3654d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub BusinessLandmarksVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetBusinessLandmarksVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub TransitFeaturesVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetTransitFeaturesVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub PanInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapPanInteractionMode) -> ::windows::core::HRESULT, - pub SetPanInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapPanInteractionMode) -> ::windows::core::HRESULT, - pub RotateInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapInteractionMode) -> ::windows::core::HRESULT, - pub SetRotateInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapInteractionMode) -> ::windows::core::HRESULT, - pub TiltInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapInteractionMode) -> ::windows::core::HRESULT, - pub SetTiltInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapInteractionMode) -> ::windows::core::HRESULT, - pub ZoomInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapInteractionMode) -> ::windows::core::HRESULT, - pub SetZoomInteractionMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapInteractionMode) -> ::windows::core::HRESULT, - pub Is3DSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsStreetsideSupported: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub Scene: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetScene: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ActualCamera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TargetCamera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CustomExperience: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetCustomExperience: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub MapElementClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapElementClick: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapElementClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapElementClick: usize, - #[cfg(feature = "Foundation")] - pub MapElementPointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapElementPointerEntered: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapElementPointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapElementPointerEntered: usize, - #[cfg(feature = "Foundation")] - pub MapElementPointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapElementPointerExited: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapElementPointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapElementPointerExited: usize, - #[cfg(feature = "Foundation")] - pub ActualCameraChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ActualCameraChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveActualCameraChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveActualCameraChanged: usize, - #[cfg(feature = "Foundation")] - pub ActualCameraChanging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ActualCameraChanging: usize, - #[cfg(feature = "Foundation")] - pub RemoveActualCameraChanging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveActualCameraChanging: usize, - #[cfg(feature = "Foundation")] - pub TargetCameraChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TargetCameraChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveTargetCameraChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveTargetCameraChanged: usize, - #[cfg(feature = "Foundation")] - pub CustomExperienceChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - CustomExperienceChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveCustomExperienceChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveCustomExperienceChanged: usize, - pub StartContinuousRotate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rateindegreespersecond: f64) -> ::windows::core::HRESULT, - pub StopContinuousRotate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StartContinuousTilt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rateindegreespersecond: f64) -> ::windows::core::HRESULT, - pub StopContinuousTilt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StartContinuousZoom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rateofchangepersecond: f64) -> ::windows::core::HRESULT, - pub StopContinuousZoom: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub TryRotateAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, degrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryRotateAsync: usize, - #[cfg(feature = "Foundation")] - pub TryRotateToAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, angleindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryRotateToAsync: usize, - #[cfg(feature = "Foundation")] - pub TryTiltAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, degrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryTiltAsync: usize, - #[cfg(feature = "Foundation")] - pub TryTiltToAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, angleindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryTiltToAsync: usize, - #[cfg(feature = "Foundation")] - pub TryZoomInAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryZoomInAsync: usize, - #[cfg(feature = "Foundation")] - pub TryZoomOutAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryZoomOutAsync: usize, - #[cfg(feature = "Foundation")] - pub TryZoomToAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, zoomlevel: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryZoomToAsync: usize, - #[cfg(feature = "Foundation")] - pub TrySetSceneAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scene: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TrySetSceneAsync: usize, - #[cfg(feature = "Foundation")] - pub TrySetSceneWithAnimationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, scene: *mut ::core::ffi::c_void, animationkind: MapAnimationKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TrySetSceneWithAnimationAsync: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl3 { - type Vtable = IMapControl3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x586328f8_8cdd_40ae_9338_af2a7be845e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub MapRightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapRightTapped: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapRightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapRightTapped: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl4 { - type Vtable = IMapControl4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x068f132a_1817_466d_b7ce_419b3f8e248b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub BusinessLandmarksEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetBusinessLandmarksEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub TransitFeaturesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetTransitFeaturesEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub GetVisibleRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, region: MapVisibleRegionKind, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - GetVisibleRegion: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl5 { - type Vtable = IMapControl5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdd9b0ffd_7823_46a2_82c9_65ddac4f365f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapProjection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapProjection) -> ::windows::core::HRESULT, - pub SetMapProjection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapProjection) -> ::windows::core::HRESULT, - pub StyleSheet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetStyleSheet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ViewPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetViewPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub MapContextRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapContextRequested: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapContextRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapContextRequested: usize, - #[cfg(feature = "Foundation_Collections")] - pub FindMapElementsAtOffsetWithRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: super::super::super::super::Foundation::Point, radius: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - FindMapElementsAtOffsetWithRadius: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub GetLocationFromOffsetWithReferenceSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: super::super::super::super::Foundation::Point, desiredreferencesystem: super::super::super::super::Devices::Geolocation::AltitudeReferenceSystem, location: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - GetLocationFromOffsetWithReferenceSystem: usize, - pub StartContinuousPan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalpixelspersecond: f64, verticalpixelspersecond: f64) -> ::windows::core::HRESULT, - pub StopContinuousPan: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub TryPanAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalpixels: f64, verticalpixels: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TryPanAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TryPanToAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TryPanToAsync: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl6 { - type Vtable = IMapControl6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb0da89a2_1041_4bea_b88a_12ac9a82e0e2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation_Collections")] - pub Layers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Layers: usize, - #[cfg(feature = "Foundation_Collections")] - pub SetLayers: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetLayers: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TryGetLocationFromOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: super::super::super::super::Foundation::Point, location: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TryGetLocationFromOffset: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub TryGetLocationFromOffsetWithReferenceSystem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: super::super::super::super::Foundation::Point, desiredreferencesystem: super::super::super::super::Devices::Geolocation::AltitudeReferenceSystem, location: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - TryGetLocationFromOffsetWithReferenceSystem: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl7(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl7 { - type Vtable = IMapControl7_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0d86e453_0c1f_4f7e_ae66_4ad0b4987857); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl7_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Region: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControl8(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControl8 { - type Vtable = IMapControl8_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x009e9c46_724d_53ca_9421_7a48fc731523); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControl8_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanTiltDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub CanTiltUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub CanZoomIn: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub CanZoomOut: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlBusinessLandmarkClickEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlBusinessLandmarkClickEventArgs { - type Vtable = IMapControlBusinessLandmarkClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5e464922_4a1a_4797_beb7_5cf7754cb867); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlBusinessLandmarkClickEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub LocalLocations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch")))] - LocalLocations: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlBusinessLandmarkPointerEnteredEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlBusinessLandmarkPointerEnteredEventArgs { - type Vtable = IMapControlBusinessLandmarkPointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5e4081a6_ea98_4f95_8caf_5b42696ff504); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlBusinessLandmarkPointerEnteredEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub LocalLocations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch")))] - LocalLocations: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlBusinessLandmarkPointerExitedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlBusinessLandmarkPointerExitedEventArgs { - type Vtable = IMapControlBusinessLandmarkPointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2bb52caf_f24a_46d0_b463_65f719731057); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlBusinessLandmarkPointerExitedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub LocalLocations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch")))] - LocalLocations: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlBusinessLandmarkRightTappedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlBusinessLandmarkRightTappedEventArgs { - type Vtable = IMapControlBusinessLandmarkRightTappedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x59ab8ae7_f184_4ab1_b0b0_35c8bf0654b2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlBusinessLandmarkRightTappedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub LocalLocations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch")))] - LocalLocations: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlDataHelper(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlDataHelper { - type Vtable = IMapControlDataHelper_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8bb0f09c_14ab_486c_9de5_5a5def0205a2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlDataHelper_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub BusinessLandmarkClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - BusinessLandmarkClick: usize, - #[cfg(feature = "Foundation")] - pub RemoveBusinessLandmarkClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveBusinessLandmarkClick: usize, - #[cfg(feature = "Foundation")] - pub TransitFeatureClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TransitFeatureClick: usize, - #[cfg(feature = "Foundation")] - pub RemoveTransitFeatureClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveTransitFeatureClick: usize, - #[cfg(feature = "Foundation")] - pub BusinessLandmarkRightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - BusinessLandmarkRightTapped: usize, - #[cfg(feature = "Foundation")] - pub RemoveBusinessLandmarkRightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveBusinessLandmarkRightTapped: usize, - #[cfg(feature = "Foundation")] - pub TransitFeatureRightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TransitFeatureRightTapped: usize, - #[cfg(feature = "Foundation")] - pub RemoveTransitFeatureRightTapped: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveTransitFeatureRightTapped: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlDataHelper2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlDataHelper2 { - type Vtable = IMapControlDataHelper2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x59ce429e_562f_4c21_a674_0f11decf0fb3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlDataHelper2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub BusinessLandmarkPointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - BusinessLandmarkPointerEntered: usize, - #[cfg(feature = "Foundation")] - pub RemoveBusinessLandmarkPointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveBusinessLandmarkPointerEntered: usize, - #[cfg(feature = "Foundation")] - pub TransitFeaturePointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TransitFeaturePointerEntered: usize, - #[cfg(feature = "Foundation")] - pub RemoveTransitFeaturePointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveTransitFeaturePointerEntered: usize, - #[cfg(feature = "Foundation")] - pub BusinessLandmarkPointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - BusinessLandmarkPointerExited: usize, - #[cfg(feature = "Foundation")] - pub RemoveBusinessLandmarkPointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveBusinessLandmarkPointerExited: usize, - #[cfg(feature = "Foundation")] - pub TransitFeaturePointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TransitFeaturePointerExited: usize, - #[cfg(feature = "Foundation")] - pub RemoveTransitFeaturePointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveTransitFeaturePointerExited: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlDataHelperFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlDataHelperFactory { - type Vtable = IMapControlDataHelperFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3b70aa8e_02ef_469c_bbaf_dc2158d4289b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlDataHelperFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, map: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlDataHelperStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlDataHelperStatics { - type Vtable = IMapControlDataHelperStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a6632d6_e944_4110_83cf_314d0722e2e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlDataHelperStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateMapControl: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, rasterrendermode: bool, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlStatics { - type Vtable = IMapControlStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc2c61795_2147_4f0a_942a_5493a85de807); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CenterProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ChildrenProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ColorSchemeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DesiredPitchProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HeadingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LandmarksVisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LoadingStatusProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MapServiceTokenProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PedestrianFeaturesVisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PitchProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StyleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TrafficFlowVisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TransformOriginProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub WatermarkModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ZoomLevelProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MapElementsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RoutesProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TileSourcesProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LocationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub GetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - GetLocation: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetLocation: usize, - pub NormalizedAnchorPointProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetNormalizedAnchorPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetNormalizedAnchorPoint: usize, - #[cfg(feature = "Foundation")] - pub SetNormalizedAnchorPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetNormalizedAnchorPoint: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlStatics2 { - type Vtable = IMapControlStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x04852b93_b446_4d31_9752_1ec69a5996ae); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub BusinessLandmarksVisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TransitFeaturesVisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PanInteractionModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RotateInteractionModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TiltInteractionModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ZoomInteractionModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Is3DSupportedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsStreetsideSupportedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SceneProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlStatics4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlStatics4 { - type Vtable = IMapControlStatics4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfe785d97_5d13_4fa1_bf1d_84061768c183); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlStatics4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub BusinessLandmarksEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TransitFeaturesEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlStatics5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlStatics5 { - type Vtable = IMapControlStatics5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x09626f00_b7dd_4189_a7f7_830c412deea3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlStatics5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapProjectionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StyleSheetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ViewPaddingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlStatics6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlStatics6 { - type Vtable = IMapControlStatics6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3ccfdd7f_24d1_40a2_8351_b3063a8c95a4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlStatics6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LayersProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlStatics7(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlStatics7 { - type Vtable = IMapControlStatics7_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x55f1ac4d_72c2_46b2_b7ae_790260be641b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlStatics7_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub RegionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlStatics8(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlStatics8 { - type Vtable = IMapControlStatics8_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xadb7a7b0_0605_592c_bf9d_d10bdc2be47b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlStatics8_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanTiltDownProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CanTiltUpProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CanZoomInProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CanZoomOutProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlTransitFeatureClickEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlTransitFeatureClickEventArgs { - type Vtable = IMapControlTransitFeatureClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x76179969_b765_4622_b08a_3072745a4541); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlTransitFeatureClickEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub TransitProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransitProperties: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlTransitFeaturePointerEnteredEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlTransitFeaturePointerEnteredEventArgs { - type Vtable = IMapControlTransitFeaturePointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x73911a4e_ec4f_479e_94a1_36e081d0d897); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlTransitFeaturePointerEnteredEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub TransitProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransitProperties: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlTransitFeaturePointerExitedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlTransitFeaturePointerExitedEventArgs { - type Vtable = IMapControlTransitFeaturePointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6a11258d_448d_44e7_bc69_d13d497154e9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlTransitFeaturePointerExitedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub TransitProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransitProperties: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapControlTransitFeatureRightTappedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapControlTransitFeatureRightTappedEventArgs { - type Vtable = IMapControlTransitFeatureRightTappedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaea1cc49_a729_4eae_a59a_3ec9a125a028); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapControlTransitFeatureRightTappedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub TransitProperties: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - TransitProperties: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapCustomExperience(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapCustomExperience { - type Vtable = IMapCustomExperience_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x64592866_14a3_4e5f_8883_8e9c500eeede); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapCustomExperience_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapCustomExperienceChangedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapCustomExperienceChangedEventArgs { - type Vtable = IMapCustomExperienceChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9e6fb9b_8fc1_4042_ac34_a61b38bb7514); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapCustomExperienceChangedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapCustomExperienceFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapCustomExperienceFactory { - type Vtable = IMapCustomExperienceFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a403fb5_a1b1_4e7f_921e_3e6b8d8ebed6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapCustomExperienceFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElement(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElement { - type Vtable = IMapElement_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd61fc4df_b245_47f2_9ac2_43c058b1c903); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElement_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElement2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElement2 { - type Vtable = IMapElement2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6619f261_fba6_4964_a7ff_f1af63ab9cb0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElement2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapTabIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMapTabIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElement3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElement3 { - type Vtable = IMapElement3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13efbc59_45ed_48b4_93ad_e3f78f8cf218); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElement3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapStyleSheetEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetMapStyleSheetEntry: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub MapStyleSheetEntryState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetMapStyleSheetEntryState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Tag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetTag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElement3D(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElement3D { - type Vtable = IMapElement3D_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x827af8d5_3843_48e2_bd00_0f0644fbe6a5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElement3D_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetLocation: usize, - pub Model: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetModel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Heading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetHeading: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub Pitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub Roll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetRoll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub Scale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Numerics::Vector3) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - Scale: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetScale: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::Numerics::Vector3) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetScale: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElement3DStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElement3DStatics { - type Vtable = IMapElement3DStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6128011a_450f_442a_b9d9_aa815c71907a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElement3DStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LocationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HeadingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PitchProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RollProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ScaleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElement4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElement4 { - type Vtable = IMapElement4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x645883b6_1fc1_4ceb_93bd_dc2c960072e9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElement4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementClickEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementClickEventArgs { - type Vtable = IMapElementClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40168a11_d080_4519_99a1_3149fb8999d0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementClickEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub MapElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MapElements: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementFactory { - type Vtable = IMapElementFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4a30d007_0bd6_47a5_860b_7e7cf5f0c573); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementPointerEnteredEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementPointerEnteredEventArgs { - type Vtable = IMapElementPointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xab85dd4e_91d7_4b31_8f0a_d390c7d3a2ef); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementPointerEnteredEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - pub MapElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementPointerExitedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementPointerExitedEventArgs { - type Vtable = IMapElementPointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1a45af9_60c9_4679_9119_20abc75d931f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementPointerExitedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - pub MapElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementStatics { - type Vtable = IMapElementStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8c71cf2_bfef_4b49_8e99_41b5e3789fd2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ZIndexProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub VisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementStatics2 { - type Vtable = IMapElementStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9bf72f30_80fe_4f30_bcc1_fa894050f676); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapTabIndexProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementStatics3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementStatics3 { - type Vtable = IMapElementStatics3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe11ee92f_9742_49aa_aad8_2e466bff3796); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementStatics3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapStyleSheetEntryProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MapStyleSheetEntryStateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TagProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementStatics4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementStatics4 { - type Vtable = IMapElementStatics4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa4296f0b_dff8_467c_9315_6f6db93ee2ba); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementStatics4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementsLayer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementsLayer { - type Vtable = IMapElementsLayer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xde79689a_01ef_46f4_ac60_7c200b552610); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementsLayer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation_Collections")] - pub MapElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MapElements: usize, - #[cfg(feature = "Foundation_Collections")] - pub SetMapElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetMapElements: usize, - #[cfg(feature = "Foundation")] - pub MapElementClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapElementClick: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapElementClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapElementClick: usize, - #[cfg(feature = "Foundation")] - pub MapElementPointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapElementPointerEntered: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapElementPointerEntered: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapElementPointerEntered: usize, - #[cfg(feature = "Foundation")] - pub MapElementPointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapElementPointerExited: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapElementPointerExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapElementPointerExited: usize, - #[cfg(feature = "Foundation")] - pub MapContextRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MapContextRequested: usize, - #[cfg(feature = "Foundation")] - pub RemoveMapContextRequested: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveMapContextRequested: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementsLayerClickEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementsLayerClickEventArgs { - type Vtable = IMapElementsLayerClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2ca7cf66_af1b_4c05_8c85_f74ae3d4677f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementsLayerClickEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub MapElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MapElements: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementsLayerContextRequestedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementsLayerContextRequestedEventArgs { - type Vtable = IMapElementsLayerContextRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda45d0b3_7a0e_4758_808b_3a637627eb0d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementsLayerContextRequestedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Foundation_Collections")] - pub MapElements: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - MapElements: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementsLayerPointerEnteredEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementsLayerPointerEnteredEventArgs { - type Vtable = IMapElementsLayerPointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x757fc032_4694_4404_8c89_348b6b76c5e6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementsLayerPointerEnteredEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - pub MapElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementsLayerPointerExitedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementsLayerPointerExitedEventArgs { - type Vtable = IMapElementsLayerPointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x92f3c6ad_03ed_4c39_af20_2a07ee1ccea6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementsLayerPointerExitedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - pub MapElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapElementsLayerStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapElementsLayerStatics { - type Vtable = IMapElementsLayerStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x34005727_f509_4d28_9180_911c03411d74); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapElementsLayerStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapElementsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapIcon(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapIcon { - type Vtable = IMapIcon_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2096872_23d9_4a2b_8be0_69f3a85482ab); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapIcon_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetLocation: usize, - pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub NormalizedAnchorPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - NormalizedAnchorPoint: usize, - #[cfg(feature = "Foundation")] - pub SetNormalizedAnchorPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetNormalizedAnchorPoint: usize, - #[cfg(feature = "Storage_Streams")] - pub Image: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - Image: usize, - #[cfg(feature = "Storage_Streams")] - pub SetImage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - SetImage: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapIcon2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapIcon2 { - type Vtable = IMapIcon2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x611254b9_d8aa_4bbd_a316_badf06911d63); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapIcon2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CollisionBehaviorDesired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapElementCollisionBehavior) -> ::windows::core::HRESULT, - pub SetCollisionBehaviorDesired: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapElementCollisionBehavior) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapIconStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapIconStatics { - type Vtable = IMapIconStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdcbc9e56_1190_4b5d_9e56_e5b6724aa328); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapIconStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LocationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TitleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub NormalizedAnchorPointProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapIconStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapIconStatics2 { - type Vtable = IMapIconStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xff4c306a_cf76_46ab_a12f_b603b986c696); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapIconStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CollisionBehaviorDesiredProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapInputEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapInputEventArgs { - type Vtable = IMapInputEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9fc503a0_a8a2_4394_92e9_2247764f2f49); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapInputEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapItemsControl(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapItemsControl { - type Vtable = IMapItemsControl_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94c2c4d3_b335_42c5_b660_e6a07ec3bddc); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapItemsControl_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ItemsSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetItemsSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub Items: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, - pub ItemTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetItemTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapItemsControlStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapItemsControlStatics { - type Vtable = IMapItemsControlStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x33a859c7_789b_425c_8a0a_32385896cb4a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapItemsControlStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ItemsSourceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemTemplateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapLayer(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapLayer { - type Vtable = IMapLayer_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6d0ff9c1_a14d_4f97_8f57_46715b57683a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapLayer_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapTabIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMapTabIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapLayerFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapLayerFactory { - type Vtable = IMapLayerFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe02a2207_dee3_47c8_9825_bd029c5752f7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapLayerFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapLayerStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapLayerStatics { - type Vtable = IMapLayerStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9ca4a26b_5db9_4f0c_bdd5_b1bffdcce946); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapLayerStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MapTabIndexProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub VisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ZIndexProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapModel3D(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapModel3D { - type Vtable = IMapModel3D_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf8c541a1_ca27_4968_a2bf_9c20f06a0468); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapModel3D_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapModel3DFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapModel3DFactory { - type Vtable = IMapModel3DFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdf7f0bcc_580a_498b_939b_0119a9dadb9e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapModel3DFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapModel3DStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapModel3DStatics { - type Vtable = IMapModel3DStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4834a480_8e56_4b0f_872d_7ead103187cd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapModel3DStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] - pub CreateFrom3MFAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation", feature = "Storage_Streams")))] - CreateFrom3MFAsync: usize, - #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] - pub CreateFrom3MFWithShadingOptionAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, shadingoption: MapModel3DShadingOption, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation", feature = "Storage_Streams")))] - CreateFrom3MFWithShadingOptionAsync: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapPolygon(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapPolygon { - type Vtable = IMapPolygon_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xabda2285_4926_4c3a_a5f9_19df7f69db3d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapPolygon_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Path: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetPath: usize, - pub StrokeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub SetStrokeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Color) -> ::windows::core::HRESULT, - pub StrokeThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetStrokeThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub StrokeDashed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetStrokeDashed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub FillColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub SetFillColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Color) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapPolygon2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapPolygon2 { - type Vtable = IMapPolygon2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96c8a11e_636b_4018_9c2e_acc9122a01b2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapPolygon2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] - pub Paths: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] - Paths: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapPolygonStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapPolygonStatics { - type Vtable = IMapPolygonStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x37f573be_097b_424c_87cc_2ee042fda6d2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapPolygonStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub PathProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StrokeThicknessProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StrokeDashedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapPolyline(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapPolyline { - type Vtable = IMapPolyline_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbad24a2_24df_4a86_8ffa_0f8f4d9ec17d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapPolyline_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Path: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Path: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetPath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetPath: usize, - pub StrokeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub SetStrokeColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Color) -> ::windows::core::HRESULT, - pub StrokeThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetStrokeThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub StrokeDashed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetStrokeDashed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapPolylineStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapPolylineStatics { - type Vtable = IMapPolylineStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61fde44b_1ddf_4303_b809_ec87f58ad065); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapPolylineStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub PathProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub StrokeDashedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapRightTappedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapRightTappedEventArgs { - type Vtable = IMapRightTappedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20943171_6fe8_40a6_ad0e_297379b575a7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapRightTappedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Point) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapRouteView(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapRouteView { - type Vtable = IMapRouteView_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x740eaec5_bacc_41e1_a67e_dd6513832049); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapRouteView_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub RouteColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub SetRouteColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Color) -> ::windows::core::HRESULT, - pub OutlineColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub SetOutlineColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Color) -> ::windows::core::HRESULT, - #[cfg(feature = "Services_Maps")] - pub Route: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Services_Maps"))] - Route: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapRouteViewFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapRouteViewFactory { - type Vtable = IMapRouteViewFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf083addf_0066_4628_82fe_ea78c23cec1e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapRouteViewFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Services_Maps")] - pub CreateInstanceWithMapRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, route: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Services_Maps"))] - CreateInstanceWithMapRoute: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapScene(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapScene { - type Vtable = IMapScene_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8bba10a9_50e7_482c_9789_c688b178ac24); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapScene_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub TargetCamera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub TargetCameraChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - TargetCameraChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveTargetCameraChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveTargetCameraChanged: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapSceneStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapSceneStatics { - type Vtable = IMapSceneStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03e4ad6c_86ec_44d9_9597_fb75b7deba0a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapSceneStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub CreateFromBoundingBox: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bounds: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateFromBoundingBox: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateFromBoundingBoxWithHeadingAndPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, bounds: *mut ::core::ffi::c_void, headingindegrees: f64, pitchindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateFromBoundingBoxWithHeadingAndPitch: usize, - pub CreateFromCamera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, camera: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub CreateFromLocation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateFromLocation: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateFromLocationWithHeadingAndPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, headingindegrees: f64, pitchindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateFromLocationWithHeadingAndPitch: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateFromLocationAndRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, radiusinmeters: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateFromLocationAndRadius: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateFromLocationAndRadiusWithHeadingAndPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, radiusinmeters: f64, headingindegrees: f64, pitchindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateFromLocationAndRadiusWithHeadingAndPitch: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] - pub CreateFromLocations: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locations: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] - CreateFromLocations: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] - pub CreateFromLocationsWithHeadingAndPitch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, locations: *mut ::core::ffi::c_void, headingindegrees: f64, pitchindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation_Collections")))] - CreateFromLocationsWithHeadingAndPitch: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapStyleSheet(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapStyleSheet { - type Vtable = IMapStyleSheet_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xae54b2bf_8991_42ed_8d58_20473deede1d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapStyleSheet_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapStyleSheetEntriesStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapStyleSheetEntriesStatics { - type Vtable = IMapStyleSheetEntriesStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9636345_ef1a_41a4_a757_bd4f43e1e4d1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapStyleSheetEntriesStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Area: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Airport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Cemetery: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Continent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Education: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub IndigenousPeoplesReserve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Island: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Medical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Military: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Nautical: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Neighborhood: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Runway: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Sand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub ShoppingCenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Stadium: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Vegetation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Forest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub GolfCourse: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Park: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub PlayingField: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Reserve: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Point: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub NaturalPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Peak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub VolcanicPeak: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WaterPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub PointOfInterest: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Business: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub FoodPoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub PopulatedPlace: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Capital: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub AdminDistrictCapital: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub CountryRegionCapital: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub RoadShield: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub RoadExit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Transit: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Political: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub CountryRegion: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub AdminDistrict: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub District: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Structure: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Building: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub EducationBuilding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub MedicalBuilding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub TransitBuilding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Transportation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Road: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub ControlledAccessHighway: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub HighSpeedRamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Highway: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub MajorRoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub ArterialRoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Street: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Ramp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub UnpavedStreet: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub TollRoad: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Railway: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Trail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WaterRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Water: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub River: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub RouteLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WalkingRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub DrivingRoute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapStyleSheetEntryStatesStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapStyleSheetEntryStatesStatics { - type Vtable = IMapStyleSheetEntryStatesStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x23ac5532_866d_4bfa_b481_39bea1de3506); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapStyleSheetEntryStatesStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Disabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Hover: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub Selected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapStyleSheetStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapStyleSheetStatics { - type Vtable = IMapStyleSheetStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xabbd00ad_0a1c_4335_82f4_61d936aa197d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapStyleSheetStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Aerial: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AerialWithOverlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RoadLight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RoadDark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RoadHighContrastLight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RoadHighContrastDark: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub Combine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, stylesheets: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Combine: usize, - pub ParseFromJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, styleasjson: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TryParseFromJson: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, styleasjson: ::core::mem::ManuallyDrop<::windows::core::HSTRING>, stylesheet: *mut *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTargetCameraChangedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTargetCameraChangedEventArgs { - type Vtable = IMapTargetCameraChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdbf00472_e953_4fa8_97d0_ea86359057cf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTargetCameraChangedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Camera: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTargetCameraChangedEventArgs2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTargetCameraChangedEventArgs2 { - type Vtable = IMapTargetCameraChangedEventArgs2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x97c0b332_f2b6_460b_8d91_ac020a2383dd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTargetCameraChangedEventArgs2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ChangeReason: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapCameraChangeReason) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileBitmapRequest(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileBitmapRequest { - type Vtable = IMapTileBitmapRequest_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x46733fbc_d89d_472b_b5f6_d7066b0584f4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileBitmapRequest_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Storage_Streams")] - pub PixelData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - PixelData: usize, - #[cfg(feature = "Storage_Streams")] - pub SetPixelData: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Storage_Streams"))] - SetPixelData: usize, - pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileBitmapRequestDeferral(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileBitmapRequestDeferral { - type Vtable = IMapTileBitmapRequestDeferral_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfe370542_a4ac_4efa_9665_0490b0cafdd2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileBitmapRequestDeferral_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileBitmapRequestedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileBitmapRequestedEventArgs { - type Vtable = IMapTileBitmapRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x337f691d_9b02_4aa2_8b1e_cc4d91719bf3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileBitmapRequestedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub X: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub Y: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub ZoomLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileBitmapRequestedEventArgs2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileBitmapRequestedEventArgs2 { - type Vtable = IMapTileBitmapRequestedEventArgs2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0261d114_246a_5296_bc85_590f53aa39c8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileBitmapRequestedEventArgs2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FrameIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileDataSource(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileDataSource { - type Vtable = IMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc03d9f5e_be1f_4c69_9969_79467a513c38); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileDataSource_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileDataSourceFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileDataSourceFactory { - type Vtable = IMapTileDataSourceFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa3920fbd_e446_4648_a74d_fd2c5d557c06); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileDataSourceFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileSource(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileSource { - type Vtable = IMapTileSource_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x88a76e4e_2fdf_4567_9255_1100519c8d62); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileSource_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DataSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetDataSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Layer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapTileLayer) -> ::windows::core::HRESULT, - pub SetLayer: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapTileLayer) -> ::windows::core::HRESULT, - pub ZoomLevelRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapZoomLevelRange) -> ::windows::core::HRESULT, - pub SetZoomLevelRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: MapZoomLevelRange) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub Bounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Bounds: usize, - #[cfg(feature = "Devices_Geolocation")] - pub SetBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - SetBounds: usize, - pub AllowOverstretch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetAllowOverstretch: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub IsFadingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsFadingEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub IsTransparencyEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsTransparencyEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub IsRetryEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsRetryEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetZIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub TilePixelSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetTilePixelSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub Visible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileSource2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileSource2 { - type Vtable = IMapTileSource2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8e65ebbd_4095_5c15_99f1_1260b4e8b0a9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileSource2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AnimationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut MapTileAnimationState) -> ::windows::core::HRESULT, - pub AutoPlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetAutoPlay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub FrameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetFrameCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub FrameDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - FrameDuration: usize, - #[cfg(feature = "Foundation")] - pub SetFrameDuration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetFrameDuration: usize, - pub Pause: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Play: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Stop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileSourceFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileSourceFactory { - type Vtable = IMapTileSourceFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd7f811f_77fa_482b_9d34_71d31d465c48); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileSourceFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateInstanceWithDataSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datasource: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateInstanceWithDataSourceAndZoomRange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datasource: *mut ::core::ffi::c_void, zoomlevelrange: MapZoomLevelRange, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Devices_Geolocation")] - pub CreateInstanceWithDataSourceZoomRangeAndBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datasource: *mut ::core::ffi::c_void, zoomlevelrange: MapZoomLevelRange, bounds: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateInstanceWithDataSourceZoomRangeAndBounds: usize, - #[cfg(feature = "Devices_Geolocation")] - pub CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, datasource: *mut ::core::ffi::c_void, zoomlevelrange: MapZoomLevelRange, bounds: *mut ::core::ffi::c_void, tilesizeinpixels: i32, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileSourceStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileSourceStatics { - type Vtable = IMapTileSourceStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x93fcc93c_7035_4603_99b1_e659921b6093); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileSourceStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DataSourceProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LayerProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ZoomLevelRangeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub BoundsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AllowOverstretchProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsFadingEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsTransparencyEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsRetryEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ZIndexProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub TilePixelSizeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub VisibleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileSourceStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileSourceStatics2 { - type Vtable = IMapTileSourceStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x75cdd47e_669c_50fd_ad85_5ea5174cf59b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileSourceStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AnimationStateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AutoPlayProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FrameCountProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FrameDurationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileUriRequest(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileUriRequest { - type Vtable = IMapTileUriRequest_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x17402335_3127_45b8_87a7_99f87d4e2745); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileUriRequest_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Uri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Uri: usize, - #[cfg(feature = "Foundation")] - pub SetUri: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetUri: usize, - pub GetDeferral: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileUriRequestDeferral(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileUriRequestDeferral { - type Vtable = IMapTileUriRequestDeferral_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc117ade0_bf3e_4c51_8faa_4b593cf68eb2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileUriRequestDeferral_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Complete: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileUriRequestedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileUriRequestedEventArgs { - type Vtable = IMapTileUriRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2147b43_1bbf_4b98_8dd3_b7834e407e0d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileUriRequestedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub X: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub Y: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub ZoomLevel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub Request: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMapTileUriRequestedEventArgs2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMapTileUriRequestedEventArgs2 { - type Vtable = IMapTileUriRequestedEventArgs2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2302185d_33b5_5a55_92f5_74a86a22efa6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMapTileUriRequestedEventArgs2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FrameIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IStreetsideExperience(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IStreetsideExperience { - type Vtable = IStreetsideExperience_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa558aec9_e30c_46c8_8116_484691675558); -} -#[repr(C)] -#[doc(hidden)] -pub struct IStreetsideExperience_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AddressTextVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetAddressTextVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub CursorVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetCursorVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub OverviewMapVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetOverviewMapVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub StreetLabelsVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetStreetLabelsVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ExitButtonVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetExitButtonVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ZoomButtonsVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetZoomButtonsVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IStreetsideExperienceFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IStreetsideExperienceFactory { - type Vtable = IStreetsideExperienceFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7a5bcf3c_649e_4342_9995_68a6cf5961a7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IStreetsideExperienceFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithPanorama: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, panorama: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CreateInstanceWithPanoramaHeadingPitchAndFieldOfView: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, panorama: *mut ::core::ffi::c_void, headingindegrees: f64, pitchindegrees: f64, fieldofviewindegrees: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IStreetsidePanorama(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IStreetsidePanorama { - type Vtable = IStreetsidePanorama_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6fe00fd8_ad60_4664_b539_b1069f16c5af); -} -#[repr(C)] -#[doc(hidden)] -pub struct IStreetsidePanorama_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Devices_Geolocation")] - pub Location: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Devices_Geolocation"))] - Location: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IStreetsidePanoramaStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IStreetsidePanoramaStatics { - type Vtable = IStreetsidePanoramaStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd3b47f69_54b3_4ec5_b2a0_4f8204576507); -} -#[repr(C)] -#[doc(hidden)] -pub struct IStreetsidePanoramaStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub FindNearbyWithLocationAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - FindNearbyWithLocationAsync: usize, - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub FindNearbyWithLocationAndRadiusAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, location: *mut ::core::ffi::c_void, radiusinmeters: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Devices_Geolocation", feature = "Foundation")))] - FindNearbyWithLocationAndRadiusAsync: usize, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct LocalMapTileDataSource(::windows::core::IUnknown); -impl LocalMapTileDataSource { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn UriFormatString(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).UriFormatString)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetUriFormatString<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetUriFormatString)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn UriRequested<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).UriRequested)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveUriRequested<'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).RemoveUriRequested)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::ILocalMapTileDataSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::ILocalMapTileDataSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithUriFormatString<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(uriformatstring: Param0) -> ::windows::core::Result { - Self::ILocalMapTileDataSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithUriFormatString)(::windows::core::Interface::as_raw(this), uriformatstring.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithUriFormatString_compose<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>, T: ::windows::core::Compose>(uriformatstring: Param0, compose: T) -> ::windows::core::Result { - Self::ILocalMapTileDataSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithUriFormatString)(::windows::core::Interface::as_raw(this), uriformatstring.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ILocalMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for LocalMapTileDataSource { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LocalMapTileDataSource { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LocalMapTileDataSource {} -impl ::core::fmt::Debug for LocalMapTileDataSource { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LocalMapTileDataSource").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for LocalMapTileDataSource { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource;{616257b5-9108-4f12-8bf4-bb3c8f6274e5})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LocalMapTileDataSource { - type Vtable = ILocalMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for LocalMapTileDataSource { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.LocalMapTileDataSource"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: LocalMapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LocalMapTileDataSource> for ::windows::core::IUnknown { - fn from(value: &LocalMapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LocalMapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LocalMapTileDataSource> for ::windows::core::IInspectable { - fn from(value: &LocalMapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapTileDataSource { - fn from(value: LocalMapTileDataSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&LocalMapTileDataSource> for MapTileDataSource { - fn from(value: &LocalMapTileDataSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapTileDataSource> for LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, MapTileDataSource> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapTileDataSource> for &LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, MapTileDataSource> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LocalMapTileDataSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&LocalMapTileDataSource> for super::super::DependencyObject { - fn from(value: &LocalMapTileDataSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &LocalMapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for LocalMapTileDataSource {} -unsafe impl ::core::marker::Sync for LocalMapTileDataSource {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapActualCameraChangedEventArgs(::windows::core::IUnknown); -impl MapActualCameraChangedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Camera(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Camera)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ChangeReason(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ChangeReason)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapActualCameraChangedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapActualCameraChangedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapActualCameraChangedEventArgs {} -impl ::core::fmt::Debug for MapActualCameraChangedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapActualCameraChangedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapActualCameraChangedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapActualCameraChangedEventArgs;{daa080da-b7f4-422c-a618-bbaa7c1d814c})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapActualCameraChangedEventArgs { - type Vtable = IMapActualCameraChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapActualCameraChangedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapActualCameraChangedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapActualCameraChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapActualCameraChangedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapActualCameraChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapActualCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapActualCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapActualCameraChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapActualCameraChangedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapActualCameraChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapActualCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapActualCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapActualCameraChangedEventArgs {} -unsafe impl ::core::marker::Sync for MapActualCameraChangedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapActualCameraChangingEventArgs(::windows::core::IUnknown); -impl MapActualCameraChangingEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Camera(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Camera)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ChangeReason(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ChangeReason)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapActualCameraChangingEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapActualCameraChangingEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapActualCameraChangingEventArgs {} -impl ::core::fmt::Debug for MapActualCameraChangingEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapActualCameraChangingEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapActualCameraChangingEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapActualCameraChangingEventArgs;{6b0dbed6-93f7-4682-8de5-a47a1cc7a945})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapActualCameraChangingEventArgs { - type Vtable = IMapActualCameraChangingEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapActualCameraChangingEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapActualCameraChangingEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapActualCameraChangingEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapActualCameraChangingEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapActualCameraChangingEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapActualCameraChangingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapActualCameraChangingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapActualCameraChangingEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapActualCameraChangingEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapActualCameraChangingEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapActualCameraChangingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapActualCameraChangingEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapActualCameraChangingEventArgs {} -unsafe impl ::core::marker::Sync for MapActualCameraChangingEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapAnimationKind(pub i32); -impl MapAnimationKind { - pub const Default: Self = Self(0i32); - pub const None: Self = Self(1i32); - pub const Linear: Self = Self(2i32); - pub const Bow: Self = Self(3i32); -} -impl ::core::marker::Copy for MapAnimationKind {} -impl ::core::clone::Clone for MapAnimationKind { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapAnimationKind { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapAnimationKind { - type Abi = Self; -} -impl ::core::fmt::Debug for MapAnimationKind { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapAnimationKind").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapAnimationKind { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapAnimationKind;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapBillboard(::windows::core::IUnknown); -impl MapBillboard { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[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).SetLocation)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn NormalizedAnchorPoint(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NormalizedAnchorPoint)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[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).SetNormalizedAnchorPoint)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Storage_Streams\"`*"] - #[cfg(feature = "Storage_Streams")] - pub fn Image(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Image)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Storage_Streams\"`*"] - #[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).SetImage)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CollisionBehaviorDesired(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CollisionBehaviorDesired)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetCollisionBehaviorDesired(&self, value: MapElementCollisionBehavior) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCollisionBehaviorDesired)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ReferenceCamera(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ReferenceCamera)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceFromCamera<'a, Param0: ::windows::core::IntoParam<'a, MapCamera>>(camera: Param0) -> ::windows::core::Result { - Self::IMapBillboardFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceFromCamera)(::windows::core::Interface::as_raw(this), camera.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LocationProperty() -> ::windows::core::Result { - Self::IMapBillboardStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn NormalizedAnchorPointProperty() -> ::windows::core::Result { - Self::IMapBillboardStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).NormalizedAnchorPointProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CollisionBehaviorDesiredProperty() -> ::windows::core::Result { - Self::IMapBillboardStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CollisionBehaviorDesiredProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapBillboardFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapBillboardStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapBillboard { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapBillboard { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapBillboard {} -impl ::core::fmt::Debug for MapBillboard { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapBillboard").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapBillboard { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapBillboard;{1694259d-0ae2-4f42-a02e-292ca835d39d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapBillboard { - type Vtable = IMapBillboard_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapBillboard { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapBillboard"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapBillboard) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapBillboard> for ::windows::core::IUnknown { - fn from(value: &MapBillboard) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapBillboard) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapBillboard> for ::windows::core::IInspectable { - fn from(value: &MapBillboard) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapElement { - fn from(value: MapBillboard) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapBillboard> for MapElement { - fn from(value: &MapBillboard) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for &MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapBillboard) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapBillboard> for super::super::DependencyObject { - fn from(value: &MapBillboard) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapBillboard { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapBillboard {} -unsafe impl ::core::marker::Sync for MapBillboard {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapCamera(::windows::core::IUnknown); -impl MapCamera { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[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).SetLocation)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Heading(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Heading)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetHeading(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetHeading)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Pitch(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Pitch)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetPitch(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPitch)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Roll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Roll)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetRoll(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetRoll)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FieldOfView(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FieldOfView)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetFieldOfView(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetFieldOfView)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0) -> ::windows::core::Result { - Self::IMapCameraFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithLocation)(::windows::core::Interface::as_raw(this), location.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithLocationAndHeading<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0, headingindegrees: f64) -> ::windows::core::Result { - Self::IMapCameraFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithLocationAndHeading)(::windows::core::Interface::as_raw(this), location.into_param().abi(), headingindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithLocationHeadingAndPitch<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0, headingindegrees: f64, pitchindegrees: f64) -> ::windows::core::Result { - Self::IMapCameraFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithLocationHeadingAndPitch)(::windows::core::Interface::as_raw(this), location.into_param().abi(), headingindegrees, pitchindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithLocationHeadingPitchRollAndFieldOfView<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0, headingindegrees: f64, pitchindegrees: f64, rollindegrees: f64, fieldofviewindegrees: f64) -> ::windows::core::Result { - Self::IMapCameraFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithLocationHeadingPitchRollAndFieldOfView)(::windows::core::Interface::as_raw(this), location.into_param().abi(), headingindegrees, pitchindegrees, rollindegrees, fieldofviewindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapCameraFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapCamera { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapCamera { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapCamera {} -impl ::core::fmt::Debug for MapCamera { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapCamera").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapCamera { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapCamera;{53a6b623-c0f8-4d8b-ad1e-a59598ea840b})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapCamera { - type Vtable = IMapCamera_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapCamera { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapCamera"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapCamera) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapCamera> for ::windows::core::IUnknown { - fn from(value: &MapCamera) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapCamera { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapCamera { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapCamera) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapCamera> for ::windows::core::IInspectable { - fn from(value: &MapCamera) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapCamera { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapCamera { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapCamera) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapCamera> for super::super::DependencyObject { - fn from(value: &MapCamera) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapCamera { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapCamera { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapCamera {} -unsafe impl ::core::marker::Sync for MapCamera {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapCameraChangeReason(pub i32); -impl MapCameraChangeReason { - pub const System: Self = Self(0i32); - pub const UserInteraction: Self = Self(1i32); - pub const Programmatic: Self = Self(2i32); -} -impl ::core::marker::Copy for MapCameraChangeReason {} -impl ::core::clone::Clone for MapCameraChangeReason { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapCameraChangeReason { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapCameraChangeReason { - type Abi = Self; -} -impl ::core::fmt::Debug for MapCameraChangeReason { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapCameraChangeReason").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapCameraChangeReason { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapCameraChangeReason;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapColorScheme(pub i32); -impl MapColorScheme { - pub const Light: Self = Self(0i32); - pub const Dark: Self = Self(1i32); -} -impl ::core::marker::Copy for MapColorScheme {} -impl ::core::clone::Clone for MapColorScheme { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapColorScheme { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapColorScheme { - type Abi = Self; -} -impl ::core::fmt::Debug for MapColorScheme { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapColorScheme").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapColorScheme { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapColorScheme;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapContextRequestedEventArgs(::windows::core::IUnknown); -impl MapContextRequestedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn MapElements(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElements)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapContextRequestedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapContextRequestedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapContextRequestedEventArgs {} -impl ::core::fmt::Debug for MapContextRequestedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapContextRequestedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapContextRequestedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapContextRequestedEventArgs;{fdd1b423-c961-4df2-bb57-82ee0f0bb591})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapContextRequestedEventArgs { - type Vtable = IMapContextRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapContextRequestedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapContextRequestedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapContextRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapContextRequestedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapContextRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapContextRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapContextRequestedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapContextRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapContextRequestedEventArgs {} -unsafe impl ::core::marker::Sync for MapContextRequestedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControl(::windows::core::IUnknown); -impl MapControl { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Center(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Center)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn SetCenter<'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).SetCenter)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn Children(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Children)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ColorScheme(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ColorScheme)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetColorScheme(&self, value: MapColorScheme) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetColorScheme)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DesiredPitch(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DesiredPitch)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetDesiredPitch(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDesiredPitch)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Heading(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Heading)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetHeading(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetHeading)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LandmarksVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LandmarksVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetLandmarksVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetLandmarksVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LoadingStatus(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LoadingStatus)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapServiceToken(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).MapServiceToken)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetMapServiceToken<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMapServiceToken)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MaxZoomLevel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MaxZoomLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MinZoomLevel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinZoomLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PedestrianFeaturesVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).PedestrianFeaturesVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetPedestrianFeaturesVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPedestrianFeaturesVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Pitch(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Pitch)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Style(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Style)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStyle(&self, value: MapStyle) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetStyle)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TrafficFlowVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TrafficFlowVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetTrafficFlowVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetTrafficFlowVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TransformOrigin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransformOrigin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn SetTransformOrigin<'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).SetTransformOrigin)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn WatermarkMode(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WatermarkMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetWatermarkMode(&self, value: MapWatermarkMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetWatermarkMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomLevel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetZoomLevel(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetZoomLevel)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn MapElements(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElements)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn Routes(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Routes)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn TileSources(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TileSources)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn CenterChanged<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CenterChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveCenterChanged<'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).RemoveCenterChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn HeadingChanged<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HeadingChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveHeadingChanged<'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).RemoveHeadingChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn LoadingStatusChanged<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LoadingStatusChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveLoadingStatusChanged<'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).RemoveLoadingStatusChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapDoubleTapped<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapDoubleTapped)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapDoubleTapped<'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).RemoveMapDoubleTapped)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapHolding<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapHolding)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapHolding<'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).RemoveMapHolding)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapTapped<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapTapped)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapTapped<'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).RemoveMapTapped)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn PitchChanged<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).PitchChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemovePitchChanged<'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).RemovePitchChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TransformOriginChanged<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransformOriginChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveTransformOriginChanged<'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).RemoveTransformOriginChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn ZoomLevelChanged<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevelChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveZoomLevelChanged<'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).RemoveZoomLevelChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn FindMapElementsAtOffset<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, offset: Param0) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindMapElementsAtOffset)(::windows::core::Interface::as_raw(this), offset.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn GetLocationFromOffset<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, offset: Param0, location: &mut ::core::option::Option) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).GetLocationFromOffset)(::windows::core::Interface::as_raw(this), offset.into_param().abi(), location as *mut _ as _).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn GetOffsetFromLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(&self, location: Param0, offset: &mut super::super::super::super::Foundation::Point) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).GetOffsetFromLocation)(::windows::core::Interface::as_raw(this), location.into_param().abi(), offset).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn IsLocationInView<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(&self, location: Param0, isinview: &mut bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).IsLocationInView)(::windows::core::Interface::as_raw(this), location.into_param().abi(), isinview).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TrySetViewBoundsAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, bounds: Param0, margin: Param1, animation: MapAnimationKind) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrySetViewBoundsAsync)(::windows::core::Interface::as_raw(this), bounds.into_param().abi(), margin.into_param().abi(), animation, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TrySetViewWithCenterAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(&self, center: Param0) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrySetViewWithCenterAsync)(::windows::core::Interface::as_raw(this), center.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TrySetViewWithCenterAndZoomAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, center: Param0, zoomlevel: Param1) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrySetViewWithCenterAndZoomAsync)(::windows::core::Interface::as_raw(this), center.into_param().abi(), zoomlevel.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TrySetViewWithCenterZoomHeadingAndPitchAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>, Param2: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>, Param3: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, center: Param0, zoomlevel: Param1, heading: Param2, desiredpitch: Param3) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrySetViewWithCenterZoomHeadingAndPitchAsync)(::windows::core::Interface::as_raw(this), center.into_param().abi(), zoomlevel.into_param().abi(), heading.into_param().abi(), desiredpitch.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>, Param2: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>, Param3: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::IReference>>(&self, center: Param0, zoomlevel: Param1, heading: Param2, desiredpitch: Param3, animation: MapAnimationKind) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrySetViewWithCenterZoomHeadingPitchAndAnimationAsync)(::windows::core::Interface::as_raw(this), center.into_param().abi(), zoomlevel.into_param().abi(), heading.into_param().abi(), desiredpitch.into_param().abi(), animation, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn BusinessLandmarksVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarksVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetBusinessLandmarksVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetBusinessLandmarksVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TransitFeaturesVisible(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeaturesVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetTransitFeaturesVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetTransitFeaturesVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PanInteractionMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).PanInteractionMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetPanInteractionMode(&self, value: MapPanInteractionMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetPanInteractionMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RotateInteractionMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).RotateInteractionMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetRotateInteractionMode(&self, value: MapInteractionMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetRotateInteractionMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TiltInteractionMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TiltInteractionMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetTiltInteractionMode(&self, value: MapInteractionMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetTiltInteractionMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomInteractionMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomInteractionMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetZoomInteractionMode(&self, value: MapInteractionMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetZoomInteractionMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Is3DSupported(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Is3DSupported)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsStreetsideSupported(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsStreetsideSupported)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Scene(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Scene)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetScene<'a, Param0: ::windows::core::IntoParam<'a, MapScene>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetScene)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ActualCamera(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ActualCamera)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TargetCamera(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TargetCamera)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CustomExperience(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CustomExperience)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetCustomExperience<'a, Param0: ::windows::core::IntoParam<'a, MapCustomExperience>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetCustomExperience)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapElementClick<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapElementClick)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapElementClick<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveMapElementClick)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapElementPointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapElementPointerEntered)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapElementPointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveMapElementPointerEntered)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapElementPointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapElementPointerExited)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapElementPointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveMapElementPointerExited)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn ActualCameraChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ActualCameraChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveActualCameraChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveActualCameraChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn ActualCameraChanging<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ActualCameraChanging)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveActualCameraChanging<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveActualCameraChanging)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TargetCameraChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TargetCameraChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveTargetCameraChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveTargetCameraChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn CustomExperienceChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CustomExperienceChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveCustomExperienceChanged<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveCustomExperienceChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StartContinuousRotate(&self, rateindegreespersecond: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StartContinuousRotate)(::windows::core::Interface::as_raw(this), rateindegreespersecond).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StopContinuousRotate(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StopContinuousRotate)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StartContinuousTilt(&self, rateindegreespersecond: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StartContinuousTilt)(::windows::core::Interface::as_raw(this), rateindegreespersecond).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StopContinuousTilt(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StopContinuousTilt)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StartContinuousZoom(&self, rateofchangepersecond: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StartContinuousZoom)(::windows::core::Interface::as_raw(this), rateofchangepersecond).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StopContinuousZoom(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StopContinuousZoom)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryRotateAsync(&self, degrees: f64) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryRotateAsync)(::windows::core::Interface::as_raw(this), degrees, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryRotateToAsync(&self, angleindegrees: f64) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryRotateToAsync)(::windows::core::Interface::as_raw(this), angleindegrees, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryTiltAsync(&self, degrees: f64) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryTiltAsync)(::windows::core::Interface::as_raw(this), degrees, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryTiltToAsync(&self, angleindegrees: f64) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryTiltToAsync)(::windows::core::Interface::as_raw(this), angleindegrees, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryZoomInAsync(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryZoomInAsync)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryZoomOutAsync(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryZoomOutAsync)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryZoomToAsync(&self, zoomlevel: f64) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryZoomToAsync)(::windows::core::Interface::as_raw(this), zoomlevel, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TrySetSceneAsync<'a, Param0: ::windows::core::IntoParam<'a, MapScene>>(&self, scene: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrySetSceneAsync)(::windows::core::Interface::as_raw(this), scene.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TrySetSceneWithAnimationAsync<'a, Param0: ::windows::core::IntoParam<'a, MapScene>>(&self, scene: Param0, animationkind: MapAnimationKind) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrySetSceneWithAnimationAsync)(::windows::core::Interface::as_raw(this), scene.into_param().abi(), animationkind, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapRightTapped)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveMapRightTapped)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn BusinessLandmarksEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarksEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetBusinessLandmarksEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetBusinessLandmarksEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TransitFeaturesEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeaturesEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetTransitFeaturesEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetTransitFeaturesEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn GetVisibleRegion(&self, region: MapVisibleRegionKind) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetVisibleRegion)(::windows::core::Interface::as_raw(this), region, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapProjection(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapProjection)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetMapProjection(&self, value: MapProjection) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetMapProjection)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StyleSheet(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StyleSheet)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStyleSheet<'a, Param0: ::windows::core::IntoParam<'a, MapStyleSheet>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetStyleSheet)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ViewPadding(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ViewPadding)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetViewPadding<'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).SetViewPadding)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapContextRequested)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapContextRequested<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveMapContextRequested)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn FindMapElementsAtOffsetWithRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, offset: Param0, radius: f64) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindMapElementsAtOffsetWithRadius)(::windows::core::Interface::as_raw(this), offset.into_param().abi(), radius, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn GetLocationFromOffsetWithReferenceSystem<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, offset: Param0, desiredreferencesystem: super::super::super::super::Devices::Geolocation::AltitudeReferenceSystem, location: &mut ::core::option::Option) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).GetLocationFromOffsetWithReferenceSystem)(::windows::core::Interface::as_raw(this), offset.into_param().abi(), desiredreferencesystem, location as *mut _ as _).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StartContinuousPan(&self, horizontalpixelspersecond: f64, verticalpixelspersecond: f64) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StartContinuousPan)(::windows::core::Interface::as_raw(this), horizontalpixelspersecond, verticalpixelspersecond).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StopContinuousPan(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).StopContinuousPan)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TryPanAsync(&self, horizontalpixels: f64, verticalpixels: f64) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryPanAsync)(::windows::core::Interface::as_raw(this), horizontalpixels, verticalpixels, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TryPanToAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(&self, location: Param0) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TryPanToAsync)(::windows::core::Interface::as_raw(this), location.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn Layers(&self) -> ::windows::core::Result> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Layers)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn SetLayers<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetLayers)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TryGetLocationFromOffset<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, offset: Param0, location: &mut ::core::option::Option) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TryGetLocationFromOffset)(::windows::core::Interface::as_raw(this), offset.into_param().abi(), location as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn TryGetLocationFromOffsetWithReferenceSystem<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(&self, offset: Param0, desiredreferencesystem: super::super::super::super::Devices::Geolocation::AltitudeReferenceSystem, location: &mut ::core::option::Option) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TryGetLocationFromOffsetWithReferenceSystem)(::windows::core::Interface::as_raw(this), offset.into_param().abi(), desiredreferencesystem, location as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Region(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Region)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetRegion<'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).SetRegion)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanTiltDown(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanTiltDown)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanTiltUp(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanTiltUp)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanZoomIn(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanZoomIn)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanZoomOut(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanZoomOut)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CenterProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CenterProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ChildrenProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ChildrenProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ColorSchemeProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColorSchemeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DesiredPitchProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DesiredPitchProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn HeadingProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HeadingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LandmarksVisibleProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LandmarksVisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LoadingStatusProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LoadingStatusProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapServiceTokenProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapServiceTokenProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PedestrianFeaturesVisibleProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PedestrianFeaturesVisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PitchProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PitchProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StyleProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StyleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TrafficFlowVisibleProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TrafficFlowVisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TransformOriginProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TransformOriginProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn WatermarkModeProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).WatermarkModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomLevelProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapElementsProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElementsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RoutesProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RoutesProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TileSourcesProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TileSourcesProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LocationProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn GetLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetLocation)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn SetLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IMapControlStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetLocation)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn NormalizedAnchorPointProperty() -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).NormalizedAnchorPointProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn GetNormalizedAnchorPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::IMapControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetNormalizedAnchorPoint)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn SetNormalizedAnchorPoint<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>, Param1: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Point>>(element: Param0, value: Param1) -> ::windows::core::Result<()> { - Self::IMapControlStatics(|this| unsafe { (::windows::core::Interface::vtable(this).SetNormalizedAnchorPoint)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn BusinessLandmarksVisibleProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarksVisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TransitFeaturesVisibleProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeaturesVisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PanInteractionModeProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PanInteractionModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RotateInteractionModeProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RotateInteractionModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TiltInteractionModeProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TiltInteractionModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomInteractionModeProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ZoomInteractionModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Is3DSupportedProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Is3DSupportedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsStreetsideSupportedProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsStreetsideSupportedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SceneProperty() -> ::windows::core::Result { - Self::IMapControlStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SceneProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn BusinessLandmarksEnabledProperty() -> ::windows::core::Result { - Self::IMapControlStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarksEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TransitFeaturesEnabledProperty() -> ::windows::core::Result { - Self::IMapControlStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeaturesEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapProjectionProperty() -> ::windows::core::Result { - Self::IMapControlStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapProjectionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StyleSheetProperty() -> ::windows::core::Result { - Self::IMapControlStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StyleSheetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ViewPaddingProperty() -> ::windows::core::Result { - Self::IMapControlStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ViewPaddingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LayersProperty() -> ::windows::core::Result { - Self::IMapControlStatics6(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LayersProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RegionProperty() -> ::windows::core::Result { - Self::IMapControlStatics7(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RegionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanTiltDownProperty() -> ::windows::core::Result { - Self::IMapControlStatics8(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanTiltDownProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanTiltUpProperty() -> ::windows::core::Result { - Self::IMapControlStatics8(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanTiltUpProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanZoomInProperty() -> ::windows::core::Result { - Self::IMapControlStatics8(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanZoomInProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CanZoomOutProperty() -> ::windows::core::Result { - Self::IMapControlStatics8(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CanZoomOutProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapControlStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapControlStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapControlStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapControlStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapControlStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapControlStatics7 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapControlStatics8 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapControl { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControl { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControl {} -impl ::core::fmt::Debug for MapControl { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControl").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControl { - type Vtable = IMapControl_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControl> for ::windows::core::IUnknown { - fn from(value: &MapControl) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControl) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControl> for ::windows::core::IInspectable { - fn from(value: &MapControl) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: MapControl) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&MapControl> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &MapControl) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for MapControl { - 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 &MapControl { - 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: MapControl) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&MapControl> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &MapControl) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for MapControl { - 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 &MapControl { - 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: MapControl) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapControl> for super::Control { - fn from(value: &MapControl) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: MapControl) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapControl> for super::super::FrameworkElement { - fn from(value: &MapControl) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: MapControl) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapControl> for super::super::UIElement { - fn from(value: &MapControl) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapControl) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapControl> for super::super::DependencyObject { - fn from(value: &MapControl) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapControl {} -unsafe impl ::core::marker::Sync for MapControl {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlBusinessLandmarkClickEventArgs(::windows::core::IUnknown); -impl MapControlBusinessLandmarkClickEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`, `\"Services_Maps_LocalSearch\"`*"] - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub fn LocalLocations(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalLocations)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlBusinessLandmarkClickEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlBusinessLandmarkClickEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlBusinessLandmarkClickEventArgs {} -impl ::core::fmt::Debug for MapControlBusinessLandmarkClickEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlBusinessLandmarkClickEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlBusinessLandmarkClickEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkClickEventArgs;{5e464922-4a1a-4797-beb7-5cf7754cb867})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlBusinessLandmarkClickEventArgs { - type Vtable = IMapControlBusinessLandmarkClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlBusinessLandmarkClickEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkClickEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlBusinessLandmarkClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkClickEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlBusinessLandmarkClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlBusinessLandmarkClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlBusinessLandmarkClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlBusinessLandmarkClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkClickEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlBusinessLandmarkClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlBusinessLandmarkClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlBusinessLandmarkClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlBusinessLandmarkClickEventArgs {} -unsafe impl ::core::marker::Sync for MapControlBusinessLandmarkClickEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlBusinessLandmarkPointerEnteredEventArgs(::windows::core::IUnknown); -impl MapControlBusinessLandmarkPointerEnteredEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`, `\"Services_Maps_LocalSearch\"`*"] - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub fn LocalLocations(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalLocations)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlBusinessLandmarkPointerEnteredEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlBusinessLandmarkPointerEnteredEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlBusinessLandmarkPointerEnteredEventArgs {} -impl ::core::fmt::Debug for MapControlBusinessLandmarkPointerEnteredEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlBusinessLandmarkPointerEnteredEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlBusinessLandmarkPointerEnteredEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerEnteredEventArgs;{5e4081a6-ea98-4f95-8caf-5b42696ff504})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlBusinessLandmarkPointerEnteredEventArgs { - type Vtable = IMapControlBusinessLandmarkPointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlBusinessLandmarkPointerEnteredEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerEnteredEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlBusinessLandmarkPointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkPointerEnteredEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlBusinessLandmarkPointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlBusinessLandmarkPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlBusinessLandmarkPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlBusinessLandmarkPointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkPointerEnteredEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlBusinessLandmarkPointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlBusinessLandmarkPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlBusinessLandmarkPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlBusinessLandmarkPointerEnteredEventArgs {} -unsafe impl ::core::marker::Sync for MapControlBusinessLandmarkPointerEnteredEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlBusinessLandmarkPointerExitedEventArgs(::windows::core::IUnknown); -impl MapControlBusinessLandmarkPointerExitedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`, `\"Services_Maps_LocalSearch\"`*"] - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub fn LocalLocations(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalLocations)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlBusinessLandmarkPointerExitedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlBusinessLandmarkPointerExitedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlBusinessLandmarkPointerExitedEventArgs {} -impl ::core::fmt::Debug for MapControlBusinessLandmarkPointerExitedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlBusinessLandmarkPointerExitedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlBusinessLandmarkPointerExitedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerExitedEventArgs;{2bb52caf-f24a-46d0-b463-65f719731057})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlBusinessLandmarkPointerExitedEventArgs { - type Vtable = IMapControlBusinessLandmarkPointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlBusinessLandmarkPointerExitedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkPointerExitedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlBusinessLandmarkPointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkPointerExitedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlBusinessLandmarkPointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlBusinessLandmarkPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlBusinessLandmarkPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlBusinessLandmarkPointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkPointerExitedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlBusinessLandmarkPointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlBusinessLandmarkPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlBusinessLandmarkPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlBusinessLandmarkPointerExitedEventArgs {} -unsafe impl ::core::marker::Sync for MapControlBusinessLandmarkPointerExitedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlBusinessLandmarkRightTappedEventArgs(::windows::core::IUnknown); -impl MapControlBusinessLandmarkRightTappedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`, `\"Services_Maps_LocalSearch\"`*"] - #[cfg(all(feature = "Foundation_Collections", feature = "Services_Maps_LocalSearch"))] - pub fn LocalLocations(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocalLocations)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlBusinessLandmarkRightTappedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlBusinessLandmarkRightTappedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlBusinessLandmarkRightTappedEventArgs {} -impl ::core::fmt::Debug for MapControlBusinessLandmarkRightTappedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlBusinessLandmarkRightTappedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlBusinessLandmarkRightTappedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkRightTappedEventArgs;{59ab8ae7-f184-4ab1-b0b0-35c8bf0654b2})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlBusinessLandmarkRightTappedEventArgs { - type Vtable = IMapControlBusinessLandmarkRightTappedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlBusinessLandmarkRightTappedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlBusinessLandmarkRightTappedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlBusinessLandmarkRightTappedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkRightTappedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlBusinessLandmarkRightTappedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlBusinessLandmarkRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlBusinessLandmarkRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlBusinessLandmarkRightTappedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlBusinessLandmarkRightTappedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlBusinessLandmarkRightTappedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlBusinessLandmarkRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlBusinessLandmarkRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlBusinessLandmarkRightTappedEventArgs {} -unsafe impl ::core::marker::Sync for MapControlBusinessLandmarkRightTappedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlDataHelper(::windows::core::IUnknown); -impl MapControlDataHelper { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn BusinessLandmarkClick<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarkClick)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveBusinessLandmarkClick<'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).RemoveBusinessLandmarkClick)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TransitFeatureClick<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeatureClick)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveTransitFeatureClick<'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).RemoveTransitFeatureClick)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn BusinessLandmarkRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarkRightTapped)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveBusinessLandmarkRightTapped<'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).RemoveBusinessLandmarkRightTapped)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TransitFeatureRightTapped<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeatureRightTapped)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveTransitFeatureRightTapped<'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).RemoveTransitFeatureRightTapped)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn BusinessLandmarkPointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarkPointerEntered)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveBusinessLandmarkPointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveBusinessLandmarkPointerEntered)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TransitFeaturePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeaturePointerEntered)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveTransitFeaturePointerEntered<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveTransitFeaturePointerEntered)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn BusinessLandmarkPointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BusinessLandmarkPointerExited)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveBusinessLandmarkPointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveBusinessLandmarkPointerExited)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TransitFeaturePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TypedEventHandler>>(&self, value: Param0) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TransitFeaturePointerExited)(::windows::core::Interface::as_raw(this), value.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveTransitFeaturePointerExited<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).RemoveTransitFeaturePointerExited)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstance<'a, Param0: ::windows::core::IntoParam<'a, MapControl>>(map: Param0) -> ::windows::core::Result { - Self::IMapControlDataHelperFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), map.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateMapControl(rasterrendermode: bool) -> ::windows::core::Result { - Self::IMapControlDataHelperStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateMapControl)(::windows::core::Interface::as_raw(this), rasterrendermode, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapControlDataHelperFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapControlDataHelperStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapControlDataHelper { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlDataHelper { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlDataHelper {} -impl ::core::fmt::Debug for MapControlDataHelper { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlDataHelper").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlDataHelper { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlDataHelper;{8bb0f09c-14ab-486c-9de5-5a5def0205a2})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlDataHelper { - type Vtable = IMapControlDataHelper_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlDataHelper { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlDataHelper"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlDataHelper) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlDataHelper> for ::windows::core::IUnknown { - fn from(value: &MapControlDataHelper) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlDataHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlDataHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlDataHelper) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlDataHelper> for ::windows::core::IInspectable { - fn from(value: &MapControlDataHelper) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlDataHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlDataHelper { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapControlDataHelper) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapControlDataHelper> for super::super::DependencyObject { - fn from(value: &MapControlDataHelper) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapControlDataHelper { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapControlDataHelper { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapControlDataHelper {} -unsafe impl ::core::marker::Sync for MapControlDataHelper {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlTransitFeatureClickEventArgs(::windows::core::IUnknown); -impl MapControlTransitFeatureClickEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn TransitProperties(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TransitProperties)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlTransitFeatureClickEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlTransitFeatureClickEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlTransitFeatureClickEventArgs {} -impl ::core::fmt::Debug for MapControlTransitFeatureClickEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlTransitFeatureClickEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlTransitFeatureClickEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureClickEventArgs;{76179969-b765-4622-b08a-3072745a4541})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlTransitFeatureClickEventArgs { - type Vtable = IMapControlTransitFeatureClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlTransitFeatureClickEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureClickEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlTransitFeatureClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeatureClickEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlTransitFeatureClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlTransitFeatureClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlTransitFeatureClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlTransitFeatureClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeatureClickEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlTransitFeatureClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlTransitFeatureClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlTransitFeatureClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlTransitFeatureClickEventArgs {} -unsafe impl ::core::marker::Sync for MapControlTransitFeatureClickEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlTransitFeaturePointerEnteredEventArgs(::windows::core::IUnknown); -impl MapControlTransitFeaturePointerEnteredEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn TransitProperties(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TransitProperties)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlTransitFeaturePointerEnteredEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlTransitFeaturePointerEnteredEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlTransitFeaturePointerEnteredEventArgs {} -impl ::core::fmt::Debug for MapControlTransitFeaturePointerEnteredEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlTransitFeaturePointerEnteredEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlTransitFeaturePointerEnteredEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerEnteredEventArgs;{73911a4e-ec4f-479e-94a1-36e081d0d897})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlTransitFeaturePointerEnteredEventArgs { - type Vtable = IMapControlTransitFeaturePointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlTransitFeaturePointerEnteredEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerEnteredEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlTransitFeaturePointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeaturePointerEnteredEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlTransitFeaturePointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlTransitFeaturePointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlTransitFeaturePointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlTransitFeaturePointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeaturePointerEnteredEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlTransitFeaturePointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlTransitFeaturePointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlTransitFeaturePointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlTransitFeaturePointerEnteredEventArgs {} -unsafe impl ::core::marker::Sync for MapControlTransitFeaturePointerEnteredEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlTransitFeaturePointerExitedEventArgs(::windows::core::IUnknown); -impl MapControlTransitFeaturePointerExitedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn TransitProperties(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TransitProperties)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlTransitFeaturePointerExitedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlTransitFeaturePointerExitedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlTransitFeaturePointerExitedEventArgs {} -impl ::core::fmt::Debug for MapControlTransitFeaturePointerExitedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlTransitFeaturePointerExitedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlTransitFeaturePointerExitedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerExitedEventArgs;{6a11258d-448d-44e7-bc69-d13d497154e9})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlTransitFeaturePointerExitedEventArgs { - type Vtable = IMapControlTransitFeaturePointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlTransitFeaturePointerExitedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlTransitFeaturePointerExitedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlTransitFeaturePointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeaturePointerExitedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlTransitFeaturePointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlTransitFeaturePointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlTransitFeaturePointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlTransitFeaturePointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeaturePointerExitedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlTransitFeaturePointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlTransitFeaturePointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlTransitFeaturePointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlTransitFeaturePointerExitedEventArgs {} -unsafe impl ::core::marker::Sync for MapControlTransitFeaturePointerExitedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapControlTransitFeatureRightTappedEventArgs(::windows::core::IUnknown); -impl MapControlTransitFeatureRightTappedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn TransitProperties(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TransitProperties)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapControlTransitFeatureRightTappedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapControlTransitFeatureRightTappedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapControlTransitFeatureRightTappedEventArgs {} -impl ::core::fmt::Debug for MapControlTransitFeatureRightTappedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapControlTransitFeatureRightTappedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapControlTransitFeatureRightTappedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureRightTappedEventArgs;{aea1cc49-a729-4eae-a59a-3ec9a125a028})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapControlTransitFeatureRightTappedEventArgs { - type Vtable = IMapControlTransitFeatureRightTappedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapControlTransitFeatureRightTappedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapControlTransitFeatureRightTappedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapControlTransitFeatureRightTappedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeatureRightTappedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapControlTransitFeatureRightTappedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapControlTransitFeatureRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapControlTransitFeatureRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapControlTransitFeatureRightTappedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapControlTransitFeatureRightTappedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapControlTransitFeatureRightTappedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapControlTransitFeatureRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapControlTransitFeatureRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapControlTransitFeatureRightTappedEventArgs {} -unsafe impl ::core::marker::Sync for MapControlTransitFeatureRightTappedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapCustomExperience(::windows::core::IUnknown); -impl MapCustomExperience { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IMapCustomExperienceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IMapCustomExperienceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapCustomExperienceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapCustomExperience { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapCustomExperience { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapCustomExperience {} -impl ::core::fmt::Debug for MapCustomExperience { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapCustomExperience").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapCustomExperience { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapCustomExperience;{64592866-14a3-4e5f-8883-8e9c500eeede})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapCustomExperience { - type Vtable = IMapCustomExperience_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapCustomExperience { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapCustomExperience"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapCustomExperience) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapCustomExperience> for ::windows::core::IUnknown { - fn from(value: &MapCustomExperience) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapCustomExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapCustomExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapCustomExperience) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapCustomExperience> for ::windows::core::IInspectable { - fn from(value: &MapCustomExperience) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapCustomExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapCustomExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapCustomExperience) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapCustomExperience> for super::super::DependencyObject { - fn from(value: &MapCustomExperience) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapCustomExperience { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapCustomExperience { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapCustomExperience {} -unsafe impl ::core::marker::Sync for MapCustomExperience {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapCustomExperienceChangedEventArgs(::windows::core::IUnknown); -impl MapCustomExperienceChangedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapCustomExperienceChangedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapCustomExperienceChangedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapCustomExperienceChangedEventArgs {} -impl ::core::fmt::Debug for MapCustomExperienceChangedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapCustomExperienceChangedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapCustomExperienceChangedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapCustomExperienceChangedEventArgs;{b9e6fb9b-8fc1-4042-ac34-a61b38bb7514})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapCustomExperienceChangedEventArgs { - type Vtable = IMapCustomExperienceChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapCustomExperienceChangedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapCustomExperienceChangedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapCustomExperienceChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapCustomExperienceChangedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapCustomExperienceChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapCustomExperienceChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapCustomExperienceChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapCustomExperienceChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapCustomExperienceChangedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapCustomExperienceChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapCustomExperienceChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapCustomExperienceChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapCustomExperienceChangedEventArgs {} -unsafe impl ::core::marker::Sync for MapCustomExperienceChangedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElement(::windows::core::IUnknown); -impl MapElement { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetZIndex)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Visible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Visible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapTabIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetMapTabIndex)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapStyleSheetEntry(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).MapStyleSheetEntry)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - 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).SetMapStyleSheetEntry)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapStyleSheetEntryState(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).MapStyleSheetEntryState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - 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).SetMapStyleSheetEntryState)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Tag(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Tag)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - 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).SetTag)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetIsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetIsEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IMapElementFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IMapElementFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZIndexProperty() -> ::windows::core::Result { - Self::IMapElementStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ZIndexProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn VisibleProperty() -> ::windows::core::Result { - Self::IMapElementStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).VisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapTabIndexProperty() -> ::windows::core::Result { - Self::IMapElementStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapTabIndexProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapStyleSheetEntryProperty() -> ::windows::core::Result { - Self::IMapElementStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapStyleSheetEntryProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapStyleSheetEntryStateProperty() -> ::windows::core::Result { - Self::IMapElementStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapStyleSheetEntryStateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TagProperty() -> ::windows::core::Result { - Self::IMapElementStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TagProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsEnabledProperty() -> ::windows::core::Result { - Self::IMapElementStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapElementFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapElementStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapElementStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapElementStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapElementStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapElement { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElement { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElement {} -impl ::core::fmt::Debug for MapElement { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElement").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElement { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElement;{d61fc4df-b245-47f2-9ac2-43c058b1c903})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElement { - type Vtable = IMapElement_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElement { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElement"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElement) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElement> for ::windows::core::IUnknown { - fn from(value: &MapElement) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElement { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElement { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElement) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElement> for ::windows::core::IInspectable { - fn from(value: &MapElement) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElement { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElement { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapElement) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapElement> for super::super::DependencyObject { - fn from(value: &MapElement) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapElement { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapElement { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapElement {} -unsafe impl ::core::marker::Sync for MapElement {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElement3D(::windows::core::IUnknown); -impl MapElement3D { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[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).SetLocation)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Model(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Model)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetModel<'a, Param0: ::windows::core::IntoParam<'a, MapModel3D>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetModel)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Heading(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Heading)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetHeading(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetHeading)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Pitch(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Pitch)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetPitch(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPitch)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Roll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Roll)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetRoll(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetRoll)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Numerics\"`*"] - #[cfg(feature = "Foundation_Numerics")] - pub fn Scale(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Scale)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Numerics\"`*"] - #[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).SetScale)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LocationProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn HeadingProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HeadingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PitchProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PitchProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RollProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RollProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ScaleProperty() -> ::windows::core::Result { - Self::IMapElement3DStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ScaleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapElement3DStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapElement3D { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElement3D { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElement3D {} -impl ::core::fmt::Debug for MapElement3D { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElement3D").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElement3D { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElement3D;{827af8d5-3843-48e2-bd00-0f0644fbe6a5})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElement3D { - type Vtable = IMapElement3D_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElement3D { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElement3D"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElement3D) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElement3D> for ::windows::core::IUnknown { - fn from(value: &MapElement3D) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElement3D) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElement3D> for ::windows::core::IInspectable { - fn from(value: &MapElement3D) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapElement { - fn from(value: MapElement3D) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapElement3D> for MapElement { - fn from(value: &MapElement3D) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for &MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapElement3D) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapElement3D> for super::super::DependencyObject { - fn from(value: &MapElement3D) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapElement3D { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapElement3D {} -unsafe impl ::core::marker::Sync for MapElement3D {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementClickEventArgs(::windows::core::IUnknown); -impl MapElementClickEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn MapElements(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElements)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapElementClickEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementClickEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementClickEventArgs {} -impl ::core::fmt::Debug for MapElementClickEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementClickEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementClickEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementClickEventArgs;{40168a11-d080-4519-99a1-3149fb8999d0})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementClickEventArgs { - type Vtable = IMapElementClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementClickEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementClickEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementClickEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapElementClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementClickEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapElementClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapElementClickEventArgs {} -unsafe impl ::core::marker::Sync for MapElementClickEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapElementCollisionBehavior(pub i32); -impl MapElementCollisionBehavior { - pub const Hide: Self = Self(0i32); - pub const RemainVisible: Self = Self(1i32); -} -impl ::core::marker::Copy for MapElementCollisionBehavior {} -impl ::core::clone::Clone for MapElementCollisionBehavior { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapElementCollisionBehavior { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapElementCollisionBehavior { - type Abi = Self; -} -impl ::core::fmt::Debug for MapElementCollisionBehavior { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementCollisionBehavior").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementCollisionBehavior { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapElementCollisionBehavior;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementPointerEnteredEventArgs(::windows::core::IUnknown); -impl MapElementPointerEnteredEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapElement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapElementPointerEnteredEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementPointerEnteredEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementPointerEnteredEventArgs {} -impl ::core::fmt::Debug for MapElementPointerEnteredEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementPointerEnteredEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementPointerEnteredEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementPointerEnteredEventArgs;{ab85dd4e-91d7-4b31-8f0a-d390c7d3a2ef})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementPointerEnteredEventArgs { - type Vtable = IMapElementPointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementPointerEnteredEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementPointerEnteredEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementPointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementPointerEnteredEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapElementPointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementPointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementPointerEnteredEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapElementPointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapElementPointerEnteredEventArgs {} -unsafe impl ::core::marker::Sync for MapElementPointerEnteredEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementPointerExitedEventArgs(::windows::core::IUnknown); -impl MapElementPointerExitedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapElement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapElementPointerExitedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementPointerExitedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementPointerExitedEventArgs {} -impl ::core::fmt::Debug for MapElementPointerExitedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementPointerExitedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementPointerExitedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementPointerExitedEventArgs;{c1a45af9-60c9-4679-9119-20abc75d931f})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementPointerExitedEventArgs { - type Vtable = IMapElementPointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementPointerExitedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementPointerExitedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementPointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementPointerExitedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapElementPointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementPointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementPointerExitedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapElementPointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapElementPointerExitedEventArgs {} -unsafe impl ::core::marker::Sync for MapElementPointerExitedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementsLayer(::windows::core::IUnknown); -impl MapElementsLayer { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn MapElements(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElements)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn SetMapElements<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IVector>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMapElements)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapElementClick<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapElementClick)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapElementClick<'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).RemoveMapElementClick)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapElementPointerEntered<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapElementPointerEntered)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapElementPointerEntered<'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).RemoveMapElementPointerEntered)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapElementPointerExited<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapElementPointerExited)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapElementPointerExited<'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).RemoveMapElementPointerExited)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn MapContextRequested<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapContextRequested)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveMapContextRequested<'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).RemoveMapContextRequested)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapElementsProperty() -> ::windows::core::Result { - Self::IMapElementsLayerStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElementsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapElementsLayerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapElementsLayer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementsLayer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementsLayer {} -impl ::core::fmt::Debug for MapElementsLayer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementsLayer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementsLayer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementsLayer;{de79689a-01ef-46f4-ac60-7c200b552610})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementsLayer { - type Vtable = IMapElementsLayer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementsLayer { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementsLayer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementsLayer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayer> for ::windows::core::IUnknown { - fn from(value: &MapElementsLayer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementsLayer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayer> for ::windows::core::IInspectable { - fn from(value: &MapElementsLayer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapLayer { - fn from(value: MapElementsLayer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapElementsLayer> for MapLayer { - fn from(value: &MapElementsLayer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapLayer> for MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, MapLayer> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapLayer> for &MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, MapLayer> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapElementsLayer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapElementsLayer> for super::super::DependencyObject { - fn from(value: &MapElementsLayer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapElementsLayer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapElementsLayer {} -unsafe impl ::core::marker::Sync for MapElementsLayer {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementsLayerClickEventArgs(::windows::core::IUnknown); -impl MapElementsLayerClickEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn MapElements(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElements)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapElementsLayerClickEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementsLayerClickEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementsLayerClickEventArgs {} -impl ::core::fmt::Debug for MapElementsLayerClickEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementsLayerClickEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementsLayerClickEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementsLayerClickEventArgs;{2ca7cf66-af1b-4c05-8c85-f74ae3d4677f})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementsLayerClickEventArgs { - type Vtable = IMapElementsLayerClickEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementsLayerClickEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementsLayerClickEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementsLayerClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerClickEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapElementsLayerClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementsLayerClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementsLayerClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementsLayerClickEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerClickEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapElementsLayerClickEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementsLayerClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementsLayerClickEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapElementsLayerClickEventArgs {} -unsafe impl ::core::marker::Sync for MapElementsLayerClickEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementsLayerContextRequestedEventArgs(::windows::core::IUnknown); -impl MapElementsLayerContextRequestedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn MapElements(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElements)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for MapElementsLayerContextRequestedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementsLayerContextRequestedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementsLayerContextRequestedEventArgs {} -impl ::core::fmt::Debug for MapElementsLayerContextRequestedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementsLayerContextRequestedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementsLayerContextRequestedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementsLayerContextRequestedEventArgs;{da45d0b3-7a0e-4758-808b-3a637627eb0d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementsLayerContextRequestedEventArgs { - type Vtable = IMapElementsLayerContextRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementsLayerContextRequestedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementsLayerContextRequestedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementsLayerContextRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerContextRequestedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapElementsLayerContextRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementsLayerContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementsLayerContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementsLayerContextRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerContextRequestedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapElementsLayerContextRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementsLayerContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementsLayerContextRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapElementsLayerContextRequestedEventArgs {} -unsafe impl ::core::marker::Sync for MapElementsLayerContextRequestedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementsLayerPointerEnteredEventArgs(::windows::core::IUnknown); -impl MapElementsLayerPointerEnteredEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapElement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapElementsLayerPointerEnteredEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementsLayerPointerEnteredEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementsLayerPointerEnteredEventArgs {} -impl ::core::fmt::Debug for MapElementsLayerPointerEnteredEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementsLayerPointerEnteredEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementsLayerPointerEnteredEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerEnteredEventArgs;{757fc032-4694-4404-8c89-348b6b76c5e6})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementsLayerPointerEnteredEventArgs { - type Vtable = IMapElementsLayerPointerEnteredEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementsLayerPointerEnteredEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerEnteredEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementsLayerPointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerPointerEnteredEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapElementsLayerPointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementsLayerPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementsLayerPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementsLayerPointerEnteredEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerPointerEnteredEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapElementsLayerPointerEnteredEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementsLayerPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementsLayerPointerEnteredEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapElementsLayerPointerEnteredEventArgs {} -unsafe impl ::core::marker::Sync for MapElementsLayerPointerEnteredEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapElementsLayerPointerExitedEventArgs(::windows::core::IUnknown); -impl MapElementsLayerPointerExitedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapElement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapElementsLayerPointerExitedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapElementsLayerPointerExitedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapElementsLayerPointerExitedEventArgs {} -impl ::core::fmt::Debug for MapElementsLayerPointerExitedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapElementsLayerPointerExitedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapElementsLayerPointerExitedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerExitedEventArgs;{92f3c6ad-03ed-4c39-af20-2a07ee1ccea6})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapElementsLayerPointerExitedEventArgs { - type Vtable = IMapElementsLayerPointerExitedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapElementsLayerPointerExitedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapElementsLayerPointerExitedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapElementsLayerPointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerPointerExitedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapElementsLayerPointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapElementsLayerPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapElementsLayerPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapElementsLayerPointerExitedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapElementsLayerPointerExitedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapElementsLayerPointerExitedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapElementsLayerPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapElementsLayerPointerExitedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapElementsLayerPointerExitedEventArgs {} -unsafe impl ::core::marker::Sync for MapElementsLayerPointerExitedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapIcon(::windows::core::IUnknown); -impl MapIcon { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[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).SetLocation)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Title(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Title)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - 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).SetTitle)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn NormalizedAnchorPoint(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NormalizedAnchorPoint)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[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).SetNormalizedAnchorPoint)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Storage_Streams\"`*"] - #[cfg(feature = "Storage_Streams")] - pub fn Image(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Image)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Storage_Streams\"`*"] - #[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).SetImage)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CollisionBehaviorDesired(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CollisionBehaviorDesired)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetCollisionBehaviorDesired(&self, value: MapElementCollisionBehavior) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetCollisionBehaviorDesired)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LocationProperty() -> ::windows::core::Result { - Self::IMapIconStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LocationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TitleProperty() -> ::windows::core::Result { - Self::IMapIconStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TitleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn NormalizedAnchorPointProperty() -> ::windows::core::Result { - Self::IMapIconStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).NormalizedAnchorPointProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CollisionBehaviorDesiredProperty() -> ::windows::core::Result { - Self::IMapIconStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CollisionBehaviorDesiredProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapIconStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapIconStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapIcon { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapIcon { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapIcon {} -impl ::core::fmt::Debug for MapIcon { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapIcon").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapIcon { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapIcon;{d2096872-23d9-4a2b-8be0-69f3a85482ab})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapIcon { - type Vtable = IMapIcon_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapIcon { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapIcon"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapIcon) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapIcon> for ::windows::core::IUnknown { - fn from(value: &MapIcon) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapIcon) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapIcon> for ::windows::core::IInspectable { - fn from(value: &MapIcon) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapElement { - fn from(value: MapIcon) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapIcon> for MapElement { - fn from(value: &MapIcon) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for &MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapIcon) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapIcon> for super::super::DependencyObject { - fn from(value: &MapIcon) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapIcon { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapIcon {} -unsafe impl ::core::marker::Sync for MapIcon {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapInputEventArgs(::windows::core::IUnknown); -impl MapInputEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapInputEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapInputEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapInputEventArgs {} -impl ::core::fmt::Debug for MapInputEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapInputEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapInputEventArgs { - type Vtable = IMapInputEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapInputEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapInputEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapInputEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapInputEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapInputEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapInputEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapInputEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapInputEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapInputEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapInputEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapInputEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapInputEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapInputEventArgs) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapInputEventArgs> for super::super::DependencyObject { - fn from(value: &MapInputEventArgs) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapInputEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapInputEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapInputEventArgs {} -unsafe impl ::core::marker::Sync for MapInputEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapInteractionMode(pub i32); -impl MapInteractionMode { - pub const Auto: Self = Self(0i32); - pub const Disabled: Self = Self(1i32); - pub const GestureOnly: Self = Self(2i32); - pub const PointerAndKeyboard: Self = Self(2i32); - pub const ControlOnly: Self = Self(3i32); - pub const GestureAndControl: Self = Self(4i32); - pub const PointerKeyboardAndControl: Self = Self(4i32); - pub const PointerOnly: Self = Self(5i32); -} -impl ::core::marker::Copy for MapInteractionMode {} -impl ::core::clone::Clone for MapInteractionMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapInteractionMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapInteractionMode { - type Abi = Self; -} -impl ::core::fmt::Debug for MapInteractionMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapInteractionMode").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapInteractionMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapInteractionMode;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapItemsControl(::windows::core::IUnknown); -impl MapItemsControl { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ItemsSource(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemsSource)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetItemsSource<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetItemsSource)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Items)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ItemTemplate(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemTemplate)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - 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).SetItemTemplate)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ItemsSourceProperty() -> ::windows::core::Result { - Self::IMapItemsControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemsSourceProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ItemsProperty() -> ::windows::core::Result { - Self::IMapItemsControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ItemTemplateProperty() -> ::windows::core::Result { - Self::IMapItemsControlStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemTemplateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapItemsControlStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapItemsControl { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapItemsControl { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapItemsControl {} -impl ::core::fmt::Debug for MapItemsControl { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapItemsControl").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapItemsControl { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapItemsControl;{94c2c4d3-b335-42c5-b660-e6a07ec3bddc})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapItemsControl { - type Vtable = IMapItemsControl_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapItemsControl { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapItemsControl"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapItemsControl) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapItemsControl> for ::windows::core::IUnknown { - fn from(value: &MapItemsControl) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapItemsControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapItemsControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapItemsControl) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapItemsControl> for ::windows::core::IInspectable { - fn from(value: &MapItemsControl) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapItemsControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapItemsControl { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapItemsControl) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapItemsControl> for super::super::DependencyObject { - fn from(value: &MapItemsControl) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapItemsControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapItemsControl { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapItemsControl {} -unsafe impl ::core::marker::Sync for MapItemsControl {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapLayer(::windows::core::IUnknown); -impl MapLayer { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapTabIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MapTabIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetMapTabIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMapTabIndex)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Visible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Visible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetZIndex)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IMapLayerFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IMapLayerFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MapTabIndexProperty() -> ::windows::core::Result { - Self::IMapLayerStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MapTabIndexProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn VisibleProperty() -> ::windows::core::Result { - Self::IMapLayerStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).VisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZIndexProperty() -> ::windows::core::Result { - Self::IMapLayerStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ZIndexProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapLayerFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapLayerStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapLayer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapLayer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapLayer {} -impl ::core::fmt::Debug for MapLayer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapLayer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapLayer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapLayer;{6d0ff9c1-a14d-4f97-8f57-46715b57683a})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapLayer { - type Vtable = IMapLayer_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapLayer { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapLayer"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapLayer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapLayer> for ::windows::core::IUnknown { - fn from(value: &MapLayer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapLayer) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapLayer> for ::windows::core::IInspectable { - fn from(value: &MapLayer) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapLayer { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapLayer) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapLayer> for super::super::DependencyObject { - fn from(value: &MapLayer) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapLayer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapLayer { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapLayer {} -unsafe impl ::core::marker::Sync for MapLayer {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapLoadingStatus(pub i32); -impl MapLoadingStatus { - pub const Loading: Self = Self(0i32); - pub const Loaded: Self = Self(1i32); - pub const DataUnavailable: Self = Self(2i32); - pub const DownloadedMapsManagerUnavailable: Self = Self(3i32); -} -impl ::core::marker::Copy for MapLoadingStatus {} -impl ::core::clone::Clone for MapLoadingStatus { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapLoadingStatus { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapLoadingStatus { - type Abi = Self; -} -impl ::core::fmt::Debug for MapLoadingStatus { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapLoadingStatus").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapLoadingStatus { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapLoadingStatus;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapModel3D(::windows::core::IUnknown); -impl MapModel3D { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IMapModel3DFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IMapModel3DFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`, `\"Storage_Streams\"`*"] - #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] - pub fn CreateFrom3MFAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Storage::Streams::IRandomAccessStreamReference>>(source: Param0) -> ::windows::core::Result> { - Self::IMapModel3DStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFrom3MFAsync)(::windows::core::Interface::as_raw(this), source.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`, `\"Storage_Streams\"`*"] - #[cfg(all(feature = "Foundation", feature = "Storage_Streams"))] - pub fn CreateFrom3MFWithShadingOptionAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Storage::Streams::IRandomAccessStreamReference>>(source: Param0, shadingoption: MapModel3DShadingOption) -> ::windows::core::Result> { - Self::IMapModel3DStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFrom3MFWithShadingOptionAsync)(::windows::core::Interface::as_raw(this), source.into_param().abi(), shadingoption, result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc(hidden)] - pub fn IMapModel3DFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapModel3DStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapModel3D { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapModel3D { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapModel3D {} -impl ::core::fmt::Debug for MapModel3D { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapModel3D").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapModel3D { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapModel3D;{f8c541a1-ca27-4968-a2bf-9c20f06a0468})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapModel3D { - type Vtable = IMapModel3D_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapModel3D { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapModel3D"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapModel3D) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapModel3D> for ::windows::core::IUnknown { - fn from(value: &MapModel3D) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapModel3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapModel3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapModel3D) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapModel3D> for ::windows::core::IInspectable { - fn from(value: &MapModel3D) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapModel3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapModel3D { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapModel3D) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapModel3D> for super::super::DependencyObject { - fn from(value: &MapModel3D) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapModel3D { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapModel3D { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapModel3D {} -unsafe impl ::core::marker::Sync for MapModel3D {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapModel3DShadingOption(pub i32); -impl MapModel3DShadingOption { - pub const Default: Self = Self(0i32); - pub const Flat: Self = Self(1i32); - pub const Smooth: Self = Self(2i32); -} -impl ::core::marker::Copy for MapModel3DShadingOption {} -impl ::core::clone::Clone for MapModel3DShadingOption { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapModel3DShadingOption { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapModel3DShadingOption { - type Abi = Self; -} -impl ::core::fmt::Debug for MapModel3DShadingOption { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapModel3DShadingOption").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapModel3DShadingOption { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapModel3DShadingOption;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapPanInteractionMode(pub i32); -impl MapPanInteractionMode { - pub const Auto: Self = Self(0i32); - pub const Disabled: Self = Self(1i32); -} -impl ::core::marker::Copy for MapPanInteractionMode {} -impl ::core::clone::Clone for MapPanInteractionMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapPanInteractionMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapPanInteractionMode { - type Abi = Self; -} -impl ::core::fmt::Debug for MapPanInteractionMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapPanInteractionMode").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapPanInteractionMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapPanInteractionMode;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapPolygon(::windows::core::IUnknown); -impl MapPolygon { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Path(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Path)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn SetPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopath>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPath)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StrokeColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStrokeColor<'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).SetStrokeColor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeThickness(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StrokeThickness)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStrokeThickness(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetStrokeThickness)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeDashed(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StrokeDashed)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStrokeDashed(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetStrokeDashed)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FillColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FillColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetFillColor<'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).SetFillColor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation_Collections\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Paths)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PathProperty() -> ::windows::core::Result { - Self::IMapPolygonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PathProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeThicknessProperty() -> ::windows::core::Result { - Self::IMapPolygonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StrokeThicknessProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeDashedProperty() -> ::windows::core::Result { - Self::IMapPolygonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StrokeDashedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapPolygonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapPolygon { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapPolygon { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapPolygon {} -impl ::core::fmt::Debug for MapPolygon { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapPolygon").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapPolygon { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapPolygon;{abda2285-4926-4c3a-a5f9-19df7f69db3d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapPolygon { - type Vtable = IMapPolygon_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapPolygon { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapPolygon"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapPolygon) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapPolygon> for ::windows::core::IUnknown { - fn from(value: &MapPolygon) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapPolygon) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapPolygon> for ::windows::core::IInspectable { - fn from(value: &MapPolygon) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapElement { - fn from(value: MapPolygon) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapPolygon> for MapElement { - fn from(value: &MapPolygon) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for &MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapPolygon) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapPolygon> for super::super::DependencyObject { - fn from(value: &MapPolygon) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapPolygon { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapPolygon {} -unsafe impl ::core::marker::Sync for MapPolygon {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapPolyline(::windows::core::IUnknown); -impl MapPolyline { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Path(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Path)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn SetPath<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopath>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPath)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StrokeColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStrokeColor<'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).SetStrokeColor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeThickness(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StrokeThickness)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStrokeThickness(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetStrokeThickness)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeDashed(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StrokeDashed)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStrokeDashed(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetStrokeDashed)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PathProperty() -> ::windows::core::Result { - Self::IMapPolylineStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PathProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StrokeDashedProperty() -> ::windows::core::Result { - Self::IMapPolylineStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).StrokeDashedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapPolylineStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapPolyline { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapPolyline { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapPolyline {} -impl ::core::fmt::Debug for MapPolyline { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapPolyline").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapPolyline { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapPolyline;{fbad24a2-24df-4a86-8ffa-0f8f4d9ec17d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapPolyline { - type Vtable = IMapPolyline_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapPolyline { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapPolyline"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapPolyline) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapPolyline> for ::windows::core::IUnknown { - fn from(value: &MapPolyline) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapPolyline) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapPolyline> for ::windows::core::IInspectable { - fn from(value: &MapPolyline) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapElement { - fn from(value: MapPolyline) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapPolyline> for MapElement { - fn from(value: &MapPolyline) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapElement> for &MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, MapElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapPolyline) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapPolyline> for super::super::DependencyObject { - fn from(value: &MapPolyline) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapPolyline { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapPolyline {} -unsafe impl ::core::marker::Sync for MapPolyline {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapProjection(pub i32); -impl MapProjection { - pub const WebMercator: Self = Self(0i32); - pub const Globe: Self = Self(1i32); -} -impl ::core::marker::Copy for MapProjection {} -impl ::core::clone::Clone for MapProjection { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapProjection { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapProjection { - type Abi = Self; -} -impl ::core::fmt::Debug for MapProjection { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapProjection").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapProjection { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapProjection;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapRightTappedEventArgs(::windows::core::IUnknown); -impl MapRightTappedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapRightTappedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapRightTappedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapRightTappedEventArgs {} -impl ::core::fmt::Debug for MapRightTappedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapRightTappedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapRightTappedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapRightTappedEventArgs;{20943171-6fe8-40a6-ad0e-297379b575a7})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapRightTappedEventArgs { - type Vtable = IMapRightTappedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapRightTappedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapRightTappedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapRightTappedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapRightTappedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapRightTappedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapRightTappedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapRightTappedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapRightTappedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapRightTappedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapRightTappedEventArgs {} -unsafe impl ::core::marker::Sync for MapRightTappedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapRouteView(::windows::core::IUnknown); -impl MapRouteView { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RouteColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).RouteColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetRouteColor<'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).SetRouteColor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn OutlineColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OutlineColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetOutlineColor<'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).SetOutlineColor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Services_Maps\"`*"] - #[cfg(feature = "Services_Maps")] - pub fn Route(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Route)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Services_Maps\"`*"] - #[cfg(feature = "Services_Maps")] - pub fn CreateInstanceWithMapRoute<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Services::Maps::MapRoute>>(route: Param0) -> ::windows::core::Result { - Self::IMapRouteViewFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithMapRoute)(::windows::core::Interface::as_raw(this), route.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Services_Maps\"`*"] - #[cfg(feature = "Services_Maps")] - pub fn CreateInstanceWithMapRoute_compose<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Services::Maps::MapRoute>, T: ::windows::core::Compose>(route: Param0, compose: T) -> ::windows::core::Result { - Self::IMapRouteViewFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithMapRoute)(::windows::core::Interface::as_raw(this), route.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapRouteViewFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapRouteView { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapRouteView { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapRouteView {} -impl ::core::fmt::Debug for MapRouteView { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapRouteView").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapRouteView { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapRouteView;{740eaec5-bacc-41e1-a67e-dd6513832049})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapRouteView { - type Vtable = IMapRouteView_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapRouteView { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapRouteView"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapRouteView) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapRouteView> for ::windows::core::IUnknown { - fn from(value: &MapRouteView) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapRouteView { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapRouteView { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapRouteView) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapRouteView> for ::windows::core::IInspectable { - fn from(value: &MapRouteView) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapRouteView { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapRouteView { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapRouteView) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapRouteView> for super::super::DependencyObject { - fn from(value: &MapRouteView) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapRouteView { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapRouteView { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapRouteView {} -unsafe impl ::core::marker::Sync for MapRouteView {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapScene(::windows::core::IUnknown); -impl MapScene { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TargetCamera(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TargetCamera)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn TargetCameraChanged<'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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TargetCameraChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveTargetCameraChanged<'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).RemoveTargetCameraChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateFromBoundingBox<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>>(bounds: Param0) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromBoundingBox)(::windows::core::Interface::as_raw(this), bounds.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateFromBoundingBoxWithHeadingAndPitch<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>>(bounds: Param0, headingindegrees: f64, pitchindegrees: f64) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromBoundingBoxWithHeadingAndPitch)(::windows::core::Interface::as_raw(this), bounds.into_param().abi(), headingindegrees, pitchindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateFromCamera<'a, Param0: ::windows::core::IntoParam<'a, MapCamera>>(camera: Param0) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromCamera)(::windows::core::Interface::as_raw(this), camera.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateFromLocation<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromLocation)(::windows::core::Interface::as_raw(this), location.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateFromLocationWithHeadingAndPitch<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0, headingindegrees: f64, pitchindegrees: f64) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromLocationWithHeadingAndPitch)(::windows::core::Interface::as_raw(this), location.into_param().abi(), headingindegrees, pitchindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateFromLocationAndRadius<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0, radiusinmeters: f64) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromLocationAndRadius)(::windows::core::Interface::as_raw(this), location.into_param().abi(), radiusinmeters, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateFromLocationAndRadiusWithHeadingAndPitch<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0, radiusinmeters: f64, headingindegrees: f64, pitchindegrees: f64) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromLocationAndRadiusWithHeadingAndPitch)(::windows::core::Interface::as_raw(this), location.into_param().abi(), radiusinmeters, headingindegrees, pitchindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation_Collections\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] - pub fn CreateFromLocations<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IIterable>>(locations: Param0) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromLocations)(::windows::core::Interface::as_raw(this), locations.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation_Collections\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation_Collections"))] - pub fn CreateFromLocationsWithHeadingAndPitch<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IIterable>>(locations: Param0, headingindegrees: f64, pitchindegrees: f64) -> ::windows::core::Result { - Self::IMapSceneStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateFromLocationsWithHeadingAndPitch)(::windows::core::Interface::as_raw(this), locations.into_param().abi(), headingindegrees, pitchindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapSceneStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapScene { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapScene { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapScene {} -impl ::core::fmt::Debug for MapScene { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapScene").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapScene { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapScene;{8bba10a9-50e7-482c-9789-c688b178ac24})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapScene { - type Vtable = IMapScene_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapScene { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapScene"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapScene) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapScene> for ::windows::core::IUnknown { - fn from(value: &MapScene) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapScene { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapScene { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapScene) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapScene> for ::windows::core::IInspectable { - fn from(value: &MapScene) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapScene { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapScene { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapScene) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapScene> for super::super::DependencyObject { - fn from(value: &MapScene) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapScene { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapScene { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapScene {} -unsafe impl ::core::marker::Sync for MapScene {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapStyle(pub i32); -impl MapStyle { - pub const None: Self = Self(0i32); - pub const Road: Self = Self(1i32); - pub const Aerial: Self = Self(2i32); - pub const AerialWithRoads: Self = Self(3i32); - pub const Terrain: Self = Self(4i32); - pub const Aerial3D: Self = Self(5i32); - pub const Aerial3DWithRoads: Self = Self(6i32); - pub const Custom: Self = Self(7i32); -} -impl ::core::marker::Copy for MapStyle {} -impl ::core::clone::Clone for MapStyle { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapStyle { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapStyle { - type Abi = Self; -} -impl ::core::fmt::Debug for MapStyle { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapStyle").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapStyle { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapStyle;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapStyleSheet(::windows::core::IUnknown); -impl MapStyleSheet { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Aerial() -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Aerial)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AerialWithOverlay() -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AerialWithOverlay)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RoadLight() -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RoadLight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RoadDark() -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RoadDark)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RoadHighContrastLight() -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RoadHighContrastLight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RoadHighContrastDark() -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RoadHighContrastDark)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn Combine<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Collections::IIterable>>(stylesheets: Param0) -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Combine)(::windows::core::Interface::as_raw(this), stylesheets.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ParseFromJson<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(styleasjson: Param0) -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ParseFromJson)(::windows::core::Interface::as_raw(this), styleasjson.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TryParseFromJson<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::HSTRING>>(styleasjson: Param0, stylesheet: &mut ::core::option::Option) -> ::windows::core::Result { - Self::IMapStyleSheetStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TryParseFromJson)(::windows::core::Interface::as_raw(this), styleasjson.into_param().abi(), stylesheet as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapStyleSheetStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapStyleSheet { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapStyleSheet { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapStyleSheet {} -impl ::core::fmt::Debug for MapStyleSheet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapStyleSheet").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapStyleSheet { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapStyleSheet;{ae54b2bf-8991-42ed-8d58-20473deede1d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapStyleSheet { - type Vtable = IMapStyleSheet_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapStyleSheet { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapStyleSheet"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapStyleSheet) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapStyleSheet> for ::windows::core::IUnknown { - fn from(value: &MapStyleSheet) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapStyleSheet { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapStyleSheet { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapStyleSheet) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapStyleSheet> for ::windows::core::IInspectable { - fn from(value: &MapStyleSheet) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapStyleSheet { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapStyleSheet { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapStyleSheet) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapStyleSheet> for super::super::DependencyObject { - fn from(value: &MapStyleSheet) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapStyleSheet { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapStyleSheet { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapStyleSheet {} -unsafe impl ::core::marker::Sync for MapStyleSheet {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -pub struct MapStyleSheetEntries; -impl MapStyleSheetEntries { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Area() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Area)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Airport() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Airport)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Cemetery() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Cemetery)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Continent() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Continent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Education() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Education)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IndigenousPeoplesReserve() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).IndigenousPeoplesReserve)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Island() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Island)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Medical() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Medical)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Military() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Military)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Nautical() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Nautical)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Neighborhood() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Neighborhood)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Runway() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Runway)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Sand() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Sand)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ShoppingCenter() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).ShoppingCenter)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Stadium() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Stadium)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Vegetation() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Vegetation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Forest() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Forest)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn GolfCourse() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GolfCourse)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Park() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Park)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PlayingField() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).PlayingField)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Reserve() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Reserve)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Point() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Point)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn NaturalPoint() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).NaturalPoint)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Peak() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Peak)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn VolcanicPeak() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).VolcanicPeak)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn WaterPoint() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WaterPoint)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PointOfInterest() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).PointOfInterest)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Business() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Business)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FoodPoint() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).FoodPoint)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn PopulatedPlace() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).PopulatedPlace)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Capital() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Capital)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AdminDistrictCapital() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).AdminDistrictCapital)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CountryRegionCapital() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).CountryRegionCapital)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RoadShield() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).RoadShield)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RoadExit() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).RoadExit)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Transit() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Transit)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Political() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Political)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CountryRegion() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).CountryRegion)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AdminDistrict() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).AdminDistrict)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn District() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).District)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Structure() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Structure)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Building() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Building)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn EducationBuilding() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).EducationBuilding)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MedicalBuilding() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).MedicalBuilding)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TransitBuilding() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).TransitBuilding)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Transportation() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Transportation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Road() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Road)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ControlledAccessHighway() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).ControlledAccessHighway)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn HighSpeedRamp() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).HighSpeedRamp)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Highway() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Highway)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn MajorRoad() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).MajorRoad)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ArterialRoad() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).ArterialRoad)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Street() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Street)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Ramp() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Ramp)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn UnpavedStreet() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).UnpavedStreet)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TollRoad() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).TollRoad)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Railway() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Railway)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Trail() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Trail)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn WaterRoute() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WaterRoute)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Water() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Water)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn River() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).River)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn RouteLine() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).RouteLine)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn WalkingRoute() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WalkingRoute)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DrivingRoute() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntriesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).DrivingRoute)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc(hidden)] - pub fn IMapStyleSheetEntriesStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::windows::core::RuntimeName for MapStyleSheetEntries { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapStyleSheetEntries"; -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -pub struct MapStyleSheetEntryStates; -impl MapStyleSheetEntryStates { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Disabled() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntryStatesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Disabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Hover() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntryStatesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Hover)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Selected() -> ::windows::core::Result<::windows::core::HSTRING> { - Self::IMapStyleSheetEntryStatesStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Selected)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc(hidden)] - pub fn IMapStyleSheetEntryStatesStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::windows::core::RuntimeName for MapStyleSheetEntryStates { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapStyleSheetEntryStates"; -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTargetCameraChangedEventArgs(::windows::core::IUnknown); -impl MapTargetCameraChangedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Camera(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Camera)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ChangeReason(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ChangeReason)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapTargetCameraChangedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTargetCameraChangedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTargetCameraChangedEventArgs {} -impl ::core::fmt::Debug for MapTargetCameraChangedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTargetCameraChangedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTargetCameraChangedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs;{dbf00472-e953-4fa8-97d0-ea86359057cf})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTargetCameraChangedEventArgs { - type Vtable = IMapTargetCameraChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTargetCameraChangedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTargetCameraChangedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTargetCameraChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTargetCameraChangedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapTargetCameraChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTargetCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTargetCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTargetCameraChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTargetCameraChangedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapTargetCameraChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTargetCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTargetCameraChangedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapTargetCameraChangedEventArgs {} -unsafe impl ::core::marker::Sync for MapTargetCameraChangedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapTileAnimationState(pub i32); -impl MapTileAnimationState { - pub const Stopped: Self = Self(0i32); - pub const Paused: Self = Self(1i32); - pub const Playing: Self = Self(2i32); -} -impl ::core::marker::Copy for MapTileAnimationState {} -impl ::core::clone::Clone for MapTileAnimationState { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapTileAnimationState { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapTileAnimationState { - type Abi = Self; -} -impl ::core::fmt::Debug for MapTileAnimationState { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileAnimationState").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileAnimationState { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapTileAnimationState;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileBitmapRequest(::windows::core::IUnknown); -impl MapTileBitmapRequest { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Storage_Streams\"`*"] - #[cfg(feature = "Storage_Streams")] - pub fn PixelData(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PixelData)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Storage_Streams\"`*"] - #[cfg(feature = "Storage_Streams")] - pub fn SetPixelData<'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).SetPixelData)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn GetDeferral(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetDeferral)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapTileBitmapRequest { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileBitmapRequest { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileBitmapRequest {} -impl ::core::fmt::Debug for MapTileBitmapRequest { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileBitmapRequest").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileBitmapRequest { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequest;{46733fbc-d89d-472b-b5f6-d7066b0584f4})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileBitmapRequest { - type Vtable = IMapTileBitmapRequest_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileBitmapRequest { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequest"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileBitmapRequest) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileBitmapRequest> for ::windows::core::IUnknown { - fn from(value: &MapTileBitmapRequest) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileBitmapRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileBitmapRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileBitmapRequest) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileBitmapRequest> for ::windows::core::IInspectable { - fn from(value: &MapTileBitmapRequest) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileBitmapRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileBitmapRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapTileBitmapRequest {} -unsafe impl ::core::marker::Sync for MapTileBitmapRequest {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileBitmapRequestDeferral(::windows::core::IUnknown); -impl MapTileBitmapRequestDeferral { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Complete(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Complete)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::clone::Clone for MapTileBitmapRequestDeferral { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileBitmapRequestDeferral { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileBitmapRequestDeferral {} -impl ::core::fmt::Debug for MapTileBitmapRequestDeferral { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileBitmapRequestDeferral").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileBitmapRequestDeferral { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequestDeferral;{fe370542-a4ac-4efa-9665-0490b0cafdd2})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileBitmapRequestDeferral { - type Vtable = IMapTileBitmapRequestDeferral_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileBitmapRequestDeferral { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequestDeferral"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileBitmapRequestDeferral) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileBitmapRequestDeferral> for ::windows::core::IUnknown { - fn from(value: &MapTileBitmapRequestDeferral) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileBitmapRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileBitmapRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileBitmapRequestDeferral) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileBitmapRequestDeferral> for ::windows::core::IInspectable { - fn from(value: &MapTileBitmapRequestDeferral) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileBitmapRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileBitmapRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapTileBitmapRequestDeferral {} -unsafe impl ::core::marker::Sync for MapTileBitmapRequestDeferral {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileBitmapRequestedEventArgs(::windows::core::IUnknown); -impl MapTileBitmapRequestedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn X(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).X)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Y(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Y)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomLevel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Request(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Request)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FrameIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FrameIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapTileBitmapRequestedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileBitmapRequestedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileBitmapRequestedEventArgs {} -impl ::core::fmt::Debug for MapTileBitmapRequestedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileBitmapRequestedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileBitmapRequestedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequestedEventArgs;{337f691d-9b02-4aa2-8b1e-cc4d91719bf3})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileBitmapRequestedEventArgs { - type Vtable = IMapTileBitmapRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileBitmapRequestedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileBitmapRequestedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileBitmapRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileBitmapRequestedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapTileBitmapRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileBitmapRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileBitmapRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileBitmapRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileBitmapRequestedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapTileBitmapRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileBitmapRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileBitmapRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapTileBitmapRequestedEventArgs {} -unsafe impl ::core::marker::Sync for MapTileBitmapRequestedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileDataSource(::windows::core::IUnknown); -impl MapTileDataSource { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IMapTileDataSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IMapTileDataSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapTileDataSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapTileDataSource { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileDataSource { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileDataSource {} -impl ::core::fmt::Debug for MapTileDataSource { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileDataSource").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileDataSource { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileDataSource;{c03d9f5e-be1f-4c69-9969-79467a513c38})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileDataSource { - type Vtable = IMapTileDataSource_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileDataSource { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileDataSource"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileDataSource> for ::windows::core::IUnknown { - fn from(value: &MapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileDataSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileDataSource> for ::windows::core::IInspectable { - fn from(value: &MapTileDataSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapTileDataSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapTileDataSource> for super::super::DependencyObject { - fn from(value: &MapTileDataSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapTileDataSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapTileDataSource {} -unsafe impl ::core::marker::Sync for MapTileDataSource {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapTileLayer(pub i32); -impl MapTileLayer { - pub const LabelOverlay: Self = Self(0i32); - pub const RoadOverlay: Self = Self(1i32); - pub const AreaOverlay: Self = Self(2i32); - pub const BackgroundOverlay: Self = Self(3i32); - pub const BackgroundReplacement: Self = Self(4i32); -} -impl ::core::marker::Copy for MapTileLayer {} -impl ::core::clone::Clone for MapTileLayer { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapTileLayer { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapTileLayer { - type Abi = Self; -} -impl ::core::fmt::Debug for MapTileLayer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileLayer").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileLayer { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapTileLayer;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileSource(::windows::core::IUnknown); -impl MapTileSource { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DataSource(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DataSource)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetDataSource<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDataSource)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Layer(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Layer)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetLayer(&self, value: MapTileLayer) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetLayer)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomLevelRange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevelRange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetZoomLevelRange<'a, Param0: ::windows::core::IntoParam<'a, MapZoomLevelRange>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetZoomLevelRange)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Bounds(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Bounds)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn SetBounds<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetBounds)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AllowOverstretch(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AllowOverstretch)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetAllowOverstretch(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetAllowOverstretch)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsFadingEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsFadingEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetIsFadingEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsFadingEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsTransparencyEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsTransparencyEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetIsTransparencyEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsTransparencyEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsRetryEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsRetryEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetIsRetryEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsRetryEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetZIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetZIndex)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TilePixelSize(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).TilePixelSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetTilePixelSize(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetTilePixelSize)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Visible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Visible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AnimationState(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AnimationState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AutoPlay(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AutoPlay)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetAutoPlay(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetAutoPlay)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FrameCount(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FrameCount)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetFrameCount(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetFrameCount)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn FrameDuration(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FrameDuration)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn SetFrameDuration<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::TimeSpan>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetFrameDuration)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Pause(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).Pause)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Play(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).Play)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Stop(&self) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).Stop)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithDataSource<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>>(datasource: Param0) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSource)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithDataSource_compose<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>, T: ::windows::core::Compose>(datasource: Param0, compose: T) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSource)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithDataSourceAndZoomRange<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>, Param1: ::windows::core::IntoParam<'a, MapZoomLevelRange>>(datasource: Param0, zoomlevelrange: Param1) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSourceAndZoomRange)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), zoomlevelrange.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithDataSourceAndZoomRange_compose<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>, Param1: ::windows::core::IntoParam<'a, MapZoomLevelRange>, T: ::windows::core::Compose>(datasource: Param0, zoomlevelrange: Param1, compose: T) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSourceAndZoomRange)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), zoomlevelrange.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithDataSourceZoomRangeAndBounds<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>, Param1: ::windows::core::IntoParam<'a, MapZoomLevelRange>, Param2: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>>(datasource: Param0, zoomlevelrange: Param1, bounds: Param2) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSourceZoomRangeAndBounds)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), zoomlevelrange.into_param().abi(), bounds.into_param().abi(), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithDataSourceZoomRangeAndBounds_compose<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>, Param1: ::windows::core::IntoParam<'a, MapZoomLevelRange>, Param2: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>, T: ::windows::core::Compose>(datasource: Param0, zoomlevelrange: Param1, bounds: Param2, compose: T) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSourceZoomRangeAndBounds)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), zoomlevelrange.into_param().abi(), bounds.into_param().abi(), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>, Param1: ::windows::core::IntoParam<'a, MapZoomLevelRange>, Param2: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>>(datasource: Param0, zoomlevelrange: Param1, bounds: Param2, tilesizeinpixels: i32) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), zoomlevelrange.into_param().abi(), bounds.into_param().abi(), tilesizeinpixels, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize_compose<'a, Param0: ::windows::core::IntoParam<'a, MapTileDataSource>, Param1: ::windows::core::IntoParam<'a, MapZoomLevelRange>, Param2: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::GeoboundingBox>, T: ::windows::core::Compose>(datasource: Param0, zoomlevelrange: Param1, bounds: Param2, tilesizeinpixels: i32, compose: T) -> ::windows::core::Result { - Self::IMapTileSourceFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithDataSourceZoomRangeBoundsAndTileSize)(::windows::core::Interface::as_raw(this), datasource.into_param().abi(), zoomlevelrange.into_param().abi(), bounds.into_param().abi(), tilesizeinpixels, ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn DataSourceProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DataSourceProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn LayerProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LayerProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomLevelRangeProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevelRangeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn BoundsProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).BoundsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AllowOverstretchProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AllowOverstretchProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsFadingEnabledProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsFadingEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsTransparencyEnabledProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsTransparencyEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn IsRetryEnabledProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsRetryEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZIndexProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ZIndexProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn TilePixelSizeProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TilePixelSizeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn VisibleProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).VisibleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AnimationStateProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AnimationStateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AutoPlayProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AutoPlayProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FrameCountProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FrameCountProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FrameDurationProperty() -> ::windows::core::Result { - Self::IMapTileSourceStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FrameDurationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IMapTileSourceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapTileSourceStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IMapTileSourceStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for MapTileSource { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileSource { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileSource {} -impl ::core::fmt::Debug for MapTileSource { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileSource").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileSource { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileSource;{88a76e4e-2fdf-4567-9255-1100519c8d62})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileSource { - type Vtable = IMapTileSource_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileSource { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileSource"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileSource> for ::windows::core::IUnknown { - fn from(value: &MapTileSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileSource) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileSource> for ::windows::core::IInspectable { - fn from(value: &MapTileSource) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileSource { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MapTileSource) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&MapTileSource> for super::super::DependencyObject { - fn from(value: &MapTileSource) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for MapTileSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &MapTileSource { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for MapTileSource {} -unsafe impl ::core::marker::Sync for MapTileSource {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileUriRequest(::windows::core::IUnknown); -impl MapTileUriRequest { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Uri(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Uri)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn SetUri<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Foundation::Uri>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetUri)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn GetDeferral(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetDeferral)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapTileUriRequest { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileUriRequest { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileUriRequest {} -impl ::core::fmt::Debug for MapTileUriRequest { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileUriRequest").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileUriRequest { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileUriRequest;{17402335-3127-45b8-87a7-99f87d4e2745})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileUriRequest { - type Vtable = IMapTileUriRequest_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileUriRequest { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileUriRequest"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileUriRequest) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileUriRequest> for ::windows::core::IUnknown { - fn from(value: &MapTileUriRequest) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileUriRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileUriRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileUriRequest) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileUriRequest> for ::windows::core::IInspectable { - fn from(value: &MapTileUriRequest) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileUriRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileUriRequest { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapTileUriRequest {} -unsafe impl ::core::marker::Sync for MapTileUriRequest {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileUriRequestDeferral(::windows::core::IUnknown); -impl MapTileUriRequestDeferral { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Complete(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Complete)(::windows::core::Interface::as_raw(this)).ok() } - } -} -impl ::core::clone::Clone for MapTileUriRequestDeferral { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileUriRequestDeferral { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileUriRequestDeferral {} -impl ::core::fmt::Debug for MapTileUriRequestDeferral { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileUriRequestDeferral").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileUriRequestDeferral { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileUriRequestDeferral;{c117ade0-bf3e-4c51-8faa-4b593cf68eb2})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileUriRequestDeferral { - type Vtable = IMapTileUriRequestDeferral_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileUriRequestDeferral { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileUriRequestDeferral"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileUriRequestDeferral) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileUriRequestDeferral> for ::windows::core::IUnknown { - fn from(value: &MapTileUriRequestDeferral) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileUriRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileUriRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileUriRequestDeferral) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileUriRequestDeferral> for ::windows::core::IInspectable { - fn from(value: &MapTileUriRequestDeferral) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileUriRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileUriRequestDeferral { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapTileUriRequestDeferral {} -unsafe impl ::core::marker::Sync for MapTileUriRequestDeferral {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct MapTileUriRequestedEventArgs(::windows::core::IUnknown); -impl MapTileUriRequestedEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn X(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).X)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Y(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Y)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomLevel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomLevel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn Request(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Request)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn FrameIndex(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FrameIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MapTileUriRequestedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MapTileUriRequestedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MapTileUriRequestedEventArgs {} -impl ::core::fmt::Debug for MapTileUriRequestedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapTileUriRequestedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapTileUriRequestedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs;{d2147b43-1bbf-4b98-8dd3-b7834e407e0d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MapTileUriRequestedEventArgs { - type Vtable = IMapTileUriRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for MapTileUriRequestedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.MapTileUriRequestedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: MapTileUriRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileUriRequestedEventArgs> for ::windows::core::IUnknown { - fn from(value: &MapTileUriRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for MapTileUriRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a MapTileUriRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MapTileUriRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MapTileUriRequestedEventArgs> for ::windows::core::IInspectable { - fn from(value: &MapTileUriRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for MapTileUriRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a MapTileUriRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for MapTileUriRequestedEventArgs {} -unsafe impl ::core::marker::Sync for MapTileUriRequestedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapVisibleRegionKind(pub i32); -impl MapVisibleRegionKind { - pub const Near: Self = Self(0i32); - pub const Full: Self = Self(1i32); -} -impl ::core::marker::Copy for MapVisibleRegionKind {} -impl ::core::clone::Clone for MapVisibleRegionKind { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapVisibleRegionKind { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapVisibleRegionKind { - type Abi = Self; -} -impl ::core::fmt::Debug for MapVisibleRegionKind { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapVisibleRegionKind").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapVisibleRegionKind { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapVisibleRegionKind;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct MapWatermarkMode(pub i32); -impl MapWatermarkMode { - pub const Automatic: Self = Self(0i32); - pub const On: Self = Self(1i32); -} -impl ::core::marker::Copy for MapWatermarkMode {} -impl ::core::clone::Clone for MapWatermarkMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for MapWatermarkMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for MapWatermarkMode { - type Abi = Self; -} -impl ::core::fmt::Debug for MapWatermarkMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MapWatermarkMode").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for MapWatermarkMode { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Maps.MapWatermarkMode;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[repr(C)] -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -pub struct MapZoomLevelRange { - pub Min: f64, - pub Max: f64, -} -impl ::core::marker::Copy for MapZoomLevelRange {} -impl ::core::clone::Clone for MapZoomLevelRange { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for MapZoomLevelRange { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("MapZoomLevelRange").field("Min", &self.Min).field("Max", &self.Max).finish() - } -} -unsafe impl ::windows::core::Abi for MapZoomLevelRange { - type Abi = Self; -} -unsafe impl ::windows::core::RuntimeType for MapZoomLevelRange { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"struct(Windows.UI.Xaml.Controls.Maps.MapZoomLevelRange;f8;f8)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -impl ::core::cmp::PartialEq for MapZoomLevelRange { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for MapZoomLevelRange {} -impl ::core::default::Default for MapZoomLevelRange { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct StreetsideExperience(::windows::core::IUnknown); -impl StreetsideExperience { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn AddressTextVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AddressTextVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetAddressTextVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetAddressTextVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CursorVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CursorVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetCursorVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCursorVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn OverviewMapVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverviewMapVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetOverviewMapVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetOverviewMapVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn StreetLabelsVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).StreetLabelsVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetStreetLabelsVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetStreetLabelsVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ExitButtonVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExitButtonVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetExitButtonVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetExitButtonVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn ZoomButtonsVisible(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ZoomButtonsVisible)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn SetZoomButtonsVisible(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetZoomButtonsVisible)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithPanorama<'a, Param0: ::windows::core::IntoParam<'a, StreetsidePanorama>>(panorama: Param0) -> ::windows::core::Result { - Self::IStreetsideExperienceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithPanorama)(::windows::core::Interface::as_raw(this), panorama.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] - pub fn CreateInstanceWithPanoramaHeadingPitchAndFieldOfView<'a, Param0: ::windows::core::IntoParam<'a, StreetsidePanorama>>(panorama: Param0, headingindegrees: f64, pitchindegrees: f64, fieldofviewindegrees: f64) -> ::windows::core::Result { - Self::IStreetsideExperienceFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithPanoramaHeadingPitchAndFieldOfView)(::windows::core::Interface::as_raw(this), panorama.into_param().abi(), headingindegrees, pitchindegrees, fieldofviewindegrees, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IStreetsideExperienceFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for StreetsideExperience { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for StreetsideExperience { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for StreetsideExperience {} -impl ::core::fmt::Debug for StreetsideExperience { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("StreetsideExperience").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for StreetsideExperience { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.StreetsideExperience;{a558aec9-e30c-46c8-8116-484691675558})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for StreetsideExperience { - type Vtable = IStreetsideExperience_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for StreetsideExperience { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.StreetsideExperience"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: StreetsideExperience) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&StreetsideExperience> for ::windows::core::IUnknown { - fn from(value: &StreetsideExperience) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: StreetsideExperience) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&StreetsideExperience> for ::windows::core::IInspectable { - fn from(value: &StreetsideExperience) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for MapCustomExperience { - fn from(value: StreetsideExperience) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&StreetsideExperience> for MapCustomExperience { - fn from(value: &StreetsideExperience) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, MapCustomExperience> for StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, MapCustomExperience> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, MapCustomExperience> for &StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, MapCustomExperience> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: StreetsideExperience) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&StreetsideExperience> for super::super::DependencyObject { - fn from(value: &StreetsideExperience) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &StreetsideExperience { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for StreetsideExperience {} -unsafe impl ::core::marker::Sync for StreetsideExperience {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`*"] -#[repr(transparent)] -pub struct StreetsidePanorama(::windows::core::IUnknown); -impl StreetsidePanorama { - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`*"] - #[cfg(feature = "Devices_Geolocation")] - pub fn Location(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Location)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn FindNearbyWithLocationAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0) -> ::windows::core::Result> { - Self::IStreetsidePanoramaStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindNearbyWithLocationAsync)(::windows::core::Interface::as_raw(this), location.into_param().abi(), result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Maps\"`, `\"Devices_Geolocation\"`, `\"Foundation\"`*"] - #[cfg(all(feature = "Devices_Geolocation", feature = "Foundation"))] - pub fn FindNearbyWithLocationAndRadiusAsync<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::super::Devices::Geolocation::Geopoint>>(location: Param0, radiusinmeters: f64) -> ::windows::core::Result> { - Self::IStreetsidePanoramaStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FindNearbyWithLocationAndRadiusAsync)(::windows::core::Interface::as_raw(this), location.into_param().abi(), radiusinmeters, result__.as_mut_ptr()).from_abi::>(result__) - }) - } - #[doc(hidden)] - pub fn IStreetsidePanoramaStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for StreetsidePanorama { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for StreetsidePanorama { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for StreetsidePanorama {} -impl ::core::fmt::Debug for StreetsidePanorama { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("StreetsidePanorama").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for StreetsidePanorama { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Maps.StreetsidePanorama;{6fe00fd8-ad60-4664-b539-b1069f16c5af})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for StreetsidePanorama { - type Vtable = IStreetsidePanorama_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for StreetsidePanorama { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Maps.StreetsidePanorama"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: StreetsidePanorama) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&StreetsidePanorama> for ::windows::core::IUnknown { - fn from(value: &StreetsidePanorama) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for StreetsidePanorama { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a StreetsidePanorama { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: StreetsidePanorama) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&StreetsidePanorama> for ::windows::core::IInspectable { - fn from(value: &StreetsidePanorama) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for StreetsidePanorama { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a StreetsidePanorama { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: StreetsidePanorama) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&StreetsidePanorama> for super::super::DependencyObject { - fn from(value: &StreetsidePanorama) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for StreetsidePanorama { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &StreetsidePanorama { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for StreetsidePanorama {} -unsafe impl ::core::marker::Sync for StreetsidePanorama {} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/impl.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/impl.rs deleted file mode 100644 index 867ac334a4..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/impl.rs +++ /dev/null @@ -1,273 +0,0 @@ -pub trait IFlyoutBaseOverrides_Impl: Sized { - fn CreatePresenter(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFlyoutBaseOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.IFlyoutBaseOverrides"; -} -impl IFlyoutBaseOverrides_Vtbl { - pub const fn new, Impl: IFlyoutBaseOverrides_Impl, const OFFSET: isize>() -> IFlyoutBaseOverrides_Vtbl { - unsafe extern "system" fn CreatePresenter, Impl: IFlyoutBaseOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreatePresenter() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - CreatePresenter: CreatePresenter::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Input")] -pub trait IFlyoutBaseOverrides4_Impl: Sized { - fn OnProcessKeyboardAccelerators(&self, args: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -#[cfg(feature = "UI_Xaml_Input")] -impl ::windows::core::RuntimeName for IFlyoutBaseOverrides4 { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.IFlyoutBaseOverrides4"; -} -#[cfg(feature = "UI_Xaml_Input")] -impl IFlyoutBaseOverrides4_Vtbl { - pub const fn new, Impl: IFlyoutBaseOverrides4_Impl, const OFFSET: isize>() -> IFlyoutBaseOverrides4_Vtbl { - unsafe extern "system" fn OnProcessKeyboardAccelerators, Impl: IFlyoutBaseOverrides4_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnProcessKeyboardAccelerators(::core::mem::transmute(&args)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnProcessKeyboardAccelerators: OnProcessKeyboardAccelerators::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IPickerFlyoutBaseOverrides_Impl: Sized { - fn OnConfirmed(&self) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn ShouldShowConfirmationButtons(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IPickerFlyoutBaseOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.IPickerFlyoutBaseOverrides"; -} -impl IPickerFlyoutBaseOverrides_Vtbl { - pub const fn new, Impl: IPickerFlyoutBaseOverrides_Impl, const OFFSET: isize>() -> IPickerFlyoutBaseOverrides_Vtbl { - unsafe extern "system" fn OnConfirmed, Impl: IPickerFlyoutBaseOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnConfirmed().into() - } - unsafe extern "system" fn ShouldShowConfirmationButtons, Impl: IPickerFlyoutBaseOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ShouldShowConfirmationButtons() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnConfirmed: OnConfirmed::, - ShouldShowConfirmationButtons: ShouldShowConfirmationButtons::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IRangeBaseOverrides_Impl: Sized { - fn OnMinimumChanged(&self, oldminimum: f64, newminimum: f64) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnMaximumChanged(&self, oldmaximum: f64, newmaximum: f64) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnValueChanged(&self, oldvalue: f64, newvalue: f64) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IRangeBaseOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.IRangeBaseOverrides"; -} -impl IRangeBaseOverrides_Vtbl { - pub const fn new, Impl: IRangeBaseOverrides_Impl, const OFFSET: isize>() -> IRangeBaseOverrides_Vtbl { - unsafe extern "system" fn OnMinimumChanged, Impl: IRangeBaseOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldminimum: f64, newminimum: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnMinimumChanged(oldminimum, newminimum).into() - } - unsafe extern "system" fn OnMaximumChanged, Impl: IRangeBaseOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldmaximum: f64, newmaximum: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnMaximumChanged(oldmaximum, newmaximum).into() - } - unsafe extern "system" fn OnValueChanged, Impl: IRangeBaseOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldvalue: f64, newvalue: f64) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnValueChanged(oldvalue, newvalue).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnMinimumChanged: OnMinimumChanged::, - OnMaximumChanged: OnMaximumChanged::, - OnValueChanged: OnValueChanged::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation_Collections")] -pub trait IScrollSnapPointsInfo_Impl: Sized { - fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result; - fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result; - fn HorizontalSnapPointsChanged(&self, handler: &::core::option::Option>) -> ::windows::core::Result; - fn RemoveHorizontalSnapPointsChanged(&self, token: &super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()>; - fn VerticalSnapPointsChanged(&self, handler: &::core::option::Option>) -> ::windows::core::Result; - fn RemoveVerticalSnapPointsChanged(&self, token: &super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::Result<()>; - fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result>; - fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result; -} -#[cfg(feature = "Foundation_Collections")] -impl ::windows::core::RuntimeName for IScrollSnapPointsInfo { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.IScrollSnapPointsInfo"; -} -#[cfg(feature = "Foundation_Collections")] -impl IScrollSnapPointsInfo_Vtbl { - pub const fn new, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>() -> IScrollSnapPointsInfo_Vtbl { - unsafe extern "system" fn AreHorizontalSnapPointsRegular, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.AreHorizontalSnapPointsRegular() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn AreVerticalSnapPointsRegular, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.AreVerticalSnapPointsRegular() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn HorizontalSnapPointsChanged, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.HorizontalSnapPointsChanged(::core::mem::transmute(&handler)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RemoveHorizontalSnapPointsChanged, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveHorizontalSnapPointsChanged(::core::mem::transmute(&token)).into() - } - unsafe extern "system" fn VerticalSnapPointsChanged, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.VerticalSnapPointsChanged(::core::mem::transmute(&handler)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RemoveVerticalSnapPointsChanged, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveVerticalSnapPointsChanged(::core::mem::transmute(&token)).into() - } - unsafe extern "system" fn GetIrregularSnapPoints, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, orientation: super::Orientation, alignment: SnapPointsAlignment, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetIrregularSnapPoints(orientation, alignment) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetRegularSnapPoints, Impl: IScrollSnapPointsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: *mut f32, result__: *mut f32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetRegularSnapPoints(orientation, alignment, ::core::mem::transmute_copy(&offset)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - AreHorizontalSnapPointsRegular: AreHorizontalSnapPointsRegular::, - AreVerticalSnapPointsRegular: AreVerticalSnapPointsRegular::, - HorizontalSnapPointsChanged: HorizontalSnapPointsChanged::, - RemoveHorizontalSnapPointsChanged: RemoveHorizontalSnapPointsChanged::, - VerticalSnapPointsChanged: VerticalSnapPointsChanged::, - RemoveVerticalSnapPointsChanged: RemoveVerticalSnapPointsChanged::, - GetIrregularSnapPoints: GetIrregularSnapPoints::, - GetRegularSnapPoints: GetRegularSnapPoints::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IToggleButtonOverrides_Impl: Sized { - fn OnToggle(&self) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IToggleButtonOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.IToggleButtonOverrides"; -} -impl IToggleButtonOverrides_Vtbl { - pub const fn new, Impl: IToggleButtonOverrides_Impl, const OFFSET: isize>() -> IToggleButtonOverrides_Vtbl { - unsafe extern "system" fn OnToggle, Impl: IToggleButtonOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnToggle().into() - } - Self { base__: ::windows::core::IInspectableVtbl::new::(), OnToggle: OnToggle:: } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/mod.rs deleted file mode 100644 index b8f630275f..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/Primitives/mod.rs +++ /dev/null @@ -1,18594 +0,0 @@ -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct AnimationDirection(pub i32); -impl AnimationDirection { - pub const Left: Self = Self(0i32); - pub const Top: Self = Self(1i32); - pub const Right: Self = Self(2i32); - pub const Bottom: Self = Self(3i32); -} -impl ::core::marker::Copy for AnimationDirection {} -impl ::core::clone::Clone for AnimationDirection { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for AnimationDirection { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for AnimationDirection { - type Abi = Self; -} -impl ::core::fmt::Debug for AnimationDirection { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AnimationDirection").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AnimationDirection { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"enum(Windows.UI.Xaml.Controls.Primitives.AnimationDirection;i4)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct AppBarButtonTemplateSettings(::windows::core::IUnknown); -impl AppBarButtonTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn KeyboardAcceleratorTextMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).KeyboardAcceleratorTextMinWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for AppBarButtonTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBarButtonTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBarButtonTemplateSettings {} -impl ::core::fmt::Debug for AppBarButtonTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBarButtonTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBarButtonTemplateSettings { - type Vtable = IAppBarButtonTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AppBarButtonTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.AppBarButtonTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AppBarButtonTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarButtonTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &AppBarButtonTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarButtonTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarButtonTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &AppBarButtonTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AppBarButtonTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarButtonTemplateSettings> for super::super::DependencyObject { - fn from(value: &AppBarButtonTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AppBarButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AppBarButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AppBarButtonTemplateSettings {} -unsafe impl ::core::marker::Sync for AppBarButtonTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct AppBarTemplateSettings(::windows::core::IUnknown); -impl AppBarTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn ClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ClipRect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CompactVerticalDelta(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CompactVerticalDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CompactRootMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CompactRootMargin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinimalVerticalDelta(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinimalVerticalDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinimalRootMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinimalRootMargin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HiddenVerticalDelta(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HiddenVerticalDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HiddenRootMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HiddenRootMargin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NegativeCompactVerticalDelta(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NegativeCompactVerticalDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NegativeMinimalVerticalDelta(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NegativeMinimalVerticalDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NegativeHiddenVerticalDelta(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NegativeHiddenVerticalDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for AppBarTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBarTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBarTemplateSettings {} -impl ::core::fmt::Debug for AppBarTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBarTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBarTemplateSettings { - type Vtable = IAppBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AppBarTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.AppBarTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AppBarTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &AppBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &AppBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AppBarTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarTemplateSettings> for super::super::DependencyObject { - fn from(value: &AppBarTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AppBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AppBarTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AppBarTemplateSettings {} -unsafe impl ::core::marker::Sync for AppBarTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct AppBarToggleButtonTemplateSettings(::windows::core::IUnknown); -impl AppBarToggleButtonTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn KeyboardAcceleratorTextMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).KeyboardAcceleratorTextMinWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for AppBarToggleButtonTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBarToggleButtonTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBarToggleButtonTemplateSettings {} -impl ::core::fmt::Debug for AppBarToggleButtonTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBarToggleButtonTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBarToggleButtonTemplateSettings { - type Vtable = IAppBarToggleButtonTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AppBarToggleButtonTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.AppBarToggleButtonTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AppBarToggleButtonTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarToggleButtonTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &AppBarToggleButtonTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AppBarToggleButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AppBarToggleButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarToggleButtonTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarToggleButtonTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &AppBarToggleButtonTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AppBarToggleButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AppBarToggleButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: AppBarToggleButtonTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarToggleButtonTemplateSettings> for super::super::DependencyObject { - fn from(value: &AppBarToggleButtonTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for AppBarToggleButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &AppBarToggleButtonTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for AppBarToggleButtonTemplateSettings {} -unsafe impl ::core::marker::Sync for AppBarToggleButtonTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ButtonBase(::windows::core::IUnknown); -impl ButtonBase { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ClickMode(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ClickMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetClickMode(&self, value: super::ClickMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetClickMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsPointerOver(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsPointerOver)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsPressed(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsPressed)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Input\"`*"] - #[cfg(feature = "UI_Xaml_Input")] - pub fn Command(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Command)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Input\"`*"] - #[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 = self; - unsafe { (::windows::core::Interface::vtable(this).SetCommand)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CommandParameter(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CommandParameter)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetCommandParameter<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCommandParameter)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Click<'a, Param0: ::windows::core::IntoParam<'a, super::super::RoutedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Click)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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 = self; - unsafe { (::windows::core::Interface::vtable(this).RemoveClick)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ClickModeProperty() -> ::windows::core::Result { - Self::IButtonBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ClickModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsPointerOverProperty() -> ::windows::core::Result { - Self::IButtonBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsPointerOverProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsPressedProperty() -> ::windows::core::Result { - Self::IButtonBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsPressedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CommandProperty() -> ::windows::core::Result { - Self::IButtonBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CommandProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CommandParameterProperty() -> ::windows::core::Result { - Self::IButtonBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CommandParameterProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IButtonBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ButtonBase { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ButtonBase { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ButtonBase {} -impl ::core::fmt::Debug for ButtonBase { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ButtonBase").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ButtonBase { - type Vtable = IButtonBase_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ButtonBase> for ::windows::core::IUnknown { - fn from(value: &ButtonBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ButtonBase) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ButtonBase> for ::windows::core::IInspectable { - fn from(value: &ButtonBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: ButtonBase) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBase> for super::ContentControl { - fn from(value: &ButtonBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for ButtonBase { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: ButtonBase) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBase> for super::Control { - fn from(value: &ButtonBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for ButtonBase { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ButtonBase) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBase> for super::super::FrameworkElement { - fn from(value: &ButtonBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ButtonBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ButtonBase) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBase> for super::super::UIElement { - fn from(value: &ButtonBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ButtonBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ButtonBase) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ButtonBase> for super::super::DependencyObject { - fn from(value: &ButtonBase) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ButtonBase { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for ButtonBase {} -unsafe impl ::core::marker::Sync for ButtonBase {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct CalendarPanel(::windows::core::IUnknown); -impl CalendarPanel { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for CalendarPanel { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CalendarPanel { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CalendarPanel {} -impl ::core::fmt::Debug for CalendarPanel { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CalendarPanel").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CalendarPanel { - type Vtable = ICalendarPanel_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CalendarPanel> for ::windows::core::IUnknown { - fn from(value: &CalendarPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CalendarPanel) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CalendarPanel> for ::windows::core::IInspectable { - fn from(value: &CalendarPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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 = "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 = "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 = "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 = "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) - } -} -#[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_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) - } -} -#[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) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: CalendarPanel) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&CalendarPanel> for super::Panel { - fn from(value: &CalendarPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Panel> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::Panel> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: CalendarPanel) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&CalendarPanel> for super::super::FrameworkElement { - fn from(value: &CalendarPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: CalendarPanel) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&CalendarPanel> for super::super::UIElement { - fn from(value: &CalendarPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CalendarPanel) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&CalendarPanel> for super::super::DependencyObject { - fn from(value: &CalendarPanel) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarPanel { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for CalendarPanel {} -unsafe impl ::core::marker::Sync for CalendarPanel {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct CalendarViewTemplateSettings(::windows::core::IUnknown); -impl CalendarViewTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinViewWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinViewWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HeaderText(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).HeaderText)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WeekDay1(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WeekDay1)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WeekDay2(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WeekDay2)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WeekDay3(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WeekDay3)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WeekDay4(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WeekDay4)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WeekDay5(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WeekDay5)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WeekDay6(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WeekDay6)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WeekDay7(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).WeekDay7)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HasMoreContentAfter(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HasMoreContentAfter)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HasMoreContentBefore(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HasMoreContentBefore)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HasMoreViews(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HasMoreViews)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn ClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ClipRect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CenterX(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CenterX)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CenterY(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CenterY)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for CalendarViewTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CalendarViewTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CalendarViewTemplateSettings {} -impl ::core::fmt::Debug for CalendarViewTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CalendarViewTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CalendarViewTemplateSettings { - type Vtable = ICalendarViewTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CalendarViewTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &CalendarViewTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CalendarViewTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CalendarViewTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &CalendarViewTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CalendarViewTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&CalendarViewTemplateSettings> for super::super::DependencyObject { - fn from(value: &CalendarViewTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for CalendarViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for CalendarViewTemplateSettings {} -unsafe impl ::core::marker::Sync for CalendarViewTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct CarouselPanel(::windows::core::IUnknown); -impl CarouselPanel { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CanVerticallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanVerticallyScroll)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetCanVerticallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCanVerticallyScroll)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CanHorizontallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanHorizontallyScroll)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetCanHorizontallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCanHorizontallyScroll)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExtentWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExtentWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExtentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExtentHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ViewportWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ViewportWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ViewportHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ViewportHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ScrollOwner(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ScrollOwner)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetScrollOwner)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineUp)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineDown)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineLeft)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineRight)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageUp)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageDown)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageLeft)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageRight)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelUp)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelDown)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelLeft)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelRight)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetHorizontalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetHorizontalOffset)(::windows::core::Interface::as_raw(this), offset).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetVerticalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetVerticalOffset)(::windows::core::Interface::as_raw(this), offset).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MakeVisible)(::windows::core::Interface::as_raw(this), visual.into_param().abi(), rectangle.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::ICarouselPanelFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::ICarouselPanelFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreHorizontalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreVerticalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveHorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveVerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetIrregularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetRegularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, offset, result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc(hidden)] - pub fn ICarouselPanelFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for CarouselPanel { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CarouselPanel { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CarouselPanel {} -impl ::core::fmt::Debug for CarouselPanel { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CarouselPanel").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CarouselPanel { - type Vtable = ICarouselPanel_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CarouselPanel> for ::windows::core::IUnknown { - fn from(value: &CarouselPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CarouselPanel) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CarouselPanel> for ::windows::core::IInspectable { - fn from(value: &CarouselPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -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::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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: CarouselPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: CarouselPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: CarouselPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CarouselPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for CarouselPanel {} -unsafe impl ::core::marker::Sync for CarouselPanel {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ColorPickerSlider(::windows::core::IUnknown); -impl ColorPickerSlider { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ColorChannel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ColorChannel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetColorChannel(&self, value: super::ColorPickerHsvChannel) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetColorChannel)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IColorPickerSliderFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IColorPickerSliderFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ColorChannelProperty() -> ::windows::core::Result { - Self::IColorPickerSliderStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColorChannelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IColorPickerSliderFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IColorPickerSliderStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ColorPickerSlider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ColorPickerSlider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ColorPickerSlider {} -impl ::core::fmt::Debug for ColorPickerSlider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ColorPickerSlider").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ColorPickerSlider { - type Vtable = IColorPickerSlider_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorPickerSlider> for ::windows::core::IUnknown { - fn from(value: &ColorPickerSlider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorPickerSlider) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorPickerSlider> for ::windows::core::IInspectable { - fn from(value: &ColorPickerSlider) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for RangeBase { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorPickerSlider) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ColorPickerSlider {} -unsafe impl ::core::marker::Sync for ColorPickerSlider {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ColorSpectrum(::windows::core::IUnknown); -impl ColorSpectrum { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Color(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Color)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetColor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Numerics\"`*"] - #[cfg(feature = "Foundation_Numerics")] - pub fn HsvColor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HsvColor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Numerics\"`*"] - #[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).SetHsvColor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinHue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinHue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMinHue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMinHue)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaxHue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MaxHue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMaxHue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMaxHue)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinSaturation(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinSaturation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMinSaturation(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMinSaturation)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaxSaturation(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MaxSaturation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMaxSaturation(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMaxSaturation)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MinValue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMinValue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMinValue)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaxValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MaxValue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMaxValue(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMaxValue)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Shape(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Shape)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetShape(&self, value: super::ColorSpectrumShape) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetShape)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Components(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Components)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetComponents(&self, value: super::ColorSpectrumComponents) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetComponents)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ColorChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveColorChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IColorSpectrumFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IColorSpectrumFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ColorProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ColorProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HsvColorProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HsvColorProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinHueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MinHueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaxHueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MaxHueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinSaturationProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MinSaturationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaxSaturationProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MaxSaturationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinValueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MinValueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaxValueProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MaxValueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShapeProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ShapeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ComponentsProperty() -> ::windows::core::Result { - Self::IColorSpectrumStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ComponentsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IColorSpectrumFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IColorSpectrumStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ColorSpectrum { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ColorSpectrum { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ColorSpectrum {} -impl ::core::fmt::Debug for ColorSpectrum { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ColorSpectrum").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ColorSpectrum { - type Vtable = IColorSpectrum_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorSpectrum> for ::windows::core::IUnknown { - fn from(value: &ColorSpectrum) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ColorSpectrum) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ColorSpectrum> for ::windows::core::IInspectable { - fn from(value: &ColorSpectrum) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ColorSpectrum) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ColorSpectrum) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ColorSpectrum) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ColorSpectrum {} -unsafe impl ::core::marker::Sync for ColorSpectrum {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ComboBoxTemplateSettings(::windows::core::IUnknown); -impl ComboBoxTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DropDownOpenedHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DropDownOpenedHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DropDownClosedHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DropDownClosedHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DropDownOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DropDownOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedItemDirection(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectedItemDirection)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DropDownContentMinWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DropDownContentMinWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ComboBoxTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ComboBoxTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ComboBoxTemplateSettings {} -impl ::core::fmt::Debug for ComboBoxTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ComboBoxTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ComboBoxTemplateSettings { - type Vtable = IComboBoxTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ComboBoxTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ComboBoxTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ComboBoxTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ComboBoxTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ComboBoxTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ComboBoxTemplateSettings {} -unsafe impl ::core::marker::Sync for ComboBoxTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct CommandBarFlyoutCommandBar(::windows::core::IUnknown); -impl CommandBarFlyoutCommandBar { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FlyoutTemplateSettings(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FlyoutTemplateSettings)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::ICommandBarFlyoutCommandBarFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::ICommandBarFlyoutCommandBarFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ICommandBarFlyoutCommandBarFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for CommandBarFlyoutCommandBar { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CommandBarFlyoutCommandBar { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CommandBarFlyoutCommandBar {} -impl ::core::fmt::Debug for CommandBarFlyoutCommandBar { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CommandBarFlyoutCommandBar").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CommandBarFlyoutCommandBar { - type Vtable = ICommandBarFlyoutCommandBar_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for ::windows::core::IUnknown { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBar> for ::windows::core::IInspectable { - fn from(value: &CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::AppBar { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CommandBarFlyoutCommandBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for CommandBarFlyoutCommandBar {} -unsafe impl ::core::marker::Sync for CommandBarFlyoutCommandBar {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct CommandBarFlyoutCommandBarTemplateSettings(::windows::core::IUnknown); -impl CommandBarFlyoutCommandBarTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OpenAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OpenAnimationStartPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OpenAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OpenAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CloseAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CloseAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CurrentWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CurrentWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandedWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandedWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WidthExpansionDelta(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WidthExpansionDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WidthExpansionAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WidthExpansionAnimationStartPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WidthExpansionAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WidthExpansionAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WidthExpansionMoreButtonAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WidthExpansionMoreButtonAnimationStartPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn WidthExpansionMoreButtonAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).WidthExpansionMoreButtonAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandUpOverflowVerticalPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandUpOverflowVerticalPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandDownOverflowVerticalPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandDownOverflowVerticalPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandUpAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandUpAnimationStartPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandUpAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandUpAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandUpAnimationHoldPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandUpAnimationHoldPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandDownAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandDownAnimationStartPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandDownAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandDownAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExpandDownAnimationHoldPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExpandDownAnimationHoldPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn ContentClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ContentClipRect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn OverflowContentClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentClipRect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for CommandBarFlyoutCommandBarTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CommandBarFlyoutCommandBarTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CommandBarFlyoutCommandBarTemplateSettings {} -impl ::core::fmt::Debug for CommandBarFlyoutCommandBarTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CommandBarFlyoutCommandBarTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CommandBarFlyoutCommandBarTemplateSettings { - type Vtable = ICommandBarFlyoutCommandBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CommandBarFlyoutCommandBarTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &CommandBarFlyoutCommandBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CommandBarFlyoutCommandBarTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for CommandBarFlyoutCommandBarTemplateSettings {} -unsafe impl ::core::marker::Sync for CommandBarFlyoutCommandBarTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct CommandBarTemplateSettings(::windows::core::IUnknown); -impl CommandBarTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ContentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ContentHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn OverflowContentClipRect(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentClipRect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentMinWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentMaxHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentMaxHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentHorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentHorizontalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NegativeOverflowContentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NegativeOverflowContentHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentMaxWidth(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentMaxWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EffectiveOverflowButtonVisibility(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).EffectiveOverflowButtonVisibility)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentCompactYTranslation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentCompactYTranslation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentMinimalYTranslation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentMinimalYTranslation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverflowContentHiddenYTranslation(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OverflowContentHiddenYTranslation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for CommandBarTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for CommandBarTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for CommandBarTemplateSettings {} -impl ::core::fmt::Debug for CommandBarTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("CommandBarTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for CommandBarTemplateSettings { - type Vtable = ICommandBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CommandBarTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &CommandBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: CommandBarTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&CommandBarTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &CommandBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: CommandBarTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for CommandBarTemplateSettings {} -unsafe impl ::core::marker::Sync for CommandBarTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ComponentResourceLocation(pub i32); -impl ComponentResourceLocation { - pub const Application: Self = Self(0i32); - pub const Nested: Self = Self(1i32); -} -impl ::core::marker::Copy for ComponentResourceLocation {} -impl ::core::clone::Clone for ComponentResourceLocation { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ComponentResourceLocation { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ComponentResourceLocation { - type Abi = Self; -} -impl ::core::fmt::Debug for ComponentResourceLocation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ComponentResourceLocation").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct DragCompletedEventArgs(::windows::core::IUnknown); -impl DragCompletedEventArgs { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HorizontalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn VerticalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Canceled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Canceled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalchange: f64, verticalchange: f64, canceled: bool) -> ::windows::core::Result { - Self::IDragCompletedEventArgsFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled)(::windows::core::Interface::as_raw(this), horizontalchange, verticalchange, canceled, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled_compose(horizontalchange: f64, verticalchange: f64, canceled: bool, compose: T) -> ::windows::core::Result { - Self::IDragCompletedEventArgsFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled)(::windows::core::Interface::as_raw(this), horizontalchange, verticalchange, canceled, ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IDragCompletedEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for DragCompletedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DragCompletedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DragCompletedEventArgs {} -impl ::core::fmt::Debug for DragCompletedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DragCompletedEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DragCompletedEventArgs { - type Vtable = IDragCompletedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragCompletedEventArgs> for ::windows::core::IUnknown { - fn from(value: &DragCompletedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DragCompletedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragCompletedEventArgs> for ::windows::core::IInspectable { - fn from(value: &DragCompletedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: DragCompletedEventArgs) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for DragCompletedEventArgs {} -unsafe impl ::core::marker::Sync for DragCompletedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct DragCompletedEventHandler(pub ::windows::core::IUnknown); -impl DragCompletedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { - let com = DragCompletedEventHandlerBox:: { vtable: &DragCompletedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; - unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).Invoke)(::windows::core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -#[repr(C)] -struct DragCompletedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { - vtable: *const DragCompletedEventHandler_Vtbl, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragCompletedEventHandlerBox { - const VTABLE: DragCompletedEventHandler_Vtbl = DragCompletedEventHandler_Vtbl { - base__: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, - Invoke: Self::Invoke, - }; - unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void 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(-2147467262) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void 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: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - ((*this).invoke)(::core::mem::transmute(&sender), ::core::mem::transmute(&e)).into() - } -} -impl ::core::clone::Clone for DragCompletedEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DragCompletedEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DragCompletedEventHandler {} -impl ::core::fmt::Debug for DragCompletedEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DragCompletedEventHandler").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Interface for DragCompletedEventHandler { - type Vtable = DragCompletedEventHandler_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36b28888_19ac_4b4e_9137_a6cf2b023883); -} -unsafe impl ::windows::core::RuntimeType for DragCompletedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{36b28888-19ac-4b4e-9137-a6cf2b023883}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -#[repr(C)] -#[doc(hidden)] -pub struct DragCompletedEventHandler_Vtbl { - pub base__: ::windows::core::IUnknownVtbl, - pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct DragDeltaEventArgs(::windows::core::IUnknown); -impl DragDeltaEventArgs { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HorizontalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn VerticalChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalchange: f64, verticalchange: f64) -> ::windows::core::Result { - Self::IDragDeltaEventArgsFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithHorizontalChangeAndVerticalChange)(::windows::core::Interface::as_raw(this), horizontalchange, verticalchange, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CreateInstanceWithHorizontalChangeAndVerticalChange_compose(horizontalchange: f64, verticalchange: f64, compose: T) -> ::windows::core::Result { - Self::IDragDeltaEventArgsFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithHorizontalChangeAndVerticalChange)(::windows::core::Interface::as_raw(this), horizontalchange, verticalchange, ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IDragDeltaEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for DragDeltaEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DragDeltaEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DragDeltaEventArgs {} -impl ::core::fmt::Debug for DragDeltaEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DragDeltaEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DragDeltaEventArgs { - type Vtable = IDragDeltaEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragDeltaEventArgs> for ::windows::core::IUnknown { - fn from(value: &DragDeltaEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DragDeltaEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragDeltaEventArgs> for ::windows::core::IInspectable { - fn from(value: &DragDeltaEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: DragDeltaEventArgs) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for DragDeltaEventArgs {} -unsafe impl ::core::marker::Sync for DragDeltaEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct DragDeltaEventHandler(pub ::windows::core::IUnknown); -impl DragDeltaEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { - let com = DragDeltaEventHandlerBox:: { vtable: &DragDeltaEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; - unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).Invoke)(::windows::core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -#[repr(C)] -struct DragDeltaEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { - vtable: *const DragDeltaEventHandler_Vtbl, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragDeltaEventHandlerBox { - const VTABLE: DragDeltaEventHandler_Vtbl = DragDeltaEventHandler_Vtbl { - base__: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, - Invoke: Self::Invoke, - }; - unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void 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(-2147467262) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void 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: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - ((*this).invoke)(::core::mem::transmute(&sender), ::core::mem::transmute(&e)).into() - } -} -impl ::core::clone::Clone for DragDeltaEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DragDeltaEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DragDeltaEventHandler {} -impl ::core::fmt::Debug for DragDeltaEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DragDeltaEventHandler").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Interface for DragDeltaEventHandler { - type Vtable = DragDeltaEventHandler_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4ac24f9f_ac28_49e9_9189_dccffeb66472); -} -unsafe impl ::windows::core::RuntimeType for DragDeltaEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{4ac24f9f-ac28-49e9-9189-dccffeb66472}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -#[repr(C)] -#[doc(hidden)] -pub struct DragDeltaEventHandler_Vtbl { - pub base__: ::windows::core::IUnknownVtbl, - pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct DragStartedEventArgs(::windows::core::IUnknown); -impl DragStartedEventArgs { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontaloffset: f64, verticaloffset: f64) -> ::windows::core::Result { - Self::IDragStartedEventArgsFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithHorizontalOffsetAndVerticalOffset)(::windows::core::Interface::as_raw(this), horizontaloffset, verticaloffset, ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CreateInstanceWithHorizontalOffsetAndVerticalOffset_compose(horizontaloffset: f64, verticaloffset: f64, compose: T) -> ::windows::core::Result { - Self::IDragStartedEventArgsFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstanceWithHorizontalOffsetAndVerticalOffset)(::windows::core::Interface::as_raw(this), horizontaloffset, verticaloffset, ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IDragStartedEventArgsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for DragStartedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DragStartedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DragStartedEventArgs {} -impl ::core::fmt::Debug for DragStartedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DragStartedEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for DragStartedEventArgs { - type Vtable = IDragStartedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragStartedEventArgs> for ::windows::core::IUnknown { - fn from(value: &DragStartedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: DragStartedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&DragStartedEventArgs> for ::windows::core::IInspectable { - fn from(value: &DragStartedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: DragStartedEventArgs) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for DragStartedEventArgs {} -unsafe impl ::core::marker::Sync for DragStartedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct DragStartedEventHandler(pub ::windows::core::IUnknown); -impl DragStartedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { - let com = DragStartedEventHandlerBox:: { vtable: &DragStartedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; - unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).Invoke)(::windows::core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -#[repr(C)] -struct DragStartedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { - vtable: *const DragStartedEventHandler_Vtbl, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> DragStartedEventHandlerBox { - const VTABLE: DragStartedEventHandler_Vtbl = DragStartedEventHandler_Vtbl { - base__: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, - Invoke: Self::Invoke, - }; - unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void 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(-2147467262) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void 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: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - ((*this).invoke)(::core::mem::transmute(&sender), ::core::mem::transmute(&e)).into() - } -} -impl ::core::clone::Clone for DragStartedEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for DragStartedEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for DragStartedEventHandler {} -impl ::core::fmt::Debug for DragStartedEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("DragStartedEventHandler").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Interface for DragStartedEventHandler { - type Vtable = DragStartedEventHandler_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd2eea48a_c65a_495d_a2f1_72c66989142d); -} -unsafe impl ::windows::core::RuntimeType for DragStartedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{d2eea48a-c65a-495d-a2f1-72c66989142d}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -#[repr(C)] -#[doc(hidden)] -pub struct DragStartedEventHandler_Vtbl { - pub base__: ::windows::core::IUnknownVtbl, - pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct EdgeTransitionLocation(pub i32); -impl EdgeTransitionLocation { - pub const Left: Self = Self(0i32); - pub const Top: Self = Self(1i32); - pub const Right: Self = Self(2i32); - pub const Bottom: Self = Self(3i32); -} -impl ::core::marker::Copy for EdgeTransitionLocation {} -impl ::core::clone::Clone for EdgeTransitionLocation { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for EdgeTransitionLocation { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for EdgeTransitionLocation { - type Abi = Self; -} -impl ::core::fmt::Debug for EdgeTransitionLocation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("EdgeTransitionLocation").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct FlyoutBase(::windows::core::IUnknown); -impl FlyoutBase { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Placement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Placement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetPlacement(&self, value: FlyoutPlacementMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPlacement)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Opened)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveOpened)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Closed)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveClosed)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Opening)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveOpening)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).ShowAt)(::windows::core::Interface::as_raw(this), placementtarget.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Hide(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).Hide)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Target(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Target)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AllowFocusOnInteraction(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AllowFocusOnInteraction)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetAllowFocusOnInteraction(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetAllowFocusOnInteraction)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LightDismissOverlayMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetLightDismissOverlayMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AllowFocusWhenDisabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AllowFocusWhenDisabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetAllowFocusWhenDisabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetAllowFocusWhenDisabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ElementSoundMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ElementSoundMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetElementSoundMode(&self, value: super::super::ElementSoundMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetElementSoundMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Closing)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveClosing)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverlayInputPassThroughElement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).OverlayInputPassThroughElement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetOverlayInputPassThroughElement)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Input\"`*"] - #[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).TryInvokeKeyboardAccelerator)(::windows::core::Interface::as_raw(this), args.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShowMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ShowMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetShowMode(&self, value: FlyoutShowMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetShowMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn InputDevicePrefersPrimaryCommands(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).InputDevicePrefersPrimaryCommands)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreOpenCloseAnimationsEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreOpenCloseAnimationsEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetAreOpenCloseAnimationsEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetAreOpenCloseAnimationsEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsOpen(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsOpen)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).ShowAt)(::windows::core::Interface::as_raw(this), placementtarget.into_param().abi(), showoptions.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShouldConstrainToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ShouldConstrainToRootBounds)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetShouldConstrainToRootBounds(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetShouldConstrainToRootBounds)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsConstrainedToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsConstrainedToRootBounds)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn XamlRoot(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).XamlRoot)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetXamlRoot)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PlacementProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PlacementProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AttachedFlyoutProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AttachedFlyoutProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn GetAttachedFlyout<'a, Param0: ::windows::core::IntoParam<'a, super::super::FrameworkElement>>(element: Param0) -> ::windows::core::Result { - Self::IFlyoutBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetAttachedFlyout)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetAttachedFlyout)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).ShowAttachedFlyout)(::windows::core::Interface::as_raw(this), flyoutowner.into_param().abi()).ok() }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AllowFocusOnInteractionProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AllowFocusOnInteractionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LightDismissOverlayModeProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LightDismissOverlayModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AllowFocusWhenDisabledProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AllowFocusWhenDisabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ElementSoundModeProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ElementSoundModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OverlayInputPassThroughElementProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).OverlayInputPassThroughElementProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn TargetProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TargetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShowModeProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ShowModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn InputDevicePrefersPrimaryCommandsProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).InputDevicePrefersPrimaryCommandsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreOpenCloseAnimationsEnabledProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AreOpenCloseAnimationsEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsOpenProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics5(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsOpenProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShouldConstrainToRootBoundsProperty() -> ::windows::core::Result { - Self::IFlyoutBaseStatics6(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ShouldConstrainToRootBoundsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IFlyoutBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IFlyoutBaseStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IFlyoutBaseStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IFlyoutBaseStatics5 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IFlyoutBaseStatics6 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for FlyoutBase { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FlyoutBase { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FlyoutBase {} -impl ::core::fmt::Debug for FlyoutBase { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlyoutBase").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FlyoutBase { - type Vtable = IFlyoutBase_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutBase> for ::windows::core::IUnknown { - fn from(value: &FlyoutBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutBase) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutBase> for ::windows::core::IInspectable { - fn from(value: &FlyoutBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: FlyoutBase) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for FlyoutBase {} -unsafe impl ::core::marker::Sync for FlyoutBase {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct FlyoutBaseClosingEventArgs(::windows::core::IUnknown); -impl FlyoutBaseClosingEventArgs { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Cancel(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Cancel)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetCancel(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCancel)(::windows::core::Interface::as_raw(this), value).ok() } - } -} -impl ::core::clone::Clone for FlyoutBaseClosingEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FlyoutBaseClosingEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FlyoutBaseClosingEventArgs {} -impl ::core::fmt::Debug for FlyoutBaseClosingEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlyoutBaseClosingEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FlyoutBaseClosingEventArgs { - type Vtable = IFlyoutBaseClosingEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutBaseClosingEventArgs> for ::windows::core::IUnknown { - fn from(value: &FlyoutBaseClosingEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutBaseClosingEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutBaseClosingEventArgs> for ::windows::core::IInspectable { - fn from(value: &FlyoutBaseClosingEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for FlyoutBaseClosingEventArgs {} -unsafe impl ::core::marker::Sync for FlyoutBaseClosingEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct FlyoutPlacementMode(pub i32); -impl FlyoutPlacementMode { - pub const Top: Self = Self(0i32); - pub const Bottom: Self = Self(1i32); - pub const Left: Self = Self(2i32); - pub const Right: Self = Self(3i32); - pub const Full: Self = Self(4i32); - pub const TopEdgeAlignedLeft: Self = Self(5i32); - pub const TopEdgeAlignedRight: Self = Self(6i32); - pub const BottomEdgeAlignedLeft: Self = Self(7i32); - pub const BottomEdgeAlignedRight: Self = Self(8i32); - pub const LeftEdgeAlignedTop: Self = Self(9i32); - pub const LeftEdgeAlignedBottom: Self = Self(10i32); - pub const RightEdgeAlignedTop: Self = Self(11i32); - pub const RightEdgeAlignedBottom: Self = Self(12i32); - pub const Auto: Self = Self(13i32); -} -impl ::core::marker::Copy for FlyoutPlacementMode {} -impl ::core::clone::Clone for FlyoutPlacementMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FlyoutPlacementMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FlyoutPlacementMode { - type Abi = Self; -} -impl ::core::fmt::Debug for FlyoutPlacementMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlyoutPlacementMode").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct FlyoutShowMode(pub i32); -impl FlyoutShowMode { - pub const Auto: Self = Self(0i32); - pub const Standard: Self = Self(1i32); - pub const Transient: Self = Self(2i32); - pub const TransientWithDismissOnPointerMoveAway: Self = Self(3i32); -} -impl ::core::marker::Copy for FlyoutShowMode {} -impl ::core::clone::Clone for FlyoutShowMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FlyoutShowMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FlyoutShowMode { - type Abi = Self; -} -impl ::core::fmt::Debug for FlyoutShowMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlyoutShowMode").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct FlyoutShowOptions(::windows::core::IUnknown); -impl FlyoutShowOptions { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Position(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).SetPosition)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn ExclusionRect(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ExclusionRect)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).SetExclusionRect)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShowMode(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ShowMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetShowMode(&self, value: FlyoutShowMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetShowMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Placement(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Placement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetPlacement(&self, value: FlyoutPlacementMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetPlacement)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IFlyoutShowOptionsFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IFlyoutShowOptionsFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IFlyoutShowOptionsFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for FlyoutShowOptions { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for FlyoutShowOptions { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for FlyoutShowOptions {} -impl ::core::fmt::Debug for FlyoutShowOptions { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FlyoutShowOptions").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for FlyoutShowOptions { - type Vtable = IFlyoutShowOptions_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutShowOptions> for ::windows::core::IUnknown { - fn from(value: &FlyoutShowOptions) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: FlyoutShowOptions) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&FlyoutShowOptions> for ::windows::core::IInspectable { - fn from(value: &FlyoutShowOptions) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for FlyoutShowOptions {} -unsafe impl ::core::marker::Sync for FlyoutShowOptions {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct GeneratorDirection(pub i32); -impl GeneratorDirection { - pub const Forward: Self = Self(0i32); - pub const Backward: Self = Self(1i32); -} -impl ::core::marker::Copy for GeneratorDirection {} -impl ::core::clone::Clone for GeneratorDirection { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for GeneratorDirection { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for GeneratorDirection { - type Abi = Self; -} -impl ::core::fmt::Debug for GeneratorDirection { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GeneratorDirection").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[repr(C)] -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -pub struct GeneratorPosition { - pub Index: i32, - pub Offset: i32, -} -impl ::core::marker::Copy for GeneratorPosition {} -impl ::core::clone::Clone for GeneratorPosition { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for GeneratorPosition { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("GeneratorPosition").field("Index", &self.Index).field("Offset", &self.Offset).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -impl ::core::cmp::PartialEq for GeneratorPosition { - fn eq(&self, other: &Self) -> bool { - unsafe { ::windows::core::memcmp(self as *const _ as _, other as *const _ as _, core::mem::size_of::()) == 0 } - } -} -impl ::core::cmp::Eq for GeneratorPosition {} -impl ::core::default::Default for GeneratorPosition { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct GeneratorPositionHelper(::windows::core::IUnknown); -impl GeneratorPositionHelper { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FromIndexAndOffset(index: i32, offset: i32) -> ::windows::core::Result { - Self::IGeneratorPositionHelperStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FromIndexAndOffset)(::windows::core::Interface::as_raw(this), index, offset, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGeneratorPositionHelperStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GeneratorPositionHelper { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GeneratorPositionHelper { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GeneratorPositionHelper {} -impl ::core::fmt::Debug for GeneratorPositionHelper { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GeneratorPositionHelper").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GeneratorPositionHelper { - type Vtable = IGeneratorPositionHelper_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GeneratorPositionHelper> for ::windows::core::IUnknown { - fn from(value: &GeneratorPositionHelper) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GeneratorPositionHelper) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GeneratorPositionHelper> for ::windows::core::IInspectable { - fn from(value: &GeneratorPositionHelper) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for GeneratorPositionHelper {} -unsafe impl ::core::marker::Sync for GeneratorPositionHelper {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct GridViewItemPresenter(::windows::core::IUnknown); -impl GridViewItemPresenter { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionCheckMarkVisualEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectionCheckMarkVisualEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetSelectionCheckMarkVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetSelectionCheckMarkVisualEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckHintBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckHintBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckHintBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckSelectingBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckSelectingBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckSelectingBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetDragBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragForeground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetDragForeground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FocusBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetFocusBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn PlaceholderBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PlaceholderBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetPlaceholderBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetPointerOverBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedForeground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedForeground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedPointerOverBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedPointerOverBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedBorderThickness(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBorderThickness)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetSelectedBorderThickness)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DisabledOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DisabledOpacity)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetDisabledOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDisabledOpacity)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DragOpacity)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetDragOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDragOpacity)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ReorderHintOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ReorderHintOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetReorderHintOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetReorderHintOffset)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterHorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GridViewItemPresenterHorizontalContentAlignment)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn SetGridViewItemPresenterHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetGridViewItemPresenterHorizontalContentAlignment)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterVerticalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GridViewItemPresenterVerticalContentAlignment)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn SetGridViewItemPresenterVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetGridViewItemPresenterVerticalContentAlignment)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterPadding(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GridViewItemPresenterPadding)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[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).SetGridViewItemPresenterPadding)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverBackgroundMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackgroundMargin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetPointerOverBackgroundMargin)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ContentMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ContentMargin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetContentMargin)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IGridViewItemPresenterFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IGridViewItemPresenterFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionCheckMarkVisualEnabledProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionCheckMarkVisualEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckHintBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckHintBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckSelectingBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckSelectingBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragForegroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragForegroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FocusBorderBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FocusBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PlaceholderBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PlaceholderBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedForegroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedForegroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedPointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedPointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedBorderThicknessProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBorderThicknessProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DisabledOpacityProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DisabledOpacityProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragOpacityProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragOpacityProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ReorderHintOffsetProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ReorderHintOffsetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterHorizontalContentAlignmentProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GridViewItemPresenterHorizontalContentAlignmentProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterVerticalContentAlignmentProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GridViewItemPresenterVerticalContentAlignmentProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn GridViewItemPresenterPaddingProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GridViewItemPresenterPaddingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverBackgroundMarginProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackgroundMarginProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ContentMarginProperty() -> ::windows::core::Result { - Self::IGridViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ContentMarginProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IGridViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IGridViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for GridViewItemPresenter { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridViewItemPresenter { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridViewItemPresenter {} -impl ::core::fmt::Debug for GridViewItemPresenter { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridViewItemPresenter").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridViewItemPresenter { - type Vtable = IGridViewItemPresenter_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemPresenter> for ::windows::core::IUnknown { - fn from(value: &GridViewItemPresenter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemPresenter) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemPresenter> for ::windows::core::IInspectable { - fn from(value: &GridViewItemPresenter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: GridViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: GridViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for GridViewItemPresenter {} -unsafe impl ::core::marker::Sync for GridViewItemPresenter {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct GridViewItemTemplateSettings(::windows::core::IUnknown); -impl GridViewItemTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragItemsCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DragItemsCount)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for GridViewItemTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for GridViewItemTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for GridViewItemTemplateSettings {} -impl ::core::fmt::Debug for GridViewItemTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GridViewItemTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for GridViewItemTemplateSettings { - type Vtable = IGridViewItemTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &GridViewItemTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: GridViewItemTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&GridViewItemTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &GridViewItemTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: GridViewItemTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for GridViewItemTemplateSettings {} -unsafe impl ::core::marker::Sync for GridViewItemTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct GroupHeaderPlacement(pub i32); -impl GroupHeaderPlacement { - pub const Top: Self = Self(0i32); - pub const Left: Self = Self(1i32); -} -impl ::core::marker::Copy for GroupHeaderPlacement {} -impl ::core::clone::Clone for GroupHeaderPlacement { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for GroupHeaderPlacement { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for GroupHeaderPlacement { - type Abi = Self; -} -impl ::core::fmt::Debug for GroupHeaderPlacement { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("GroupHeaderPlacement").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarButtonTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarButtonTemplateSettings { - type Vtable = IAppBarButtonTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcbc9b39d_0c95_4951_bff2_13963691c366); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarButtonTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub KeyboardAcceleratorTextMinWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarTemplateSettings { - type Vtable = IAppBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcc2a863_eb35_423c_8389_d7827be3bf67); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub ClipRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ClipRect: usize, - pub CompactVerticalDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CompactRootMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub MinimalVerticalDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub MinimalRootMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub HiddenVerticalDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub HiddenRootMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarTemplateSettings2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarTemplateSettings2 { - type Vtable = IAppBarTemplateSettings2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcbe66259_0399_5bcc_b925_4d5f5c9a4568); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarTemplateSettings2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub NegativeCompactVerticalDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub NegativeMinimalVerticalDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub NegativeHiddenVerticalDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IAppBarToggleButtonTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IAppBarToggleButtonTemplateSettings { - type Vtable = IAppBarToggleButtonTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaaf99c48_d8f4_40d9_9fa3_3a64f0fec5d8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IAppBarToggleButtonTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub KeyboardAcceleratorTextMinWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IButtonBase(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IButtonBase { - type Vtable = IButtonBase_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798674); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBase_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ClickMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::ClickMode) -> ::windows::core::HRESULT, - pub SetClickMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::ClickMode) -> ::windows::core::HRESULT, - pub IsPointerOver: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub IsPressed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Input")] - pub Command: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] - Command: usize, - #[cfg(feature = "UI_Xaml_Input")] - pub SetCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] - SetCommand: usize, - pub CommandParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetCommandParameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub Click: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Click: usize, - #[cfg(feature = "Foundation")] - pub RemoveClick: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveClick: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IButtonBaseFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IButtonBaseFactory { - type Vtable = IButtonBaseFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x389b7c71_5220_42b2_9992_2690c1a6702f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IButtonBaseStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IButtonBaseStatics { - type Vtable = IButtonBaseStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ef17e1_fe37_474f_9e97_3b5e0b30f2df); -} -#[repr(C)] -#[doc(hidden)] -pub struct IButtonBaseStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ClickModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsPointerOverProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsPressedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CommandProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CommandParameterProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICalendarPanel(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICalendarPanel { - type Vtable = ICalendarPanel_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfcd55a2d_02d3_4ee6_9a90_9df3ead00994); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarPanel_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICalendarViewTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICalendarViewTemplateSettings { - type Vtable = ICalendarViewTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56c71483_64e1_477c_8a0b_cb2f3334b9b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICalendarViewTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MinViewWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub HeaderText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WeekDay1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WeekDay2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WeekDay3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WeekDay4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WeekDay5: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WeekDay6: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub WeekDay7: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub HasMoreContentAfter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub HasMoreContentBefore: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub HasMoreViews: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub ClipRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ClipRect: usize, - pub CenterX: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CenterY: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICarouselPanel(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICarouselPanel { - type Vtable = ICarouselPanel_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdeab78b2_373b_4151_8785_e544d0d9362b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICarouselPanel_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanVerticallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetCanVerticallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub CanHorizontallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetCanHorizontallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ExtentWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExtentHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ViewportWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ViewportHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub HorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ScrollOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetScrollOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineLeft: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineRight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageLeft: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageRight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelLeft: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelRight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetHorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: f64) -> ::windows::core::HRESULT, - pub SetVerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub MakeVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visual: *mut ::core::ffi::c_void, rectangle: super::super::super::super::Foundation::Rect, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MakeVisible: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICarouselPanelFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICarouselPanelFactory { - type Vtable = ICarouselPanelFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc1109404_9ae1_440e_a0dd_bbb6e2293cbe); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICarouselPanelFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorPickerSlider(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorPickerSlider { - type Vtable = IColorPickerSlider_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x94394d83_e0df_4c5f_bbcd_8155f4020440); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSlider_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColorChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::ColorPickerHsvChannel) -> ::windows::core::HRESULT, - pub SetColorChannel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::ColorPickerHsvChannel) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorPickerSliderFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorPickerSliderFactory { - type Vtable = IColorPickerSliderFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x06d879a2_8c07_4b1e_a940_9fbce8f49639); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorPickerSliderStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorPickerSliderStatics { - type Vtable = IColorPickerSliderStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x22eafc6a_9fe3_4eee_8734_a1398ec4413a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorPickerSliderStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColorChannelProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorSpectrum(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorSpectrum { - type Vtable = IColorSpectrum_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce46f271_f509_4f98_8288_e4942fb385df); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrum_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Color: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Color) -> ::windows::core::HRESULT, - pub SetColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::Color) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Numerics")] - pub HsvColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Numerics::Vector4) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - HsvColor: usize, - #[cfg(feature = "Foundation_Numerics")] - pub SetHsvColor: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::super::super::Foundation::Numerics::Vector4) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Numerics"))] - SetHsvColor: usize, - pub MinHue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMinHue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub MaxHue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMaxHue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub MinSaturation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMinSaturation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub MaxSaturation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMaxSaturation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub MinValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMinValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub MaxValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetMaxValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub Shape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::ColorSpectrumShape) -> ::windows::core::HRESULT, - pub SetShape: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::ColorSpectrumShape) -> ::windows::core::HRESULT, - pub Components: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::ColorSpectrumComponents) -> ::windows::core::HRESULT, - pub SetComponents: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::ColorSpectrumComponents) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub ColorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ColorChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveColorChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveColorChanged: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorSpectrumFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorSpectrumFactory { - type Vtable = IColorSpectrumFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x90c7e61e_904d_42ab_b44f_e68dbf0cdee9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IColorSpectrumStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IColorSpectrumStatics { - type Vtable = IColorSpectrumStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x906bee7c_2cee_4e90_968b_f0a5bd691b4a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IColorSpectrumStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ColorProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HsvColorProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MinHueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MaxHueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MinSaturationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MaxSaturationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MinValueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MaxValueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ShapeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ComponentsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxTemplateSettings { - type Vtable = IComboBoxTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x83285c4e_17f6_4aa3_b61b_e87c718604ea); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DropDownOpenedHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub DropDownClosedHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub DropDownOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SelectedItemDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AnimationDirection) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IComboBoxTemplateSettings2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IComboBoxTemplateSettings2 { - type Vtable = IComboBoxTemplateSettings2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00e90cd7_68be_449d_b5a7_76e26f703e9b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IComboBoxTemplateSettings2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DropDownContentMinWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICommandBarFlyoutCommandBar(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBar { - type Vtable = ICommandBarFlyoutCommandBar_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14146e7c_38c4_55c4_b706_ce18f6061e7e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBar_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FlyoutTemplateSettings: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICommandBarFlyoutCommandBarFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBarFactory { - type Vtable = ICommandBarFlyoutCommandBarFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf8236f9f_5559_5697_8e6f_20d70ca17dd0); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBarFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICommandBarFlyoutCommandBarTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICommandBarFlyoutCommandBarTemplateSettings { - type Vtable = ICommandBarFlyoutCommandBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47642c44_26ff_5d14_9cfc_77dc64f3a447); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarFlyoutCommandBarTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OpenAnimationStartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OpenAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CloseAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CurrentWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandedWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub WidthExpansionDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub WidthExpansionAnimationStartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub WidthExpansionAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub WidthExpansionMoreButtonAnimationStartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub WidthExpansionMoreButtonAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandUpOverflowVerticalPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandDownOverflowVerticalPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandUpAnimationStartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandUpAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandUpAnimationHoldPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandDownAnimationStartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandDownAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExpandDownAnimationHoldPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub ContentClipRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ContentClipRect: usize, - #[cfg(feature = "Foundation")] - pub OverflowContentClipRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - OverflowContentClipRect: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICommandBarTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings { - type Vtable = ICommandBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x61c8f92c_05aa_414a_a2ae_482c5a46c08e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ContentHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub OverflowContentClipRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - OverflowContentClipRect: usize, - pub OverflowContentMinWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OverflowContentMaxHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OverflowContentHorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OverflowContentHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub NegativeOverflowContentHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICommandBarTemplateSettings2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings2 { - type Vtable = ICommandBarTemplateSettings2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfbb24f93_c2e2_4177_a2b6_3cd705073cf6); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OverflowContentMaxWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICommandBarTemplateSettings3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings3 { - type Vtable = ICommandBarTemplateSettings3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3bd71eba_3403_4bfe_842d_2ce8c511d245); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub EffectiveOverflowButtonVisibility: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Visibility) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ICommandBarTemplateSettings4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ICommandBarTemplateSettings4 { - type Vtable = ICommandBarTemplateSettings4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf2562dd3_aa58_59c5_853b_828a19d1214e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ICommandBarTemplateSettings4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OverflowContentCompactYTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OverflowContentMinimalYTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OverflowContentHiddenYTranslation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragCompletedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragCompletedEventArgs { - type Vtable = IDragCompletedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb04f29a1_bd16_48f6_a511_9c2763641331); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragCompletedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub HorizontalChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticalChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub Canceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragCompletedEventArgsFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragCompletedEventArgsFactory { - type Vtable = IDragCompletedEventArgsFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36a7d99d_148c_495f_a0fc_afc871d62f33); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragCompletedEventArgsFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalchange: f64, verticalchange: f64, canceled: bool, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragDeltaEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragDeltaEventArgs { - type Vtable = IDragDeltaEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c2dd73c_2806_49fc_aae9_6d792b572b6a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragDeltaEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub HorizontalChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticalChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragDeltaEventArgsFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragDeltaEventArgsFactory { - type Vtable = IDragDeltaEventArgsFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x46e7a1ef_ae15_44a6_8a04_95b0bf9ab876); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragDeltaEventArgsFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithHorizontalChangeAndVerticalChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontalchange: f64, verticalchange: f64, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragStartedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragStartedEventArgs { - type Vtable = IDragStartedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9f915dd0_a124_4366_bd85_2408214aeed4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragStartedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub HorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IDragStartedEventArgsFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IDragStartedEventArgsFactory { - type Vtable = IDragStartedEventArgsFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5eefe579_c706_4781_a308_c9e7f4c6a1d7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IDragStartedEventArgsFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstanceWithHorizontalOffsetAndVerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, horizontaloffset: f64, verticaloffset: f64, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBase(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBase { - type Vtable = IFlyoutBase_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x723eea0b_d12e_430d_a9f0_9bb32bbf9913); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Placement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FlyoutPlacementMode) -> ::windows::core::HRESULT, - pub SetPlacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: FlyoutPlacementMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub Opened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Opened: usize, - #[cfg(feature = "Foundation")] - pub RemoveOpened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveOpened: usize, - #[cfg(feature = "Foundation")] - pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Closed: usize, - #[cfg(feature = "Foundation")] - pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveClosed: usize, - #[cfg(feature = "Foundation")] - pub Opening: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Opening: usize, - #[cfg(feature = "Foundation")] - pub RemoveOpening: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveOpening: usize, - pub ShowAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, placementtarget: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub Hide: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBase2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBase2 { - type Vtable = IFlyoutBase2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf82b435e_65b3_41c6_a9e2_77b67bc4c00c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Target: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AllowFocusOnInteraction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetAllowFocusOnInteraction: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub LightDismissOverlayMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::LightDismissOverlayMode) -> ::windows::core::HRESULT, - pub SetLightDismissOverlayMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::LightDismissOverlayMode) -> ::windows::core::HRESULT, - pub AllowFocusWhenDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetAllowFocusWhenDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ElementSoundMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::ElementSoundMode) -> ::windows::core::HRESULT, - pub SetElementSoundMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::ElementSoundMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub Closing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Closing: usize, - #[cfg(feature = "Foundation")] - pub RemoveClosing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveClosing: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBase3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBase3 { - type Vtable = IFlyoutBase3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa89c9712_48e0_4240_95b9_0dfd0826a8d3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OverlayInputPassThroughElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetOverlayInputPassThroughElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBase4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBase4 { - type Vtable = IFlyoutBase4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3897d69_a37f_4828_9b70_0ef67c03b5f8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Input")] - pub TryInvokeKeyboardAccelerator: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] - TryInvokeKeyboardAccelerator: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBase5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBase5 { - type Vtable = IFlyoutBase5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad3ec0c7_12bb_5a73_b78e_105192ca73d6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShowMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FlyoutShowMode) -> ::windows::core::HRESULT, - pub SetShowMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: FlyoutShowMode) -> ::windows::core::HRESULT, - pub InputDevicePrefersPrimaryCommands: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub AreOpenCloseAnimationsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetAreOpenCloseAnimationsEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub IsOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub ShowAt: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, placementtarget: *mut ::core::ffi::c_void, showoptions: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBase6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBase6 { - type Vtable = IFlyoutBase6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5399de8c_06cc_5b52_b65a_ff9322d1c940); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBase6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShouldConstrainToRootBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetShouldConstrainToRootBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub IsConstrainedToRootBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub XamlRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetXamlRoot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseClosingEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseClosingEventArgs { - type Vtable = IFlyoutBaseClosingEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd075852d_b09a_4fd1_b005_db2ba01206fb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseClosingEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Cancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetCancel: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseFactory { - type Vtable = IFlyoutBaseFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1c3363d7_fca7_407e_920e_70e15e9f0bf1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseOverrides(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseOverrides { - type Vtable = IFlyoutBaseOverrides_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x101dec86_6f4d_45a4_9d0e_3ece6f16977e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseOverrides_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreatePresenter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseOverrides4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseOverrides4 { - type Vtable = IFlyoutBaseOverrides4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa6bfd04d_5ff3_4418_add8_4042a88d2da5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseOverrides4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Input")] - pub OnProcessKeyboardAccelerators: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Input"))] - OnProcessKeyboardAccelerators: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics { - type Vtable = IFlyoutBaseStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe2d795e3_85c0_4de2_bac1_5294ca011a78); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub PlacementProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AttachedFlyoutProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetAttachedFlyout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetAttachedFlyout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ShowAttachedFlyout: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, flyoutowner: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics2 { - type Vtable = IFlyoutBaseStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa8e913fe_2d60_4307_aad9_56b450121b58); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AllowFocusOnInteractionProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LightDismissOverlayModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AllowFocusWhenDisabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ElementSoundModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseStatics3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics3 { - type Vtable = IFlyoutBaseStatics3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ba92e4f_dd16_4be4_99db_bd9d4406c0f8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OverlayInputPassThroughElementProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseStatics5(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics5 { - type Vtable = IFlyoutBaseStatics5_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x69edb25c_992a_542b_bcff_2f7f855523bd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics5_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub TargetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ShowModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub InputDevicePrefersPrimaryCommandsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub AreOpenCloseAnimationsEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsOpenProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutBaseStatics6(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutBaseStatics6 { - type Vtable = IFlyoutBaseStatics6_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x96d49254_c91b_5246_8b39_afc2a2c50cf8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutBaseStatics6_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShouldConstrainToRootBoundsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutShowOptions(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutShowOptions { - type Vtable = IFlyoutShowOptions_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x57d693ad_0c74_54dd_b110_1ee43fabadd9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutShowOptions_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Position: usize, - #[cfg(feature = "Foundation")] - pub SetPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetPosition: usize, - #[cfg(feature = "Foundation")] - pub ExclusionRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ExclusionRect: usize, - #[cfg(feature = "Foundation")] - pub SetExclusionRect: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetExclusionRect: usize, - pub ShowMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FlyoutShowMode) -> ::windows::core::HRESULT, - pub SetShowMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: FlyoutShowMode) -> ::windows::core::HRESULT, - pub Placement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut FlyoutPlacementMode) -> ::windows::core::HRESULT, - pub SetPlacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: FlyoutPlacementMode) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IFlyoutShowOptionsFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IFlyoutShowOptionsFactory { - type Vtable = IFlyoutShowOptionsFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xce596f61_2eb4_5b4e_af69_f9af42320eee); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFlyoutShowOptionsFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGeneratorPositionHelper(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGeneratorPositionHelper { - type Vtable = IGeneratorPositionHelper_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcd40318d_7745_40d9_ab9d_abbda4a7ffea); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGeneratorPositionHelper_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGeneratorPositionHelperStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGeneratorPositionHelperStatics { - type Vtable = IGeneratorPositionHelperStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4095cd_60ec_4588_8d60_39d29097a4df); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGeneratorPositionHelperStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FromIndexAndOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, index: i32, offset: i32, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemPresenter(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemPresenter { - type Vtable = IGridViewItemPresenter_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x214f9010_56e2_4821_8a1c_2305709af94b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemPresenter_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectionCheckMarkVisualEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetSelectionCheckMarkVisualEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckHintBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckHintBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckHintBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckHintBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckSelectingBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckSelectingBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckSelectingBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckSelectingBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub DragBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - DragBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetDragBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetDragBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub DragForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - DragForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetDragForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetDragForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub FocusBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - FocusBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetFocusBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetFocusBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub PlaceholderBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - PlaceholderBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetPlaceholderBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetPlaceholderBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub PointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - PointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetPointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetPointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedPointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedPointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedPointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedPointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedPointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedPointerOverBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedPointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedPointerOverBorderBrush: usize, - pub SelectedBorderThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetSelectedBorderThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub DisabledOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetDisabledOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub DragOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetDragOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub ReorderHintOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetReorderHintOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "deprecated")] - pub GridViewItemPresenterHorizontalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GridViewItemPresenterHorizontalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub SetGridViewItemPresenterHorizontalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetGridViewItemPresenterHorizontalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub GridViewItemPresenterVerticalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::VerticalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GridViewItemPresenterVerticalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub SetGridViewItemPresenterVerticalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::VerticalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetGridViewItemPresenterVerticalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub GridViewItemPresenterPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GridViewItemPresenterPadding: usize, - #[cfg(feature = "deprecated")] - pub SetGridViewItemPresenterPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetGridViewItemPresenterPadding: usize, - pub PointerOverBackgroundMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetPointerOverBackgroundMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub ContentMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetContentMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemPresenterFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemPresenterFactory { - type Vtable = IGridViewItemPresenterFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x53c12178_63bb_4a65_a3f1_ab114cfc6ffe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemPresenterFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemPresenterStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemPresenterStatics { - type Vtable = IGridViewItemPresenterStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe958f8c4_277e_4a72_a01e_9e1688980178); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemPresenterStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectionCheckMarkVisualEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckHintBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckSelectingBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DragBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DragForegroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FocusBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PlaceholderBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PointerOverBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedForegroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedPointerOverBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedPointerOverBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedBorderThicknessProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DisabledOpacityProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DragOpacityProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ReorderHintOffsetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "deprecated")] - pub GridViewItemPresenterHorizontalContentAlignmentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GridViewItemPresenterHorizontalContentAlignmentProperty: usize, - #[cfg(feature = "deprecated")] - pub GridViewItemPresenterVerticalContentAlignmentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GridViewItemPresenterVerticalContentAlignmentProperty: usize, - #[cfg(feature = "deprecated")] - pub GridViewItemPresenterPaddingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - GridViewItemPresenterPaddingProperty: usize, - pub PointerOverBackgroundMarginProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ContentMarginProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IGridViewItemTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IGridViewItemTemplateSettings { - type Vtable = IGridViewItemTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9e30baaf_165d_4267_a45e_1a43a75706ac); -} -#[repr(C)] -#[doc(hidden)] -pub struct IGridViewItemTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DragItemsCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IItemsChangedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IItemsChangedEventArgs { - type Vtable = IItemsChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b45568_7d10_421e_be29_81839a91de20); -} -#[repr(C)] -#[doc(hidden)] -pub struct IItemsChangedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Action: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub Position: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, - pub OldPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut GeneratorPosition) -> ::windows::core::HRESULT, - pub ItemCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub ItemUICount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IJumpListItemBackgroundConverter(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IJumpListItemBackgroundConverter { - type Vtable = IJumpListItemBackgroundConverter_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x81177858_d224_410c_b16c_c5b6bb6188b2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemBackgroundConverter_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Media")] - pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - Enabled: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetEnabled: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub Disabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - Disabled: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetDisabled: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IJumpListItemBackgroundConverterStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IJumpListItemBackgroundConverterStatics { - type Vtable = IJumpListItemBackgroundConverterStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x20e7c3dd_6f27_4808_b0be_83e0e9b5cc45); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemBackgroundConverterStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub EnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DisabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IJumpListItemForegroundConverter(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IJumpListItemForegroundConverter { - type Vtable = IJumpListItemForegroundConverter_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1590ed38_c504_4796_a63a_5bfc9eefaae8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemForegroundConverter_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Media")] - pub Enabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - Enabled: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetEnabled: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub Disabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - Disabled: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetDisabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetDisabled: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IJumpListItemForegroundConverterStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IJumpListItemForegroundConverterStatics { - type Vtable = IJumpListItemForegroundConverterStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x474e7352_210c_4673_ac6a_413f0e2c7750); -} -#[repr(C)] -#[doc(hidden)] -pub struct IJumpListItemForegroundConverterStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub EnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DisabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILayoutInformation(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILayoutInformation { - type Vtable = ILayoutInformation_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb5384c9b_c8cf_41b3_bf16_18c8420e72c9); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILayoutInformation_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILayoutInformationStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILayoutInformationStatics { - type Vtable = ILayoutInformationStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcf06cf99_58e9_4682_8326_50caab65ed7c); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILayoutInformationStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub GetLayoutExceptionElement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, dispatcher: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub GetLayoutSlot: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetLayoutSlot: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILayoutInformationStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILayoutInformationStatics2 { - type Vtable = ILayoutInformationStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x760315b5_6d4e_4939_ac61_639863cea36b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILayoutInformationStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub GetAvailableSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::Size) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - GetAvailableSize: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenter(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenter { - type Vtable = IListViewItemPresenter_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfc8946bd_a3a2_4969_8174_25b5d3c28033); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectionCheckMarkVisualEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetSelectionCheckMarkVisualEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckHintBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckHintBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckHintBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckHintBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckSelectingBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckSelectingBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckSelectingBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckSelectingBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub DragBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - DragBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetDragBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetDragBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub DragForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - DragForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetDragForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetDragForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub FocusBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - FocusBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetFocusBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetFocusBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub PlaceholderBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - PlaceholderBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetPlaceholderBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetPlaceholderBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub PointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - PointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetPointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetPointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedPointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedPointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedPointerOverBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedPointerOverBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedPointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedPointerOverBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedPointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedPointerOverBorderBrush: usize, - pub SelectedBorderThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetSelectedBorderThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub DisabledOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetDisabledOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub DragOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetDragOpacity: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub ReorderHintOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetReorderHintOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "deprecated")] - pub ListViewItemPresenterHorizontalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ListViewItemPresenterHorizontalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub SetListViewItemPresenterHorizontalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::HorizontalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetListViewItemPresenterHorizontalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub ListViewItemPresenterVerticalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::VerticalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ListViewItemPresenterVerticalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub SetListViewItemPresenterVerticalContentAlignment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::VerticalAlignment) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetListViewItemPresenterVerticalContentAlignment: usize, - #[cfg(feature = "deprecated")] - pub ListViewItemPresenterPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ListViewItemPresenterPadding: usize, - #[cfg(feature = "deprecated")] - pub SetListViewItemPresenterPadding: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - SetListViewItemPresenterPadding: usize, - pub PointerOverBackgroundMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetPointerOverBackgroundMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub ContentMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetContentMargin: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenter2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenter2 { - type Vtable = IListViewItemPresenter2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5dc5496_e122_4c57_a625_ac4b08fb2d4c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedPressedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedPressedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedPressedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedPressedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub PressedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - PressedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetPressedBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetPressedBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub FocusSecondaryBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - FocusSecondaryBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetFocusSecondaryBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetFocusSecondaryBorderBrush: usize, - pub CheckMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ListViewItemPresenterCheckMode) -> ::windows::core::HRESULT, - pub SetCheckMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ListViewItemPresenterCheckMode) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] - pub PointerOverForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - PointerOverForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetPointerOverForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetPointerOverForeground: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenter3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenter3 { - type Vtable = IListViewItemPresenter3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x36620013_0390_4e30_ad97_8744404f7010); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Media")] - pub RevealBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - RevealBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetRevealBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetRevealBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub RevealBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - RevealBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetRevealBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetRevealBorderBrush: usize, - pub RevealBorderThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub SetRevealBorderThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::Thickness) -> ::windows::core::HRESULT, - pub RevealBackgroundShowsAboveContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetRevealBackgroundShowsAboveContent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenter4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenter4 { - type Vtable = IListViewItemPresenter4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xda600ac1_adea_5940_a18f_57582f96d99a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenter4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedDisabledBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedDisabledBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedDisabledBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedDisabledBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxPointerOverBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxPointerOverBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxPointerOverBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxPointerOverBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxSelectedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxSelectedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxSelectedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxSelectedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxSelectedPointerOverBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxSelectedPointerOverBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxSelectedPointerOverBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxSelectedPointerOverBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxSelectedPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxSelectedPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxSelectedPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxSelectedPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxSelectedDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxSelectedDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxSelectedDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxSelectedDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxPointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxPointerOverBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxPointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxPointerOverBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxPressedBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxPressedBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxPressedBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxPressedBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub CheckBoxDisabledBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - CheckBoxDisabledBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetCheckBoxDisabledBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetCheckBoxDisabledBorderBrush: usize, - pub CheckBoxCornerRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::CornerRadius) -> ::windows::core::HRESULT, - pub SetCheckBoxCornerRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::CornerRadius) -> ::windows::core::HRESULT, - pub SelectionIndicatorCornerRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::CornerRadius) -> ::windows::core::HRESULT, - pub SetSelectionIndicatorCornerRadius: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::super::CornerRadius) -> ::windows::core::HRESULT, - pub SelectionIndicatorVisualEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetSelectionIndicatorVisualEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub SelectionIndicatorMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::HRESULT, - pub SetSelectionIndicatorMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectionIndicatorBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectionIndicatorBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectionIndicatorBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectionIndicatorBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectionIndicatorPointerOverBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectionIndicatorPointerOverBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectionIndicatorPointerOverBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectionIndicatorPointerOverBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectionIndicatorPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectionIndicatorPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectionIndicatorPressedBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectionIndicatorPressedBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectionIndicatorDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectionIndicatorDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectionIndicatorDisabledBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectionIndicatorDisabledBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedPressedBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedPressedBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedPressedBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedPressedBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedDisabledBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedDisabledBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedDisabledBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedDisabledBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SelectedInnerBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SelectedInnerBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetSelectedInnerBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetSelectedInnerBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub PointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - PointerOverBorderBrush: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetPointerOverBorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetPointerOverBorderBrush: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenterFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenterFactory { - type Vtable = IListViewItemPresenterFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe0777cfd_f7e4_4a67_9ac0_a994fcacd020); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenterStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics { - type Vtable = IListViewItemPresenterStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6504a55a_15dd_42fb_aa5d_2d8ce2e9c294); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectionCheckMarkVisualEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckHintBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckSelectingBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DragBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DragForegroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FocusBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PlaceholderBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PointerOverBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedForegroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedPointerOverBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedPointerOverBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedBorderThicknessProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DisabledOpacityProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DragOpacityProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ReorderHintOffsetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "deprecated")] - pub ListViewItemPresenterHorizontalContentAlignmentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ListViewItemPresenterHorizontalContentAlignmentProperty: usize, - #[cfg(feature = "deprecated")] - pub ListViewItemPresenterVerticalContentAlignmentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ListViewItemPresenterVerticalContentAlignmentProperty: usize, - #[cfg(feature = "deprecated")] - pub ListViewItemPresenterPaddingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "deprecated"))] - ListViewItemPresenterPaddingProperty: usize, - pub PointerOverBackgroundMarginProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ContentMarginProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenterStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics2 { - type Vtable = IListViewItemPresenterStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4cb3b945_d24d_42a3_9e83_a86d0618bf1b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectedPressedBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PressedBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub FocusSecondaryBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PointerOverForegroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenterStatics3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics3 { - type Vtable = IListViewItemPresenterStatics3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc3d3d11e_fa26_4ce7_a4ed_ff948f01b7c0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub RevealBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RevealBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RevealBorderThicknessProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub RevealBackgroundShowsAboveContentProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemPresenterStatics4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemPresenterStatics4 { - type Vtable = IListViewItemPresenterStatics4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3917159e_74a1_5e7e_a743_e45be9fb919b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemPresenterStatics4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectedDisabledBackgroundProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckPressedBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckDisabledBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxPointerOverBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxPressedBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxDisabledBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxSelectedBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxSelectedPointerOverBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxSelectedPressedBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxSelectedDisabledBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxPointerOverBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxPressedBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxDisabledBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub CheckBoxCornerRadiusProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionIndicatorCornerRadiusProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionIndicatorVisualEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionIndicatorModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionIndicatorBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionIndicatorPointerOverBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionIndicatorPressedBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectionIndicatorDisabledBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedPressedBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedDisabledBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedInnerBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PointerOverBorderBrushProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IListViewItemTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IListViewItemTemplateSettings { - type Vtable = IListViewItemTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67af84bf_8279_4686_9326_cd189f27575d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IListViewItemTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DragItemsCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILoopingSelector(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILoopingSelector { - type Vtable = ILoopingSelector_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4c9a3e04_4827_49d9_8806_093957b0fd21); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelector_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShouldLoop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetShouldLoop: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation_Collections")] - pub Items: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - Items: usize, - #[cfg(feature = "Foundation_Collections")] - pub SetItems: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - SetItems: usize, - pub SelectedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetSelectedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub SelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetSelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetItemWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub ItemHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetItemHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub ItemTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetItemTemplate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub SelectionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SelectionChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveSelectionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveSelectionChanged: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILoopingSelectorItem(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILoopingSelectorItem { - type Vtable = ILoopingSelectorItem_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc69714b9_27c6_4433_9d7c_0dbfb2f4344f); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorItem_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILoopingSelectorPanel(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILoopingSelectorPanel { - type Vtable = ILoopingSelectorPanel_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x40a9ba70_1011_4778_87f7_6bfd20d6377d); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorPanel_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ILoopingSelectorStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ILoopingSelectorStatics { - type Vtable = ILoopingSelectorStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x03e8bafa_8c7d_4fc5_b92a_f049fb933cc5); -} -#[repr(C)] -#[doc(hidden)] -pub struct ILoopingSelectorStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShouldLoopProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedIndexProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedItemProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemWidthProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemHeightProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ItemTemplateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuFlyoutItemTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuFlyoutItemTemplateSettings { - type Vtable = IMenuFlyoutItemTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x56ad1809_3a16_4147_81cb_d0b35c834e0f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutItemTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub KeyboardAcceleratorTextMinWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IMenuFlyoutPresenterTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IMenuFlyoutPresenterTemplateSettings { - type Vtable = IMenuFlyoutPresenterTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd68fd00d_629d_4349_ac51_b877c80983b8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IMenuFlyoutPresenterTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FlyoutContentMinWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct INavigationViewItemPresenter(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for INavigationViewItemPresenter { - type Vtable = INavigationViewItemPresenter_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9956d3fc_4693_59cb_b6bf_37249058be96); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemPresenter_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Icon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct INavigationViewItemPresenterFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for INavigationViewItemPresenterFactory { - type Vtable = INavigationViewItemPresenterFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbb062c50_4a36_52e7_9459_e89d02f3fc42); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemPresenterFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct INavigationViewItemPresenterStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for INavigationViewItemPresenterStatics { - type Vtable = INavigationViewItemPresenterStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x52814604_cfc1_5ad5_a3aa_fa355be6bd76); -} -#[repr(C)] -#[doc(hidden)] -pub struct INavigationViewItemPresenterStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IconProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IOrientedVirtualizingPanel(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IOrientedVirtualizingPanel { - type Vtable = IOrientedVirtualizingPanel_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf077b577_39bd_46ee_bdd7_0826beed71b8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IOrientedVirtualizingPanel_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CanVerticallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetCanVerticallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub CanHorizontallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetCanHorizontallyScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub ExtentWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ExtentHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ViewportWidth: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ViewportHeight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub HorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub VerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ScrollOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetScrollOwner: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineLeft: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LineRight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageLeft: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub PageRight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelUp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelDown: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelLeft: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MouseWheelRight: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetHorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: f64) -> ::windows::core::HRESULT, - pub SetVerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, offset: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub MakeVisible: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, visual: *mut ::core::ffi::c_void, rectangle: super::super::super::super::Foundation::Rect, result__: *mut super::super::super::super::Foundation::Rect) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - MakeVisible: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IOrientedVirtualizingPanelFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IOrientedVirtualizingPanelFactory { - type Vtable = IOrientedVirtualizingPanelFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7b8eaeaf_f92f_439d_9ebf_e9919f56c94d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IOrientedVirtualizingPanelFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPickerFlyoutBase(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPickerFlyoutBase { - type Vtable = IPickerFlyoutBase_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe33574ea_1076_44d1_9383_dc24ac5cff2a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBase_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPickerFlyoutBaseFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPickerFlyoutBaseFactory { - type Vtable = IPickerFlyoutBaseFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x7ec27a53_9502_4beb_b342_00566c8f16b0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPickerFlyoutBaseOverrides(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPickerFlyoutBaseOverrides { - type Vtable = IPickerFlyoutBaseOverrides_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5bfc4f4a_4822_47b4_a958_77c20ba120d3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseOverrides_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OnConfirmed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ShouldShowConfirmationButtons: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPickerFlyoutBaseStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPickerFlyoutBaseStatics { - type Vtable = IPickerFlyoutBaseStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5a4d0ac5_89ae_40e5_a7f1_bb702355adf3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPickerFlyoutBaseStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub TitleProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetTitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotHeaderItem(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotHeaderItem { - type Vtable = IPivotHeaderItem_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x594572c2_82aa_410b_9e55_fd8e2c98862d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotHeaderItem_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotHeaderItemFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotHeaderItemFactory { - type Vtable = IPivotHeaderItemFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x14308b37_185b_4117_bc77_dda2eb261b99); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotHeaderItemFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotHeaderPanel(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotHeaderPanel { - type Vtable = IPivotHeaderPanel_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x21484ebc_9241_4203_bd37_6c08fb096612); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotHeaderPanel_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPivotPanel(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPivotPanel { - type Vtable = IPivotPanel_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xad4ebe80_22a9_4ca3_9212_2773b6359ff3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPivotPanel_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopup(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopup { - type Vtable = IPopup_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x62418240_e6d3_4705_a1dc_39156456ee29); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Child: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetChild: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsOpen: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub HorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetHorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub VerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetVerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub ChildTransitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] - ChildTransitions: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub SetChildTransitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] - SetChildTransitions: usize, - pub IsLightDismissEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsLightDismissEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub Opened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Opened: usize, - #[cfg(feature = "Foundation")] - pub RemoveOpened: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveOpened: usize, - #[cfg(feature = "Foundation")] - pub Closed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Closed: usize, - #[cfg(feature = "Foundation")] - pub RemoveClosed: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveClosed: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopup2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopup2 { - type Vtable = IPopup2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x376a8c4c_aac0_4b20_966a_0b9364feb4b5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LightDismissOverlayMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::LightDismissOverlayMode) -> ::windows::core::HRESULT, - pub SetLightDismissOverlayMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::LightDismissOverlayMode) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopup3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopup3 { - type Vtable = IPopup3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf9c46915_a65c_5f68_9f54_310a1b51095f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShouldConstrainToRootBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetShouldConstrainToRootBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - pub IsConstrainedToRootBounds: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopup4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopup4 { - type Vtable = IPopup4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1870b836_df2f_5fc6_a5f2_748ed6ce7321); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopup4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub PlacementTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetPlacementTarget: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DesiredPlacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PopupPlacementMode) -> ::windows::core::HRESULT, - pub SetDesiredPlacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PopupPlacementMode) -> ::windows::core::HRESULT, - pub ActualPlacement: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PopupPlacementMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub ActualPlacementChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ActualPlacementChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveActualPlacementChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveActualPlacementChanged: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopupStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopupStatics { - type Vtable = IPopupStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5ae3bf1a_6e34_40d6_8a7f_ca822aaf59e3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ChildProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsOpenProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub HorizontalOffsetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub VerticalOffsetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ChildTransitionsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsLightDismissEnabledProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopupStatics2(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopupStatics2 { - type Vtable = IPopupStatics2_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2b9ae9ec_55ef_43b6_b459_12e40ffa4302); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics2_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub LightDismissOverlayModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopupStatics3(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopupStatics3 { - type Vtable = IPopupStatics3_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x00789589_c580_558f_945a_7d02ee004d3e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics3_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub ShouldConstrainToRootBoundsProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IPopupStatics4(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IPopupStatics4 { - type Vtable = IPopupStatics4_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd1a42c06_8bfa_5164_8554_48bfe6bd4cc6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IPopupStatics4_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub PlacementTargetProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub DesiredPlacementProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IProgressBarTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IProgressBarTemplateSettings { - type Vtable = IProgressBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3fe2ea2a_e3f2_4c2b_9488_918d77d2bbe4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressBarTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub EllipseDiameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub EllipseOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub EllipseAnimationWellPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub EllipseAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ContainerAnimationStartPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ContainerAnimationEndPosition: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub IndicatorLengthDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IProgressRingTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IProgressRingTemplateSettings { - type Vtable = IProgressRingTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9b675ec_c723_42e6_83e9_9826272bdc0e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IProgressRingTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub EllipseDiameter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub EllipseOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - pub MaxSideLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeBase(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeBase { - type Vtable = IRangeBase_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfa002c1a_494e_46cf_91d4_e14a8d798675); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBase_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Minimum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetMinimum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub Maximum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetMaximum: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub SmallChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetSmallChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub LargeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetLargeChange: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub Value: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub ValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - ValueChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveValueChanged: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeBaseFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeBaseFactory { - type Vtable = IRangeBaseFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x389b7c71_5220_42b2_9992_2690c1a67030); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeBaseOverrides(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeBaseOverrides { - type Vtable = IRangeBaseOverrides_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4291af39_7f0b_4bc2_99c4_06e7062682d8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseOverrides_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OnMinimumChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oldminimum: f64, newminimum: f64) -> ::windows::core::HRESULT, - pub OnMaximumChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oldmaximum: f64, newmaximum: f64) -> ::windows::core::HRESULT, - pub OnValueChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, oldvalue: f64, newvalue: f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeBaseStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeBaseStatics { - type Vtable = IRangeBaseStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x67ef17e1_fe37_474f_9e97_3b5e0b30f2e0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub MinimumProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub MaximumProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SmallChangeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub LargeChangeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ValueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRangeBaseValueChangedEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRangeBaseValueChangedEventArgs { - type Vtable = IRangeBaseValueChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xa1921777_d5c1_4f9c_a7b0_0401b7e6dc5c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRangeBaseValueChangedEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OldValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub NewValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRepeatButton(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRepeatButton { - type Vtable = IRepeatButton_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02200df9_021a_484a_a93b_0f31020314e5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButton_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Delay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetDelay: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub Interval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetInterval: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IRepeatButtonStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IRepeatButtonStatics { - type Vtable = IRepeatButtonStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3914ac4e_f462_4f73_8197_e8846639c682); -} -#[repr(C)] -#[doc(hidden)] -pub struct IRepeatButtonStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub DelayProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IntervalProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollBar(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollBar { - type Vtable = IScrollBar_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf57ae6ca_d1a6_4b90_a4e9_54df1ba8d2ec); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBar_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub Orientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::Orientation) -> ::windows::core::HRESULT, - pub SetOrientation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: super::Orientation) -> ::windows::core::HRESULT, - pub ViewportSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub SetViewportSize: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: f64) -> ::windows::core::HRESULT, - pub IndicatorMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ScrollingIndicatorMode) -> ::windows::core::HRESULT, - pub SetIndicatorMode: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ScrollingIndicatorMode) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub Scroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Scroll: usize, - #[cfg(feature = "Foundation")] - pub RemoveScroll: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveScroll: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollBarStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollBarStatics { - type Vtable = IScrollBarStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x45eaf38d_b814_48cf_97f2_539eb16dfd4d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollBarStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OrientationProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub ViewportSizeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IndicatorModeProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IScrollEventArgs(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IScrollEventArgs { - type Vtable = IScrollEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc57e5168_3afe_448d_b752_2f364c75d743); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollEventArgs_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub NewValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub ScrollEventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ScrollEventType) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct IScrollSnapPointsInfo(::windows::core::IUnknown); -impl IScrollSnapPointsInfo { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreHorizontalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreVerticalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveHorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveVerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn GetIrregularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetIrregularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn GetRegularSnapPoints(&self, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: &mut f32) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetRegularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, offset, result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: IScrollSnapPointsInfo) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IScrollSnapPointsInfo> for ::windows::core::IUnknown { - fn from(value: &IScrollSnapPointsInfo) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: IScrollSnapPointsInfo) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&IScrollSnapPointsInfo> for ::windows::core::IInspectable { - fn from(value: &IScrollSnapPointsInfo) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::clone::Clone for IScrollSnapPointsInfo { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IScrollSnapPointsInfo { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IScrollSnapPointsInfo {} -impl ::core::fmt::Debug for IScrollSnapPointsInfo { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IScrollSnapPointsInfo").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for IScrollSnapPointsInfo { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{1b5d1336-e61b-4d51-be41-fd8ddc55c58c}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for IScrollSnapPointsInfo { - type Vtable = IScrollSnapPointsInfo_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x1b5d1336_e61b_4d51_be41_fd8ddc55c58c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IScrollSnapPointsInfo_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub AreHorizontalSnapPointsRegular: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub AreVerticalSnapPointsRegular: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub HorizontalSnapPointsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - HorizontalSnapPointsChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveHorizontalSnapPointsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveHorizontalSnapPointsChanged: usize, - #[cfg(feature = "Foundation")] - pub VerticalSnapPointsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - VerticalSnapPointsChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveVerticalSnapPointsChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveVerticalSnapPointsChanged: usize, - #[cfg(feature = "Foundation_Collections")] - pub GetIrregularSnapPoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, orientation: super::Orientation, alignment: SnapPointsAlignment, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation_Collections"))] - GetIrregularSnapPoints: usize, - pub GetRegularSnapPoints: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, orientation: super::Orientation, alignment: SnapPointsAlignment, offset: *mut f32, result__: *mut f32) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelector(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelector { - type Vtable = ISelector_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe30eb3a5_b36b_42dc_8527_cd25136c083c); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelector_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT, - pub SetSelectedIndex: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT, - pub SelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetSelectedItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SetSelectedValue: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedValuePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - pub SetSelectedValuePath: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: ::core::mem::ManuallyDrop<::windows::core::HSTRING>) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub IsSynchronizedWithCurrentItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - IsSynchronizedWithCurrentItem: usize, - #[cfg(feature = "Foundation")] - pub SetIsSynchronizedWithCurrentItem: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetIsSynchronizedWithCurrentItem: usize, - #[cfg(feature = "Foundation")] - pub SelectionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SelectionChanged: usize, - #[cfg(feature = "Foundation")] - pub RemoveSelectionChanged: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveSelectionChanged: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorFactory { - type Vtable = ISelectorFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9be2995_d136_4600_b187_8ad56079b48a); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorItem(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorItem { - type Vtable = ISelectorItem_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x541c8d6c_0283_4581_b945_2a64c28a0646); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItem_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsSelected: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorItemFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorItemFactory { - type Vtable = ISelectorItemFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb9363945_c86a_4b1e_9440_1879378d5313); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorItemStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorItemStatics { - type Vtable = ISelectorItemStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2a353ab8_cbe9_4303_92e7_c8906e218392); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorItemStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsSelectedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISelectorStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISelectorStatics { - type Vtable = ISelectorStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x13300b06_bd10_4e09_bff7_71efb8bbb42b); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISelectorStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub SelectedIndexProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedItemProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedValueProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub SelectedValuePathProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsSynchronizedWithCurrentItemProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub GetIsSelectionActive: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISettingsFlyoutTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISettingsFlyoutTemplateSettings { - type Vtable = ISettingsFlyoutTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbcf14c10_cea7_43f1_9d68_57605ded69d4); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISettingsFlyoutTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Media")] - pub HeaderBackground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - HeaderBackground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub HeaderForeground: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - HeaderForeground: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub BorderBrush: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - BorderBrush: usize, - pub BorderThickness: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::Thickness) -> ::windows::core::HRESULT, - #[cfg(feature = "UI_Xaml_Media")] - pub IconSource: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - IconSource: usize, - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub ContentTransitions: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation")))] - ContentTransitions: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ISplitViewTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ISplitViewTemplateSettings { - type Vtable = ISplitViewTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc16ab5a7_4996_4443_b199_6b6b89124eab); -} -#[repr(C)] -#[doc(hidden)] -pub struct ISplitViewTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OpenPaneLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub NegativeOpenPaneLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OpenPaneLengthMinusCompactLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub NegativeOpenPaneLengthMinusCompactLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub OpenPaneGridLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::GridLength) -> ::windows::core::HRESULT, - pub CompactPaneGridLength: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::GridLength) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IThumb(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IThumb { - type Vtable = IThumb_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe8b2b281_0d6a_45cf_b333_2402b037f099); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumb_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsDragging: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub DragStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - DragStarted: usize, - #[cfg(feature = "Foundation")] - pub RemoveDragStarted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveDragStarted: usize, - #[cfg(feature = "Foundation")] - pub DragDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - DragDelta: usize, - #[cfg(feature = "Foundation")] - pub RemoveDragDelta: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveDragDelta: usize, - #[cfg(feature = "Foundation")] - pub DragCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - DragCompleted: usize, - #[cfg(feature = "Foundation")] - pub RemoveDragCompleted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveDragCompleted: usize, - pub CancelDrag: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IThumbStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IThumbStatics { - type Vtable = IThumbStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x955024eb_36f3_4672_a186_baaf626ac4ad); -} -#[repr(C)] -#[doc(hidden)] -pub struct IThumbStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsDraggingProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITickBar(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITickBar { - type Vtable = ITickBar_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x994683fa_f1f6_487d_a5ac_c15921bfa995); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITickBar_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "UI_Xaml_Media")] - pub Fill: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - Fill: usize, - #[cfg(feature = "UI_Xaml_Media")] - pub SetFill: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "UI_Xaml_Media"))] - SetFill: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct ITickBarStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for ITickBarStatics { - type Vtable = ITickBarStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2c6d7e40_799d_4a54_be09_1fefc61d018e); -} -#[repr(C)] -#[doc(hidden)] -pub struct ITickBarStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FillProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleButton(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleButton { - type Vtable = IToggleButton_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x589877fb_0fc7_4036_9d8b_127dfa75c16d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButton_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - #[cfg(feature = "Foundation")] - pub IsChecked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - IsChecked: usize, - #[cfg(feature = "Foundation")] - pub SetIsChecked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - SetIsChecked: usize, - pub IsThreeState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT, - pub SetIsThreeState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT, - #[cfg(feature = "Foundation")] - pub Checked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Checked: usize, - #[cfg(feature = "Foundation")] - pub RemoveChecked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveChecked: usize, - #[cfg(feature = "Foundation")] - pub Unchecked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Unchecked: usize, - #[cfg(feature = "Foundation")] - pub RemoveUnchecked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveUnchecked: usize, - #[cfg(feature = "Foundation")] - pub Indeterminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, handler: *mut ::core::ffi::c_void, result__: *mut super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - Indeterminate: usize, - #[cfg(feature = "Foundation")] - pub RemoveIndeterminate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, token: super::super::super::super::Foundation::EventRegistrationToken) -> ::windows::core::HRESULT, - #[cfg(not(feature = "Foundation"))] - RemoveIndeterminate: usize, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleButtonFactory(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleButtonFactory { - type Vtable = IToggleButtonFactory_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd56aa2fc_fc7f_449c_9855_7a1055d668a8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonFactory_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub CreateInstance: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, baseinterface: *mut ::core::ffi::c_void, innerinterface: *mut *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleButtonOverrides(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleButtonOverrides { - type Vtable = IToggleButtonOverrides_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd20e4c28_f18b_491a_9a45_f1a04a9369a4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonOverrides_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub OnToggle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleButtonStatics(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleButtonStatics { - type Vtable = IToggleButtonStatics_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xaf1eab12_0128_4f67_9c5a_82320c445d19); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleButtonStatics_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub IsCheckedProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub IsThreeStateProperty: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToggleSwitchTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToggleSwitchTemplateSettings { - type Vtable = IToggleSwitchTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x02b7bdcd_628a_4363_86e0_51d6e2e89e58); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToggleSwitchTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub KnobCurrentToOnOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub KnobCurrentToOffOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub KnobOnToOffOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub KnobOffToOnOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CurtainCurrentToOnOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CurtainCurrentToOffOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CurtainOnToOffOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub CurtainOffToOnOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc(hidden)] -#[repr(transparent)] -pub struct IToolTipTemplateSettings(::windows::core::IUnknown); -unsafe impl ::windows::core::Interface for IToolTipTemplateSettings { - type Vtable = IToolTipTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xd4388247_0ec4_4506_affd_afac2225b48c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IToolTipTemplateSettings_Vtbl { - pub base__: ::windows::core::IInspectableVtbl, - pub FromHorizontalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, - pub FromVerticalOffset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut f64) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ItemsChangedEventArgs(::windows::core::IUnknown); -impl ItemsChangedEventArgs { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Action(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Action)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Position(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Position)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OldPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OldPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ItemCount)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemUICount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ItemUICount)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ItemsChangedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ItemsChangedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ItemsChangedEventArgs {} -impl ::core::fmt::Debug for ItemsChangedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ItemsChangedEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ItemsChangedEventArgs { - type Vtable = IItemsChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ItemsChangedEventArgs> for ::windows::core::IUnknown { - fn from(value: &ItemsChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ItemsChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ItemsChangedEventArgs> for ::windows::core::IInspectable { - fn from(value: &ItemsChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for ItemsChangedEventArgs {} -unsafe impl ::core::marker::Sync for ItemsChangedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ItemsChangedEventHandler(pub ::windows::core::IUnknown); -impl ItemsChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { - let com = ItemsChangedEventHandlerBox:: { vtable: &ItemsChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; - unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).Invoke)(::windows::core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -#[repr(C)] -struct ItemsChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { - vtable: *const ItemsChangedEventHandler_Vtbl, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ItemsChangedEventHandlerBox { - const VTABLE: ItemsChangedEventHandler_Vtbl = ItemsChangedEventHandler_Vtbl { - base__: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, - Invoke: Self::Invoke, - }; - unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void 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(-2147467262) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void 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: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - ((*this).invoke)(::core::mem::transmute(&sender), ::core::mem::transmute(&e)).into() - } -} -impl ::core::clone::Clone for ItemsChangedEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ItemsChangedEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ItemsChangedEventHandler {} -impl ::core::fmt::Debug for ItemsChangedEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ItemsChangedEventHandler").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Interface for ItemsChangedEventHandler { - type Vtable = ItemsChangedEventHandler_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x178257be_a304_482f_8bf0_b9d2e39612a3); -} -unsafe impl ::windows::core::RuntimeType for ItemsChangedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{178257be-a304-482f-8bf0-b9d2e39612a3}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -#[repr(C)] -#[doc(hidden)] -pub struct ItemsChangedEventHandler_Vtbl { - pub base__: ::windows::core::IUnknownVtbl, - pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct JumpListItemBackgroundConverter(::windows::core::IUnknown); -impl JumpListItemBackgroundConverter { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn Enabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Enabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetEnabled)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn Disabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Disabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetDisabled)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EnabledProperty() -> ::windows::core::Result { - Self::IJumpListItemBackgroundConverterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).EnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DisabledProperty() -> ::windows::core::Result { - Self::IJumpListItemBackgroundConverterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DisabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Data\"`, `\"UI_Xaml_Interop\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Convert)(::windows::core::Interface::as_raw(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Data\"`, `\"UI_Xaml_Interop\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ConvertBack)(::windows::core::Interface::as_raw(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc(hidden)] - pub fn IJumpListItemBackgroundConverterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for JumpListItemBackgroundConverter { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for JumpListItemBackgroundConverter { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for JumpListItemBackgroundConverter {} -impl ::core::fmt::Debug for JumpListItemBackgroundConverter { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("JumpListItemBackgroundConverter").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for JumpListItemBackgroundConverter { - type Vtable = IJumpListItemBackgroundConverter_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&JumpListItemBackgroundConverter> for ::windows::core::IUnknown { - fn from(value: &JumpListItemBackgroundConverter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: JumpListItemBackgroundConverter) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&JumpListItemBackgroundConverter> for ::windows::core::IInspectable { - fn from(value: &JumpListItemBackgroundConverter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for JumpListItemBackgroundConverter {} -unsafe impl ::core::marker::Sync for JumpListItemBackgroundConverter {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct JumpListItemForegroundConverter(::windows::core::IUnknown); -impl JumpListItemForegroundConverter { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn Enabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Enabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetEnabled)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn Disabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Disabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetDisabled)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EnabledProperty() -> ::windows::core::Result { - Self::IJumpListItemForegroundConverterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).EnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DisabledProperty() -> ::windows::core::Result { - Self::IJumpListItemForegroundConverterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DisabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Data\"`, `\"UI_Xaml_Interop\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Convert)(::windows::core::Interface::as_raw(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Data\"`, `\"UI_Xaml_Interop\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ConvertBack)(::windows::core::Interface::as_raw(this), value.into_param().abi(), targettype.into_param().abi(), parameter.into_param().abi(), language.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc(hidden)] - pub fn IJumpListItemForegroundConverterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for JumpListItemForegroundConverter { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for JumpListItemForegroundConverter { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for JumpListItemForegroundConverter {} -impl ::core::fmt::Debug for JumpListItemForegroundConverter { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("JumpListItemForegroundConverter").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for JumpListItemForegroundConverter { - type Vtable = IJumpListItemForegroundConverter_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&JumpListItemForegroundConverter> for ::windows::core::IUnknown { - fn from(value: &JumpListItemForegroundConverter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: JumpListItemForegroundConverter) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&JumpListItemForegroundConverter> for ::windows::core::IInspectable { - fn from(value: &JumpListItemForegroundConverter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for JumpListItemForegroundConverter {} -unsafe impl ::core::marker::Sync for JumpListItemForegroundConverter {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct LayoutInformation(::windows::core::IUnknown); -impl LayoutInformation { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn GetLayoutExceptionElement<'a, Param0: ::windows::core::IntoParam<'a, ::windows::core::IInspectable>>(dispatcher: Param0) -> ::windows::core::Result { - Self::ILayoutInformationStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetLayoutExceptionElement)(::windows::core::Interface::as_raw(this), dispatcher.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetLayoutSlot)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetAvailableSize)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ILayoutInformationStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn ILayoutInformationStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for LayoutInformation { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LayoutInformation { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LayoutInformation {} -impl ::core::fmt::Debug for LayoutInformation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LayoutInformation").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LayoutInformation { - type Vtable = ILayoutInformation_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LayoutInformation> for ::windows::core::IUnknown { - fn from(value: &LayoutInformation) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LayoutInformation) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LayoutInformation> for ::windows::core::IInspectable { - fn from(value: &LayoutInformation) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for LayoutInformation {} -unsafe impl ::core::marker::Sync for LayoutInformation {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ListViewItemPresenter(::windows::core::IUnknown); -impl ListViewItemPresenter { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionCheckMarkVisualEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectionCheckMarkVisualEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetSelectionCheckMarkVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetSelectionCheckMarkVisualEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckHintBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckHintBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckHintBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckSelectingBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckSelectingBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckSelectingBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetDragBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn DragForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragForeground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetDragForeground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FocusBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetFocusBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn PlaceholderBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PlaceholderBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetPlaceholderBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetPointerOverBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedForeground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedForeground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedPointerOverBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedPointerOverBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedBorderThickness(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBorderThickness)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetSelectedBorderThickness)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DisabledOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DisabledOpacity)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetDisabledOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDisabledOpacity)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragOpacity(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DragOpacity)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetDragOpacity(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDragOpacity)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ReorderHintOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ReorderHintOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetReorderHintOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetReorderHintOffset)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterHorizontalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ListViewItemPresenterHorizontalContentAlignment)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn SetListViewItemPresenterHorizontalContentAlignment(&self, value: super::super::HorizontalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetListViewItemPresenterHorizontalContentAlignment)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterVerticalContentAlignment(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ListViewItemPresenterVerticalContentAlignment)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn SetListViewItemPresenterVerticalContentAlignment(&self, value: super::super::VerticalAlignment) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetListViewItemPresenterVerticalContentAlignment)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterPadding(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ListViewItemPresenterPadding)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[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).SetListViewItemPresenterPadding)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverBackgroundMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackgroundMargin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetPointerOverBackgroundMargin)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ContentMargin(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ContentMargin)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetContentMargin)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPressedBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPressedBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedPressedBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn PressedBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PressedBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetPressedBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn FocusSecondaryBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FocusSecondaryBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetFocusSecondaryBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CheckMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetCheckMode(&self, value: ListViewItemPresenterCheckMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetCheckMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverForeground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverForeground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetPointerOverForeground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn RevealBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RevealBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetRevealBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn RevealBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RevealBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetRevealBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn RevealBorderThickness(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).RevealBorderThickness)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetRevealBorderThickness)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn RevealBackgroundShowsAboveContent(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).RevealBackgroundShowsAboveContent)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetRevealBackgroundShowsAboveContent(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetRevealBackgroundShowsAboveContent)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedDisabledBackground(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedDisabledBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedDisabledBackground)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckPressedBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckPressedBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckDisabledBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckDisabledBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPointerOverBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPointerOverBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxPointerOverBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPressedBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxPressedBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxDisabledBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxDisabledBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxSelectedBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedPointerOverBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedPointerOverBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxSelectedPointerOverBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedPressedBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxSelectedPressedBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxSelectedDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedDisabledBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxSelectedDisabledBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPointerOverBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxPointerOverBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn CheckBoxPressedBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPressedBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxPressedBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxDisabledBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetCheckBoxDisabledBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxCornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxCornerRadius)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetCheckBoxCornerRadius)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorCornerRadius(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorCornerRadius)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetSelectionIndicatorCornerRadius)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorVisualEnabled(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorVisualEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetSelectionIndicatorVisualEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetSelectionIndicatorVisualEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetSelectionIndicatorMode(&self, value: ListViewItemPresenterSelectionIndicatorMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetSelectionIndicatorMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectionIndicatorBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorPointerOverBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorPointerOverBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectionIndicatorPointerOverBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorPressedBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorPressedBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectionIndicatorPressedBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectionIndicatorDisabledBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorDisabledBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectionIndicatorDisabledBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedPressedBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPressedBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedPressedBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn SelectedDisabledBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedDisabledBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedDisabledBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedInnerBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetSelectedInnerBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn PointerOverBorderBrush(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetPointerOverBorderBrush)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IListViewItemPresenterFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IListViewItemPresenterFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionCheckMarkVisualEnabledProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionCheckMarkVisualEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckHintBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckHintBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckSelectingBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckSelectingBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragForegroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragForegroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FocusBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FocusBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PlaceholderBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PlaceholderBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedForegroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedForegroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedPointerOverBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedPointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPointerOverBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedBorderThicknessProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBorderThicknessProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DisabledOpacityProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DisabledOpacityProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragOpacityProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DragOpacityProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ReorderHintOffsetProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ReorderHintOffsetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterHorizontalContentAlignmentProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ListViewItemPresenterHorizontalContentAlignmentProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterVerticalContentAlignmentProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ListViewItemPresenterVerticalContentAlignmentProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"deprecated\"`*"] - #[cfg(feature = "deprecated")] - pub fn ListViewItemPresenterPaddingProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ListViewItemPresenterPaddingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverBackgroundMarginProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBackgroundMarginProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ContentMarginProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ContentMarginProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedPressedBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPressedBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PressedBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PressedBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FocusSecondaryBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FocusSecondaryBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckModeProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverForegroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverForegroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn RevealBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RevealBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn RevealBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RevealBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn RevealBorderThicknessProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RevealBorderThicknessProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn RevealBackgroundShowsAboveContentProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).RevealBackgroundShowsAboveContentProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedDisabledBackgroundProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedDisabledBackgroundProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckPressedBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckDisabledBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxPointerOverBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPointerOverBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPressedBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxDisabledBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxSelectedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxSelectedPointerOverBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedPointerOverBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxSelectedPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedPressedBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxSelectedDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxSelectedDisabledBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxPointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPointerOverBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxPressedBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxPressedBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxDisabledBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxDisabledBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CheckBoxCornerRadiusProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CheckBoxCornerRadiusProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorCornerRadiusProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorCornerRadiusProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorVisualEnabledProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorVisualEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorModeProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorPointerOverBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorPointerOverBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorPressedBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorPressedBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectionIndicatorDisabledBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectionIndicatorDisabledBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedPressedBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedPressedBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedDisabledBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedDisabledBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedInnerBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedInnerBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PointerOverBorderBrushProperty() -> ::windows::core::Result { - Self::IListViewItemPresenterStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PointerOverBorderBrushProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IListViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IListViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IListViewItemPresenterStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IListViewItemPresenterStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IListViewItemPresenterStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ListViewItemPresenter { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewItemPresenter { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewItemPresenter {} -impl ::core::fmt::Debug for ListViewItemPresenter { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewItemPresenter").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewItemPresenter { - type Vtable = IListViewItemPresenter_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemPresenter> for ::windows::core::IUnknown { - fn from(value: &ListViewItemPresenter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemPresenter) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemPresenter> for ::windows::core::IInspectable { - fn from(value: &ListViewItemPresenter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ListViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ListViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewItemPresenter {} -unsafe impl ::core::marker::Sync for ListViewItemPresenter {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ListViewItemPresenterCheckMode(pub i32); -impl ListViewItemPresenterCheckMode { - pub const Inline: Self = Self(0i32); - pub const Overlay: Self = Self(1i32); -} -impl ::core::marker::Copy for ListViewItemPresenterCheckMode {} -impl ::core::clone::Clone for ListViewItemPresenterCheckMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ListViewItemPresenterCheckMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ListViewItemPresenterCheckMode { - type Abi = Self; -} -impl ::core::fmt::Debug for ListViewItemPresenterCheckMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewItemPresenterCheckMode").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ListViewItemPresenterSelectionIndicatorMode(pub i32); -impl ListViewItemPresenterSelectionIndicatorMode { - pub const Inline: Self = Self(0i32); - pub const Overlay: Self = Self(1i32); -} -impl ::core::marker::Copy for ListViewItemPresenterSelectionIndicatorMode {} -impl ::core::clone::Clone for ListViewItemPresenterSelectionIndicatorMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ListViewItemPresenterSelectionIndicatorMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ListViewItemPresenterSelectionIndicatorMode { - type Abi = Self; -} -impl ::core::fmt::Debug for ListViewItemPresenterSelectionIndicatorMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewItemPresenterSelectionIndicatorMode").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ListViewItemTemplateSettings(::windows::core::IUnknown); -impl ListViewItemTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DragItemsCount(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DragItemsCount)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ListViewItemTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ListViewItemTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ListViewItemTemplateSettings {} -impl ::core::fmt::Debug for ListViewItemTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ListViewItemTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ListViewItemTemplateSettings { - type Vtable = IListViewItemTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ListViewItemTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ListViewItemTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ListViewItemTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ListViewItemTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ListViewItemTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ListViewItemTemplateSettings {} -unsafe impl ::core::marker::Sync for ListViewItemTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct LoopingSelector(::windows::core::IUnknown); -impl LoopingSelector { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShouldLoop(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ShouldLoop)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetShouldLoop(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetShouldLoop)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn Items(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Items)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`*"] - #[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).SetItems)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectedIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetSelectedIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetSelectedIndex)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedItem(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedItem)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetSelectedItem)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ItemWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetItemWidth(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetItemWidth)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ItemHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetItemHeight(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetItemHeight)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemTemplate(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemTemplate)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetItemTemplate)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectionChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveSelectionChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShouldLoopProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ShouldLoopProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemsProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedIndexProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedIndexProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedItemProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedItemProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemWidthProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemWidthProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemHeightProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemHeightProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ItemTemplateProperty() -> ::windows::core::Result { - Self::ILoopingSelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ItemTemplateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ILoopingSelectorStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for LoopingSelector { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LoopingSelector { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LoopingSelector {} -impl ::core::fmt::Debug for LoopingSelector { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LoopingSelector").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LoopingSelector { - type Vtable = ILoopingSelector_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelector> for ::windows::core::IUnknown { - fn from(value: &LoopingSelector) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelector) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelector> for ::windows::core::IInspectable { - fn from(value: &LoopingSelector) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: LoopingSelector) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: LoopingSelector) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelector) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for LoopingSelector {} -unsafe impl ::core::marker::Sync for LoopingSelector {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct LoopingSelectorItem(::windows::core::IUnknown); -impl LoopingSelectorItem {} -impl ::core::clone::Clone for LoopingSelectorItem { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LoopingSelectorItem { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LoopingSelectorItem {} -impl ::core::fmt::Debug for LoopingSelectorItem { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LoopingSelectorItem").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LoopingSelectorItem { - type Vtable = ILoopingSelectorItem_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorItem> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorItem) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorItem) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorItem> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorItem) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorItem {} -unsafe impl ::core::marker::Sync for LoopingSelectorItem {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct LoopingSelectorPanel(::windows::core::IUnknown); -impl LoopingSelectorPanel { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreHorizontalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreVerticalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveHorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveVerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetIrregularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetRegularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, offset, result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for LoopingSelectorPanel { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for LoopingSelectorPanel { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for LoopingSelectorPanel {} -impl ::core::fmt::Debug for LoopingSelectorPanel { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("LoopingSelectorPanel").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for LoopingSelectorPanel { - type Vtable = ILoopingSelectorPanel_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for ::windows::core::IUnknown { - fn from(value: &LoopingSelectorPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: LoopingSelectorPanel) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&LoopingSelectorPanel> for ::windows::core::IInspectable { - fn from(value: &LoopingSelectorPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -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::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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: LoopingSelectorPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for LoopingSelectorPanel {} -unsafe impl ::core::marker::Sync for LoopingSelectorPanel {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct MenuFlyoutItemTemplateSettings(::windows::core::IUnknown); -impl MenuFlyoutItemTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn KeyboardAcceleratorTextMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).KeyboardAcceleratorTextMinWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MenuFlyoutItemTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MenuFlyoutItemTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MenuFlyoutItemTemplateSettings {} -impl ::core::fmt::Debug for MenuFlyoutItemTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MenuFlyoutItemTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MenuFlyoutItemTemplateSettings { - type Vtable = IMenuFlyoutItemTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutItemTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutItemTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutItemTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutItemTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for MenuFlyoutItemTemplateSettings {} -unsafe impl ::core::marker::Sync for MenuFlyoutItemTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct MenuFlyoutPresenterTemplateSettings(::windows::core::IUnknown); -impl MenuFlyoutPresenterTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FlyoutContentMinWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FlyoutContentMinWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for MenuFlyoutPresenterTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for MenuFlyoutPresenterTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for MenuFlyoutPresenterTemplateSettings {} -impl ::core::fmt::Debug for MenuFlyoutPresenterTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("MenuFlyoutPresenterTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for MenuFlyoutPresenterTemplateSettings { - type Vtable = IMenuFlyoutPresenterTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&MenuFlyoutPresenterTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &MenuFlyoutPresenterTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: MenuFlyoutPresenterTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for MenuFlyoutPresenterTemplateSettings {} -unsafe impl ::core::marker::Sync for MenuFlyoutPresenterTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct NavigationViewItemPresenter(::windows::core::IUnknown); -impl NavigationViewItemPresenter { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Icon(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Icon)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetIcon)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::INavigationViewItemPresenterFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::INavigationViewItemPresenterFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IconProperty() -> ::windows::core::Result { - Self::INavigationViewItemPresenterStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IconProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn INavigationViewItemPresenterFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn INavigationViewItemPresenterStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for NavigationViewItemPresenter { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for NavigationViewItemPresenter { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for NavigationViewItemPresenter {} -impl ::core::fmt::Debug for NavigationViewItemPresenter { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("NavigationViewItemPresenter").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for NavigationViewItemPresenter { - type Vtable = INavigationViewItemPresenter_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for ::windows::core::IUnknown { - fn from(value: &NavigationViewItemPresenter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: NavigationViewItemPresenter) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&NavigationViewItemPresenter> for ::windows::core::IInspectable { - fn from(value: &NavigationViewItemPresenter) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: NavigationViewItemPresenter) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for NavigationViewItemPresenter {} -unsafe impl ::core::marker::Sync for NavigationViewItemPresenter {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct OrientedVirtualizingPanel(::windows::core::IUnknown); -impl OrientedVirtualizingPanel { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).GetInsertionIndexes)(::windows::core::Interface::as_raw(this), position.into_param().abi(), first, second).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CanVerticallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanVerticallyScroll)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetCanVerticallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCanVerticallyScroll)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CanHorizontallyScroll(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CanHorizontallyScroll)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetCanHorizontallyScroll(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetCanHorizontallyScroll)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExtentWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExtentWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ExtentHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ExtentHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ViewportWidth(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ViewportWidth)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ViewportHeight(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ViewportHeight)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ScrollOwner(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ScrollOwner)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetScrollOwner)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineUp)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineDown)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineLeft)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LineRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).LineRight)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageUp)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageDown)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageLeft)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PageRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).PageRight)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelUp(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelUp)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelDown(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelDown)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelLeft(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelLeft)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MouseWheelRight(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).MouseWheelRight)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetHorizontalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetHorizontalOffset)(::windows::core::Interface::as_raw(this), offset).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetVerticalOffset(&self, offset: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetVerticalOffset)(::windows::core::Interface::as_raw(this), offset).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MakeVisible)(::windows::core::Interface::as_raw(this), visual.into_param().abi(), rectangle.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreHorizontalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreVerticalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveHorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveVerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetIrregularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetRegularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, offset, result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for OrientedVirtualizingPanel { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for OrientedVirtualizingPanel { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for OrientedVirtualizingPanel {} -impl ::core::fmt::Debug for OrientedVirtualizingPanel { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("OrientedVirtualizingPanel").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for OrientedVirtualizingPanel { - type Vtable = IOrientedVirtualizingPanel_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for ::windows::core::IUnknown { - fn from(value: &OrientedVirtualizingPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: OrientedVirtualizingPanel) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&OrientedVirtualizingPanel> for ::windows::core::IInspectable { - fn from(value: &OrientedVirtualizingPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -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) - } -} -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) - } -} -#[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::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for super::Panel { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: OrientedVirtualizingPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for OrientedVirtualizingPanel {} -unsafe impl ::core::marker::Sync for OrientedVirtualizingPanel {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct PickerFlyoutBase(::windows::core::IUnknown); -impl PickerFlyoutBase { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn TitleProperty() -> ::windows::core::Result { - Self::IPickerFlyoutBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TitleProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).GetTitle)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetTitle)(::windows::core::Interface::as_raw(this), element.into_param().abi(), value.into_param().abi()).ok() }) - } - #[doc(hidden)] - pub fn IPickerFlyoutBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PickerFlyoutBase { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PickerFlyoutBase { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PickerFlyoutBase {} -impl ::core::fmt::Debug for PickerFlyoutBase { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PickerFlyoutBase").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PickerFlyoutBase { - type Vtable = IPickerFlyoutBase_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PickerFlyoutBase> for ::windows::core::IUnknown { - fn from(value: &PickerFlyoutBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PickerFlyoutBase) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PickerFlyoutBase> for ::windows::core::IInspectable { - fn from(value: &PickerFlyoutBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for FlyoutBase { - fn from(value: PickerFlyoutBase) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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 ::core::convert::From for super::super::DependencyObject { - fn from(value: PickerFlyoutBase) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for PickerFlyoutBase {} -unsafe impl ::core::marker::Sync for PickerFlyoutBase {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct PivotHeaderItem(::windows::core::IUnknown); -impl PivotHeaderItem { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IPivotHeaderItemFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IPivotHeaderItemFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IPivotHeaderItemFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PivotHeaderItem { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PivotHeaderItem { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PivotHeaderItem {} -impl ::core::fmt::Debug for PivotHeaderItem { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PivotHeaderItem").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PivotHeaderItem { - type Vtable = IPivotHeaderItem_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotHeaderItem> for ::windows::core::IUnknown { - fn from(value: &PivotHeaderItem) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotHeaderItem) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotHeaderItem> for ::windows::core::IInspectable { - fn from(value: &PivotHeaderItem) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotHeaderItem) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for PivotHeaderItem {} -unsafe impl ::core::marker::Sync for PivotHeaderItem {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct PivotHeaderPanel(::windows::core::IUnknown); -impl PivotHeaderPanel { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for PivotHeaderPanel { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PivotHeaderPanel { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PivotHeaderPanel {} -impl ::core::fmt::Debug for PivotHeaderPanel { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PivotHeaderPanel").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PivotHeaderPanel { - type Vtable = IPivotHeaderPanel_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotHeaderPanel> for ::windows::core::IUnknown { - fn from(value: &PivotHeaderPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotHeaderPanel) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotHeaderPanel> for ::windows::core::IInspectable { - fn from(value: &PivotHeaderPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Panel { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotHeaderPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for PivotHeaderPanel {} -unsafe impl ::core::marker::Sync for PivotHeaderPanel {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct PivotPanel(::windows::core::IUnknown); -impl PivotPanel { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreHorizontalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreHorizontalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn AreVerticalSnapPointsRegular(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).AreVerticalSnapPointsRegular)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveHorizontalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveVerticalSnapPointsChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`*"] - #[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__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).GetIrregularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetRegularSnapPoints)(::windows::core::Interface::as_raw(this), orientation, alignment, offset, result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for PivotPanel { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for PivotPanel { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for PivotPanel {} -impl ::core::fmt::Debug for PivotPanel { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PivotPanel").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for PivotPanel { - type Vtable = IPivotPanel_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotPanel> for ::windows::core::IUnknown { - fn from(value: &PivotPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: PivotPanel) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&PivotPanel> for ::windows::core::IInspectable { - fn from(value: &PivotPanel) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -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::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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: PivotPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: PivotPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: PivotPanel) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for PivotPanel {} -unsafe impl ::core::marker::Sync for PivotPanel {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct PlacementMode(pub i32); -impl PlacementMode { - pub const Bottom: Self = Self(2i32); - pub const Left: Self = Self(9i32); - pub const Mouse: Self = Self(7i32); - pub const Right: Self = Self(4i32); - pub const Top: Self = Self(10i32); -} -impl ::core::marker::Copy for PlacementMode {} -impl ::core::clone::Clone for PlacementMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for PlacementMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for PlacementMode { - type Abi = Self; -} -impl ::core::fmt::Debug for PlacementMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PlacementMode").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct Popup(::windows::core::IUnknown); -impl Popup { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Child(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Child)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetChild)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsOpen(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsOpen)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetIsOpen(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsOpen)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetHorizontalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetHorizontalOffset)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn VerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).VerticalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetVerticalOffset(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetVerticalOffset)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`, `\"UI_Xaml_Media_Animation\"`*"] - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ChildTransitions(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ChildTransitions)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`, `\"UI_Xaml_Media_Animation\"`*"] - #[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).SetChildTransitions)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsLightDismissEnabled(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsLightDismissEnabled)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetIsLightDismissEnabled(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsLightDismissEnabled)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Opened)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveOpened)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Closed)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveClosed)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LightDismissOverlayMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetLightDismissOverlayMode(&self, value: super::LightDismissOverlayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetLightDismissOverlayMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShouldConstrainToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ShouldConstrainToRootBounds)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetShouldConstrainToRootBounds(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetShouldConstrainToRootBounds)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsConstrainedToRootBounds(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsConstrainedToRootBounds)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PlacementTarget(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PlacementTarget)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetPlacementTarget)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DesiredPlacement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DesiredPlacement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetDesiredPlacement(&self, value: PopupPlacementMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetDesiredPlacement)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ActualPlacement(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ActualPlacement)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ActualPlacementChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveActualPlacementChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ChildProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ChildProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsOpenProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsOpenProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn HorizontalOffsetProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HorizontalOffsetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn VerticalOffsetProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).VerticalOffsetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ChildTransitionsProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ChildTransitionsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsLightDismissEnabledProperty() -> ::windows::core::Result { - Self::IPopupStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsLightDismissEnabledProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LightDismissOverlayModeProperty() -> ::windows::core::Result { - Self::IPopupStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LightDismissOverlayModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ShouldConstrainToRootBoundsProperty() -> ::windows::core::Result { - Self::IPopupStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ShouldConstrainToRootBoundsProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn PlacementTargetProperty() -> ::windows::core::Result { - Self::IPopupStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).PlacementTargetProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DesiredPlacementProperty() -> ::windows::core::Result { - Self::IPopupStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DesiredPlacementProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IPopupStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IPopupStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IPopupStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IPopupStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for Popup { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for Popup { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for Popup {} -impl ::core::fmt::Debug for Popup { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("Popup").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for Popup { - type Vtable = IPopup_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&Popup> for ::windows::core::IUnknown { - fn from(value: &Popup) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: Popup) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&Popup> for ::windows::core::IInspectable { - fn from(value: &Popup) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: Popup) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: Popup) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for Popup {} -unsafe impl ::core::marker::Sync for Popup {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct PopupPlacementMode(pub i32); -impl PopupPlacementMode { - pub const Auto: Self = Self(0i32); - pub const Top: Self = Self(1i32); - pub const Bottom: Self = Self(2i32); - pub const Left: Self = Self(3i32); - pub const Right: Self = Self(4i32); - pub const TopEdgeAlignedLeft: Self = Self(5i32); - pub const TopEdgeAlignedRight: Self = Self(6i32); - pub const BottomEdgeAlignedLeft: Self = Self(7i32); - pub const BottomEdgeAlignedRight: Self = Self(8i32); - pub const LeftEdgeAlignedTop: Self = Self(9i32); - pub const LeftEdgeAlignedBottom: Self = Self(10i32); - pub const RightEdgeAlignedTop: Self = Self(11i32); - pub const RightEdgeAlignedBottom: Self = Self(12i32); -} -impl ::core::marker::Copy for PopupPlacementMode {} -impl ::core::clone::Clone for PopupPlacementMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for PopupPlacementMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for PopupPlacementMode { - type Abi = Self; -} -impl ::core::fmt::Debug for PopupPlacementMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("PopupPlacementMode").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ProgressBarTemplateSettings(::windows::core::IUnknown); -impl ProgressBarTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EllipseDiameter(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).EllipseDiameter)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EllipseOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).EllipseOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EllipseAnimationWellPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).EllipseAnimationWellPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EllipseAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).EllipseAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ContainerAnimationStartPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ContainerAnimationStartPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ContainerAnimationEndPosition(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ContainerAnimationEndPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IndicatorLengthDelta(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IndicatorLengthDelta)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ProgressBarTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ProgressBarTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ProgressBarTemplateSettings {} -impl ::core::fmt::Debug for ProgressBarTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ProgressBarTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ProgressBarTemplateSettings { - type Vtable = IProgressBarTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressBarTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ProgressBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressBarTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressBarTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ProgressBarTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressBarTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ProgressBarTemplateSettings {} -unsafe impl ::core::marker::Sync for ProgressBarTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ProgressRingTemplateSettings(::windows::core::IUnknown); -impl ProgressRingTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EllipseDiameter(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).EllipseDiameter)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn EllipseOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).EllipseOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaxSideLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).MaxSideLength)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ProgressRingTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ProgressRingTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ProgressRingTemplateSettings {} -impl ::core::fmt::Debug for ProgressRingTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ProgressRingTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ProgressRingTemplateSettings { - type Vtable = IProgressRingTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressRingTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ProgressRingTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ProgressRingTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ProgressRingTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ProgressRingTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ProgressRingTemplateSettings) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ProgressRingTemplateSettings {} -unsafe impl ::core::marker::Sync for ProgressRingTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct RangeBase(::windows::core::IUnknown); -impl RangeBase { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Minimum(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Minimum)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMinimum(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMinimum)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Maximum(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Maximum)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetMaximum(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetMaximum)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SmallChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SmallChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetSmallChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetSmallChange)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LargeChange(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LargeChange)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetLargeChange(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetLargeChange)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Value(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Value)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetValue(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetValue)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ValueChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveValueChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MinimumProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MinimumProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn MaximumProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).MaximumProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SmallChangeProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SmallChangeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn LargeChangeProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LargeChangeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ValueProperty() -> ::windows::core::Result { - Self::IRangeBaseStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ValueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRangeBaseStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RangeBase { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RangeBase { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RangeBase {} -impl ::core::fmt::Debug for RangeBase { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RangeBase").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RangeBase { - type Vtable = IRangeBase_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeBase> for ::windows::core::IUnknown { - fn from(value: &RangeBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RangeBase) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeBase> for ::windows::core::IInspectable { - fn from(value: &RangeBase) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: RangeBase) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: RangeBase) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RangeBase) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for RangeBase {} -unsafe impl ::core::marker::Sync for RangeBase {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct RangeBaseValueChangedEventArgs(::windows::core::IUnknown); -impl RangeBaseValueChangedEventArgs { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OldValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OldValue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NewValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NewValue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for RangeBaseValueChangedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RangeBaseValueChangedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RangeBaseValueChangedEventArgs {} -impl ::core::fmt::Debug for RangeBaseValueChangedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RangeBaseValueChangedEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RangeBaseValueChangedEventArgs { - type Vtable = IRangeBaseValueChangedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for ::windows::core::IUnknown { - fn from(value: &RangeBaseValueChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RangeBaseValueChangedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RangeBaseValueChangedEventArgs> for ::windows::core::IInspectable { - fn from(value: &RangeBaseValueChangedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: RangeBaseValueChangedEventArgs) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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)) - } -} -unsafe impl ::core::marker::Send for RangeBaseValueChangedEventArgs {} -unsafe impl ::core::marker::Sync for RangeBaseValueChangedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct RangeBaseValueChangedEventHandler(pub ::windows::core::IUnknown); -impl RangeBaseValueChangedEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { - let com = RangeBaseValueChangedEventHandlerBox:: { vtable: &RangeBaseValueChangedEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; - unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).Invoke)(::windows::core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -#[repr(C)] -struct RangeBaseValueChangedEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { - vtable: *const RangeBaseValueChangedEventHandler_Vtbl, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> RangeBaseValueChangedEventHandlerBox { - const VTABLE: RangeBaseValueChangedEventHandler_Vtbl = RangeBaseValueChangedEventHandler_Vtbl { - base__: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, - Invoke: Self::Invoke, - }; - unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void 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(-2147467262) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void 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: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - ((*this).invoke)(::core::mem::transmute(&sender), ::core::mem::transmute(&e)).into() - } -} -impl ::core::clone::Clone for RangeBaseValueChangedEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RangeBaseValueChangedEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RangeBaseValueChangedEventHandler {} -impl ::core::fmt::Debug for RangeBaseValueChangedEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RangeBaseValueChangedEventHandler").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Interface for RangeBaseValueChangedEventHandler { - type Vtable = RangeBaseValueChangedEventHandler_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe3906fd9_4d1b_4ac8_a43c_c3b908742799); -} -unsafe impl ::windows::core::RuntimeType for RangeBaseValueChangedEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{e3906fd9-4d1b-4ac8-a43c-c3b908742799}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -#[repr(C)] -#[doc(hidden)] -pub struct RangeBaseValueChangedEventHandler_Vtbl { - pub base__: ::windows::core::IUnknownVtbl, - pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct RepeatButton(::windows::core::IUnknown); -impl RepeatButton { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Delay(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Delay)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetDelay(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetDelay)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Interval(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Interval)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetInterval(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetInterval)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn DelayProperty() -> ::windows::core::Result { - Self::IRepeatButtonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DelayProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IntervalProperty() -> ::windows::core::Result { - Self::IRepeatButtonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IntervalProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IRepeatButtonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for RepeatButton { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for RepeatButton { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for RepeatButton {} -impl ::core::fmt::Debug for RepeatButton { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("RepeatButton").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for RepeatButton { - type Vtable = IRepeatButton_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RepeatButton> for ::windows::core::IUnknown { - fn from(value: &RepeatButton) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: RepeatButton) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&RepeatButton> for ::windows::core::IInspectable { - fn from(value: &RepeatButton) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: RepeatButton) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: RepeatButton) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: RepeatButton) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: RepeatButton) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: RepeatButton) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for RepeatButton {} -unsafe impl ::core::marker::Sync for RepeatButton {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ScrollBar(::windows::core::IUnknown); -impl ScrollBar { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn Orientation(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Orientation)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetOrientation(&self, value: super::Orientation) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetOrientation)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ViewportSize(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ViewportSize)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetViewportSize(&self, value: f64) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetViewportSize)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IndicatorMode(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IndicatorMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetIndicatorMode(&self, value: ScrollingIndicatorMode) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIndicatorMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Scroll)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveScroll)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OrientationProperty() -> ::windows::core::Result { - Self::IScrollBarStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).OrientationProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ViewportSizeProperty() -> ::windows::core::Result { - Self::IScrollBarStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ViewportSizeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IndicatorModeProperty() -> ::windows::core::Result { - Self::IScrollBarStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IndicatorModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IScrollBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ScrollBar { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ScrollBar { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ScrollBar {} -impl ::core::fmt::Debug for ScrollBar { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollBar").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ScrollBar { - type Vtable = IScrollBar_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollBar> for ::windows::core::IUnknown { - fn from(value: &ScrollBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollBar) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollBar> for ::windows::core::IInspectable { - fn from(value: &ScrollBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: ScrollBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ScrollBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ScrollBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ScrollBar) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ScrollBar {} -unsafe impl ::core::marker::Sync for ScrollBar {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ScrollEventArgs(::windows::core::IUnknown); -impl ScrollEventArgs { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NewValue(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NewValue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn ScrollEventType(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ScrollEventType)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ScrollEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ScrollEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ScrollEventArgs {} -impl ::core::fmt::Debug for ScrollEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollEventArgs").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ScrollEventArgs { - type Vtable = IScrollEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollEventArgs> for ::windows::core::IUnknown { - fn from(value: &ScrollEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ScrollEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ScrollEventArgs> for ::windows::core::IInspectable { - fn from(value: &ScrollEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::RoutedEventArgs { - fn from(value: ScrollEventArgs) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for ScrollEventArgs {} -unsafe impl ::core::marker::Sync for ScrollEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ScrollEventHandler(pub ::windows::core::IUnknown); -impl ScrollEventHandler { - pub fn new, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static>(invoke: F) -> Self { - let com = ScrollEventHandlerBox:: { vtable: &ScrollEventHandlerBox::::VTABLE, count: ::windows::core::RefCount::new(1), invoke }; - unsafe { ::core::mem::transmute(::windows::core::alloc::boxed::Box::new(com)) } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).Invoke)(::windows::core::Interface::as_raw(this), sender.into_param().abi(), e.into_param().abi()).ok() } - } -} -#[repr(C)] -struct ScrollEventHandlerBox, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> { - vtable: *const ScrollEventHandler_Vtbl, - invoke: F, - count: ::windows::core::RefCount, -} -impl, &::core::option::Option) -> ::windows::core::Result<()> + ::core::marker::Send + 'static> ScrollEventHandlerBox { - const VTABLE: ScrollEventHandler_Vtbl = ScrollEventHandler_Vtbl { - base__: ::windows::core::IUnknownVtbl { QueryInterface: Self::QueryInterface, AddRef: Self::AddRef, Release: Self::Release }, - Invoke: Self::Invoke, - }; - unsafe extern "system" fn QueryInterface(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *const ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void 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(-2147467262) - } else { - (*this).count.add_ref(); - ::windows::core::HRESULT(0) - } - } - unsafe extern "system" fn AddRef(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - (*this).count.add_ref() - } - unsafe extern "system" fn Release(this: *mut ::core::ffi::c_void) -> u32 { - let this = this as *mut *mut ::core::ffi::c_void 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: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = this as *mut *mut ::core::ffi::c_void as *mut Self; - ((*this).invoke)(::core::mem::transmute(&sender), ::core::mem::transmute(&e)).into() - } -} -impl ::core::clone::Clone for ScrollEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ScrollEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ScrollEventHandler {} -impl ::core::fmt::Debug for ScrollEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollEventHandler").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Interface for ScrollEventHandler { - type Vtable = ScrollEventHandler_Vtbl; - const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x8860b0a4_a383_4c83_b306_a1c39d7db87f); -} -unsafe impl ::windows::core::RuntimeType for ScrollEventHandler { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"{8860b0a4-a383-4c83-b306-a1c39d7db87f}"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -#[repr(C)] -#[doc(hidden)] -pub struct ScrollEventHandler_Vtbl { - pub base__: ::windows::core::IUnknownVtbl, - pub Invoke: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ScrollEventType(pub i32); -impl ScrollEventType { - pub const SmallDecrement: Self = Self(0i32); - pub const SmallIncrement: Self = Self(1i32); - pub const LargeDecrement: Self = Self(2i32); - pub const LargeIncrement: Self = Self(3i32); - pub const ThumbPosition: Self = Self(4i32); - pub const ThumbTrack: Self = Self(5i32); - pub const First: Self = Self(6i32); - pub const Last: Self = Self(7i32); - pub const EndScroll: Self = Self(8i32); -} -impl ::core::marker::Copy for ScrollEventType {} -impl ::core::clone::Clone for ScrollEventType { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ScrollEventType { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ScrollEventType { - type Abi = Self; -} -impl ::core::fmt::Debug for ScrollEventType { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollEventType").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct ScrollingIndicatorMode(pub i32); -impl ScrollingIndicatorMode { - pub const None: Self = Self(0i32); - pub const TouchIndicator: Self = Self(1i32); - pub const MouseIndicator: Self = Self(2i32); -} -impl ::core::marker::Copy for ScrollingIndicatorMode {} -impl ::core::clone::Clone for ScrollingIndicatorMode { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for ScrollingIndicatorMode { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for ScrollingIndicatorMode { - type Abi = Self; -} -impl ::core::fmt::Debug for ScrollingIndicatorMode { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ScrollingIndicatorMode").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct Selector(::windows::core::IUnknown); -impl Selector { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedIndex(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectedIndex)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetSelectedIndex(&self, value: i32) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetSelectedIndex)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedItem(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedItem)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetSelectedItem)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedValue(&self) -> ::windows::core::Result<::windows::core::IInspectable> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedValue)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::IInspectable>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetSelectedValue)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedValuePath(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedValuePath)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - 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).SetSelectedValuePath)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn IsSynchronizedWithCurrentItem(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsSynchronizedWithCurrentItem)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).SetIsSynchronizedWithCurrentItem)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).SelectionChanged)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveSelectionChanged)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedIndexProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedIndexProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedItemProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedItemProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedValueProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedValueProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SelectedValuePathProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).SelectedValuePathProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsSynchronizedWithCurrentItemProperty() -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsSynchronizedWithCurrentItemProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn GetIsSelectionActive<'a, Param0: ::windows::core::IntoParam<'a, super::super::DependencyObject>>(element: Param0) -> ::windows::core::Result { - Self::ISelectorStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).GetIsSelectionActive)(::windows::core::Interface::as_raw(this), element.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISelectorStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for Selector { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for Selector { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for Selector {} -impl ::core::fmt::Debug for Selector { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("Selector").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for Selector { - type Vtable = ISelector_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&Selector> for ::windows::core::IUnknown { - fn from(value: &Selector) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: Selector) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&Selector> for ::windows::core::IInspectable { - fn from(value: &Selector) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -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::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::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: Selector) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: Selector) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: Selector) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: Selector) -> Self { - ::core::convert::From::from(&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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for Selector {} -unsafe impl ::core::marker::Sync for Selector {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct SelectorItem(::windows::core::IUnknown); -impl SelectorItem { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsSelected(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSelected)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetIsSelected(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsSelected)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsSelectedProperty() -> ::windows::core::Result { - Self::ISelectorItemStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsSelectedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ISelectorItemStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for SelectorItem { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SelectorItem { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SelectorItem {} -impl ::core::fmt::Debug for SelectorItem { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SelectorItem").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SelectorItem { - type Vtable = ISelectorItem_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectorItem> for ::windows::core::IUnknown { - fn from(value: &SelectorItem) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SelectorItem) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SelectorItem> for ::windows::core::IInspectable { - fn from(value: &SelectorItem) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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_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_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_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_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_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_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) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: SelectorItem) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SelectorItem> for super::ContentControl { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: SelectorItem) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SelectorItem> for super::Control { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: SelectorItem) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SelectorItem> for super::super::FrameworkElement { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: SelectorItem) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SelectorItem> for super::super::UIElement { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SelectorItem) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SelectorItem> for super::super::DependencyObject { - fn from(value: &SelectorItem) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SelectorItem { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for SelectorItem {} -unsafe impl ::core::marker::Sync for SelectorItem {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct SettingsFlyoutTemplateSettings(::windows::core::IUnknown); -impl SettingsFlyoutTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn HeaderBackground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HeaderBackground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn HeaderForeground(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).HeaderForeground)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn BorderBrush(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).BorderBrush)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn BorderThickness(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).BorderThickness)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn IconSource(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IconSource)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation_Collections\"`, `\"UI_Xaml_Media_Animation\"`*"] - #[cfg(all(feature = "Foundation_Collections", feature = "UI_Xaml_Media_Animation"))] - pub fn ContentTransitions(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ContentTransitions)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for SettingsFlyoutTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SettingsFlyoutTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SettingsFlyoutTemplateSettings {} -impl ::core::fmt::Debug for SettingsFlyoutTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SettingsFlyoutTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SettingsFlyoutTemplateSettings { - type Vtable = ISettingsFlyoutTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &SettingsFlyoutTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SettingsFlyoutTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &SettingsFlyoutTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SettingsFlyoutTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SettingsFlyoutTemplateSettings> for super::super::DependencyObject { - fn from(value: &SettingsFlyoutTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SettingsFlyoutTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SettingsFlyoutTemplateSettings {} -unsafe impl ::core::marker::Sync for SettingsFlyoutTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct SliderSnapsTo(pub i32); -impl SliderSnapsTo { - pub const StepValues: Self = Self(0i32); - pub const Ticks: Self = Self(1i32); -} -impl ::core::marker::Copy for SliderSnapsTo {} -impl ::core::clone::Clone for SliderSnapsTo { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for SliderSnapsTo { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for SliderSnapsTo { - type Abi = Self; -} -impl ::core::fmt::Debug for SliderSnapsTo { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SliderSnapsTo").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct SnapPointsAlignment(pub i32); -impl SnapPointsAlignment { - pub const Near: Self = Self(0i32); - pub const Center: Self = Self(1i32); - pub const Far: Self = Self(2i32); -} -impl ::core::marker::Copy for SnapPointsAlignment {} -impl ::core::clone::Clone for SnapPointsAlignment { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for SnapPointsAlignment { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for SnapPointsAlignment { - type Abi = Self; -} -impl ::core::fmt::Debug for SnapPointsAlignment { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SnapPointsAlignment").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct SplitViewTemplateSettings(::windows::core::IUnknown); -impl SplitViewTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OpenPaneLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OpenPaneLength)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NegativeOpenPaneLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NegativeOpenPaneLength)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OpenPaneLengthMinusCompactLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OpenPaneLengthMinusCompactLength)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn NegativeOpenPaneLengthMinusCompactLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).NegativeOpenPaneLengthMinusCompactLength)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn OpenPaneGridLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).OpenPaneGridLength)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CompactPaneGridLength(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CompactPaneGridLength)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for SplitViewTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for SplitViewTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for SplitViewTemplateSettings {} -impl ::core::fmt::Debug for SplitViewTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("SplitViewTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for SplitViewTemplateSettings { - type Vtable = ISplitViewTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SplitViewTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &SplitViewTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: SplitViewTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&SplitViewTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &SplitViewTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: SplitViewTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&SplitViewTemplateSettings> for super::super::DependencyObject { - fn from(value: &SplitViewTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for SplitViewTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for SplitViewTemplateSettings {} -unsafe impl ::core::marker::Sync for SplitViewTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct Thumb(::windows::core::IUnknown); -impl Thumb { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsDragging(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsDragging)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DragStarted)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveDragStarted)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn DragDelta<'a, Param0: ::windows::core::IntoParam<'a, DragDeltaEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DragDelta)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveDragDelta)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn DragCompleted<'a, Param0: ::windows::core::IntoParam<'a, DragCompletedEventHandler>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DragCompleted)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveDragCompleted)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CancelDrag(&self) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).CancelDrag)(::windows::core::Interface::as_raw(this)).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsDraggingProperty() -> ::windows::core::Result { - Self::IThumbStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsDraggingProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IThumbStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for Thumb { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for Thumb { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for Thumb {} -impl ::core::fmt::Debug for Thumb { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("Thumb").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for Thumb { - type Vtable = IThumb_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&Thumb> for ::windows::core::IUnknown { - fn from(value: &Thumb) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: Thumb) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&Thumb> for ::windows::core::IInspectable { - fn from(value: &Thumb) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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_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_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(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 = "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(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 = "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(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) - } -} -impl ::core::convert::From for super::Control { - fn from(value: Thumb) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&Thumb> for super::Control { - fn from(value: &Thumb) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: Thumb) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&Thumb> for super::super::FrameworkElement { - fn from(value: &Thumb) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::UIElement { - fn from(value: Thumb) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&Thumb> for super::super::UIElement { - fn from(value: &Thumb) -> 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::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: Thumb) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&Thumb> for super::super::DependencyObject { - fn from(value: &Thumb) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for Thumb { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for Thumb {} -unsafe impl ::core::marker::Sync for Thumb {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct TickBar(::windows::core::IUnknown); -impl TickBar { - pub fn new() -> ::windows::core::Result { - Self::IActivationFactory(|f| f.ActivateInstance::()) - } - fn IActivationFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[cfg(feature = "UI_Xaml_Media")] - pub fn Fill(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Fill)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"UI_Xaml_Media\"`*"] - #[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).SetFill)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FillProperty() -> ::windows::core::Result { - Self::ITickBarStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).FillProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn ITickBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for TickBar { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for TickBar { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for TickBar {} -impl ::core::fmt::Debug for TickBar { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TickBar").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for TickBar { - type Vtable = ITickBar_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TickBar> for ::windows::core::IUnknown { - fn from(value: &TickBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: TickBar) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&TickBar> for ::windows::core::IInspectable { - fn from(value: &TickBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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 = "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) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: TickBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TickBar> for super::super::FrameworkElement { - fn from(value: &TickBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for TickBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&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(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: TickBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TickBar> for super::super::UIElement { - fn from(value: &TickBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for TickBar { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 ::core::convert::From for super::super::DependencyObject { - fn from(value: TickBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&TickBar> for super::super::DependencyObject { - fn from(value: &TickBar) -> 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::IntoParam::into_param(&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(self)) - } -} -unsafe impl ::core::marker::Send for TickBar {} -unsafe impl ::core::marker::Sync for TickBar {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -#[derive(:: core :: cmp :: PartialEq, :: core :: cmp :: Eq)] -pub struct TickPlacement(pub i32); -impl TickPlacement { - pub const None: Self = Self(0i32); - pub const TopLeft: Self = Self(1i32); - pub const BottomRight: Self = Self(2i32); - pub const Outside: Self = Self(3i32); - pub const Inline: Self = Self(4i32); -} -impl ::core::marker::Copy for TickPlacement {} -impl ::core::clone::Clone for TickPlacement { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for TickPlacement { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for TickPlacement { - type Abi = Self; -} -impl ::core::fmt::Debug for TickPlacement { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("TickPlacement").field(&self.0).finish() - } -} -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)"); - type DefaultType = Self; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - Ok(*from) - } -} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ToggleButton(::windows::core::IUnknown); -impl ToggleButton { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn IsChecked(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsChecked)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).SetIsChecked)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsThreeState(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsThreeState)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn SetIsThreeState(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsThreeState)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Checked)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveChecked)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Unchecked)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveUnchecked)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Indeterminate)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`, `\"Foundation\"`*"] - #[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).RemoveIndeterminate)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IToggleButtonFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IToggleButtonFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsCheckedProperty() -> ::windows::core::Result { - Self::IToggleButtonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsCheckedProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn IsThreeStateProperty() -> ::windows::core::Result { - Self::IToggleButtonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsThreeStateProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IToggleButtonFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IToggleButtonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for ToggleButton { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ToggleButton { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ToggleButton {} -impl ::core::fmt::Debug for ToggleButton { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ToggleButton").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for ToggleButton { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.Primitives.ToggleButton;{589877fb-0fc7-4036-9d8b-127dfa75c16d})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ToggleButton { - type Vtable = IToggleButton_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for ToggleButton { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ToggleButton"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ToggleButton) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleButton> for ::windows::core::IUnknown { - fn from(value: &ToggleButton) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleButton) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleButton> for ::windows::core::IInspectable { - fn from(value: &ToggleButton) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: ToggleButton) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ToggleButton> for super::super::super::Composition::IAnimationObject { - type Error = ::windows::core::Error; - fn try_from(value: &ToggleButton) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IAnimationObject> for ToggleButton { - 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 &ToggleButton { - 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: ToggleButton) -> ::windows::core::Result { - ::core::convert::TryFrom::try_from(&value) - } -} -#[cfg(feature = "UI_Composition")] -impl ::core::convert::TryFrom<&ToggleButton> for super::super::super::Composition::IVisualElement { - type Error = ::windows::core::Error; - fn try_from(value: &ToggleButton) -> ::windows::core::Result { - ::windows::core::Interface::cast(value) - } -} -#[cfg(feature = "UI_Composition")] -impl<'a> ::windows::core::IntoParam<'a, super::super::super::Composition::IVisualElement> for ToggleButton { - 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 &ToggleButton { - 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: ToggleButton) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleButton> for ButtonBase { - fn from(value: &ToggleButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBase> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBase> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, ButtonBase> for &ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, ButtonBase> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::ContentControl { - fn from(value: ToggleButton) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleButton> for super::ContentControl { - fn from(value: &ToggleButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::ContentControl> for &ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::ContentControl> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::Control { - fn from(value: ToggleButton) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleButton> for super::Control { - fn from(value: &ToggleButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::Control> for &ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::Control> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::FrameworkElement { - fn from(value: ToggleButton) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleButton> for super::super::FrameworkElement { - fn from(value: &ToggleButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::FrameworkElement> for &ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::FrameworkElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::UIElement { - fn from(value: ToggleButton) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleButton> for super::super::UIElement { - fn from(value: &ToggleButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::UIElement> for &ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::UIElement> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleButton) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleButton> for super::super::DependencyObject { - fn from(value: &ToggleButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleButton { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for ToggleButton {} -unsafe impl ::core::marker::Sync for ToggleButton {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ToggleSwitchTemplateSettings(::windows::core::IUnknown); -impl ToggleSwitchTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn KnobCurrentToOnOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).KnobCurrentToOnOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn KnobCurrentToOffOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).KnobCurrentToOffOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn KnobOnToOffOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).KnobOnToOffOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn KnobOffToOnOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).KnobOffToOnOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CurtainCurrentToOnOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CurtainCurrentToOnOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CurtainCurrentToOffOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CurtainCurrentToOffOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CurtainOnToOffOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CurtainOnToOffOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn CurtainOffToOnOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).CurtainOffToOnOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ToggleSwitchTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ToggleSwitchTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ToggleSwitchTemplateSettings {} -impl ::core::fmt::Debug for ToggleSwitchTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ToggleSwitchTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ToggleSwitchTemplateSettings { - type Vtable = IToggleSwitchTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for ToggleSwitchTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ToggleSwitchTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ToggleSwitchTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleSwitchTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ToggleSwitchTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToggleSwitchTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToggleSwitchTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToggleSwitchTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToggleSwitchTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ToggleSwitchTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToggleSwitchTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToggleSwitchTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ToggleSwitchTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToggleSwitchTemplateSettings> for super::super::DependencyObject { - fn from(value: &ToggleSwitchTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToggleSwitchTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToggleSwitchTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for ToggleSwitchTemplateSettings {} -unsafe impl ::core::marker::Sync for ToggleSwitchTemplateSettings {} -#[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] -#[repr(transparent)] -pub struct ToolTipTemplateSettings(::windows::core::IUnknown); -impl ToolTipTemplateSettings { - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FromHorizontalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FromHorizontalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls_Primitives\"`*"] - pub fn FromVerticalOffset(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).FromVerticalOffset)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } -} -impl ::core::clone::Clone for ToolTipTemplateSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for ToolTipTemplateSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for ToolTipTemplateSettings {} -impl ::core::fmt::Debug for ToolTipTemplateSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("ToolTipTemplateSettings").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for ToolTipTemplateSettings { - type Vtable = IToolTipTemplateSettings_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for ToolTipTemplateSettings { - const NAME: &'static str = "Windows.UI.Xaml.Controls.Primitives.ToolTipTemplateSettings"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: ToolTipTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToolTipTemplateSettings> for ::windows::core::IUnknown { - fn from(value: &ToolTipTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for ToolTipTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a ToolTipTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: ToolTipTemplateSettings) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&ToolTipTemplateSettings> for ::windows::core::IInspectable { - fn from(value: &ToolTipTemplateSettings) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for ToolTipTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a ToolTipTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for super::super::DependencyObject { - fn from(value: ToolTipTemplateSettings) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&ToolTipTemplateSettings> for super::super::DependencyObject { - fn from(value: &ToolTipTemplateSettings) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for ToolTipTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, super::super::DependencyObject> for &ToolTipTemplateSettings { - fn into_param(self) -> ::windows::core::Param<'a, super::super::DependencyObject> { - ::windows::core::Param::Owned(::core::convert::Into::::into(self)) - } -} -unsafe impl ::core::marker::Send for ToolTipTemplateSettings {} -unsafe impl ::core::marker::Sync for ToolTipTemplateSettings {} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/impl.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/impl.rs deleted file mode 100644 index cc2f4c3dd7..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/impl.rs +++ /dev/null @@ -1,1271 +0,0 @@ -pub trait IAppBarOverrides_Impl: Sized { - fn OnClosed(&self, e: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnOpened(&self, e: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IAppBarOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IAppBarOverrides"; -} -impl IAppBarOverrides_Vtbl { - pub const fn new, Impl: IAppBarOverrides_Impl, const OFFSET: isize>() -> IAppBarOverrides_Vtbl { - unsafe extern "system" fn OnClosed, Impl: IAppBarOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnClosed(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnOpened, Impl: IAppBarOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnOpened(::core::mem::transmute(&e)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnClosed: OnClosed::, - OnOpened: OnOpened::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IAppBarOverrides3_Impl: Sized { - fn OnClosing(&self, e: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnOpening(&self, e: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IAppBarOverrides3 { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IAppBarOverrides3"; -} -impl IAppBarOverrides3_Vtbl { - pub const fn new, Impl: IAppBarOverrides3_Impl, const OFFSET: isize>() -> IAppBarOverrides3_Vtbl { - unsafe extern "system" fn OnClosing, Impl: IAppBarOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnClosing(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnOpening, Impl: IAppBarOverrides3_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnOpening(::core::mem::transmute(&e)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnClosing: OnClosing::, - OnOpening: OnOpening::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IComboBoxOverrides_Impl: Sized { - fn OnDropDownClosed(&self, e: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnDropDownOpened(&self, e: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IComboBoxOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IComboBoxOverrides"; -} -impl IComboBoxOverrides_Vtbl { - pub const fn new, Impl: IComboBoxOverrides_Impl, const OFFSET: isize>() -> IComboBoxOverrides_Vtbl { - unsafe extern "system" fn OnDropDownClosed, Impl: IComboBoxOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDropDownClosed(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnDropDownOpened, Impl: IComboBoxOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDropDownOpened(::core::mem::transmute(&e)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnDropDownClosed: OnDropDownClosed::, - OnDropDownOpened: OnDropDownOpened::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ICommandBarElement_Impl: Sized { - fn IsCompact(&self) -> ::windows::core::Result; - fn SetIsCompact(&self, value: bool) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for ICommandBarElement { - const NAME: &'static str = "Windows.UI.Xaml.Controls.ICommandBarElement"; -} -impl ICommandBarElement_Vtbl { - pub const fn new, Impl: ICommandBarElement_Impl, const OFFSET: isize>() -> ICommandBarElement_Vtbl { - unsafe extern "system" fn IsCompact, Impl: ICommandBarElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsCompact() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetIsCompact, Impl: ICommandBarElement_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetIsCompact(value).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsCompact: IsCompact::, - SetIsCompact: SetIsCompact::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ICommandBarElement2_Impl: Sized { - fn IsInOverflow(&self) -> ::windows::core::Result; - fn DynamicOverflowOrder(&self) -> ::windows::core::Result; - fn SetDynamicOverflowOrder(&self, value: i32) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for ICommandBarElement2 { - const NAME: &'static str = "Windows.UI.Xaml.Controls.ICommandBarElement2"; -} -impl ICommandBarElement2_Vtbl { - pub const fn new, Impl: ICommandBarElement2_Impl, const OFFSET: isize>() -> ICommandBarElement2_Vtbl { - unsafe extern "system" fn IsInOverflow, Impl: ICommandBarElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsInOverflow() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn DynamicOverflowOrder, Impl: ICommandBarElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DynamicOverflowOrder() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetDynamicOverflowOrder, Impl: ICommandBarElement2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetDynamicOverflowOrder(value).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsInOverflow: IsInOverflow::, - DynamicOverflowOrder: DynamicOverflowOrder::, - SetDynamicOverflowOrder: SetDynamicOverflowOrder::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IContentControlOverrides_Impl: Sized { - fn OnContentChanged(&self, oldcontent: &::core::option::Option<::windows::core::IInspectable>, newcontent: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnContentTemplateChanged(&self, oldcontenttemplate: &::core::option::Option, newcontenttemplate: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnContentTemplateSelectorChanged(&self, oldcontenttemplateselector: &::core::option::Option, newcontenttemplateselector: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IContentControlOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IContentControlOverrides"; -} -impl IContentControlOverrides_Vtbl { - pub const fn new, Impl: IContentControlOverrides_Impl, const OFFSET: isize>() -> IContentControlOverrides_Vtbl { - unsafe extern "system" fn OnContentChanged, Impl: IContentControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontent: *mut ::core::ffi::c_void, newcontent: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnContentChanged(::core::mem::transmute(&oldcontent), ::core::mem::transmute(&newcontent)).into() - } - unsafe extern "system" fn OnContentTemplateChanged, Impl: IContentControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontenttemplate: *mut ::core::ffi::c_void, newcontenttemplate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnContentTemplateChanged(::core::mem::transmute(&oldcontenttemplate), ::core::mem::transmute(&newcontenttemplate)).into() - } - unsafe extern "system" fn OnContentTemplateSelectorChanged, Impl: IContentControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontenttemplateselector: *mut ::core::ffi::c_void, newcontenttemplateselector: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnContentTemplateSelectorChanged(::core::mem::transmute(&oldcontenttemplateselector), ::core::mem::transmute(&newcontenttemplateselector)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnContentChanged: OnContentChanged::, - OnContentTemplateChanged: OnContentTemplateChanged::, - OnContentTemplateSelectorChanged: OnContentTemplateSelectorChanged::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IContentPresenterOverrides_Impl: Sized { - fn OnContentTemplateChanged(&self, oldcontenttemplate: &::core::option::Option, newcontenttemplate: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnContentTemplateSelectorChanged(&self, oldcontenttemplateselector: &::core::option::Option, newcontenttemplateselector: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IContentPresenterOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IContentPresenterOverrides"; -} -impl IContentPresenterOverrides_Vtbl { - pub const fn new, Impl: IContentPresenterOverrides_Impl, const OFFSET: isize>() -> IContentPresenterOverrides_Vtbl { - unsafe extern "system" fn OnContentTemplateChanged, Impl: IContentPresenterOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontenttemplate: *mut ::core::ffi::c_void, newcontenttemplate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnContentTemplateChanged(::core::mem::transmute(&oldcontenttemplate), ::core::mem::transmute(&newcontenttemplate)).into() - } - unsafe extern "system" fn OnContentTemplateSelectorChanged, Impl: IContentPresenterOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontenttemplateselector: *mut ::core::ffi::c_void, newcontenttemplateselector: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnContentTemplateSelectorChanged(::core::mem::transmute(&oldcontenttemplateselector), ::core::mem::transmute(&newcontenttemplateselector)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnContentTemplateChanged: OnContentTemplateChanged::, - OnContentTemplateSelectorChanged: OnContentTemplateSelectorChanged::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Input")] -pub trait IControlOverrides_Impl: Sized { - fn OnPointerEntered(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPointerPressed(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPointerMoved(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPointerReleased(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPointerExited(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPointerCaptureLost(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPointerCanceled(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPointerWheelChanged(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnTapped(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnDoubleTapped(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnHolding(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnRightTapped(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnManipulationStarting(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnManipulationInertiaStarting(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnManipulationStarted(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnManipulationDelta(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnManipulationCompleted(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnKeyUp(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnKeyDown(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnGotFocus(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnLostFocus(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnDragEnter(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnDragLeave(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnDragOver(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnDrop(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -#[cfg(feature = "UI_Xaml_Input")] -impl ::windows::core::RuntimeName for IControlOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IControlOverrides"; -} -#[cfg(feature = "UI_Xaml_Input")] -impl IControlOverrides_Vtbl { - pub const fn new, Impl: IControlOverrides_Impl, const OFFSET: isize>() -> IControlOverrides_Vtbl { - unsafe extern "system" fn OnPointerEntered, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerEntered(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPointerPressed, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerPressed(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPointerMoved, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerMoved(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPointerReleased, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerReleased(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPointerExited, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerExited(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPointerCaptureLost, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerCaptureLost(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPointerCanceled, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerCanceled(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPointerWheelChanged, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPointerWheelChanged(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnTapped, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnTapped(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnDoubleTapped, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDoubleTapped(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnHolding, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnHolding(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnRightTapped, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnRightTapped(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnManipulationStarting, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnManipulationStarting(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnManipulationInertiaStarting, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnManipulationInertiaStarting(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnManipulationStarted, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnManipulationStarted(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnManipulationDelta, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnManipulationDelta(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnManipulationCompleted, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnManipulationCompleted(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnKeyUp, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnKeyUp(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnKeyDown, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnKeyDown(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnGotFocus, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnGotFocus(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnLostFocus, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnLostFocus(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnDragEnter, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDragEnter(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnDragLeave, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDragLeave(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnDragOver, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDragOver(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnDrop, Impl: IControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDrop(::core::mem::transmute(&e)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnPointerEntered: OnPointerEntered::, - OnPointerPressed: OnPointerPressed::, - OnPointerMoved: OnPointerMoved::, - OnPointerReleased: OnPointerReleased::, - OnPointerExited: OnPointerExited::, - OnPointerCaptureLost: OnPointerCaptureLost::, - OnPointerCanceled: OnPointerCanceled::, - OnPointerWheelChanged: OnPointerWheelChanged::, - OnTapped: OnTapped::, - OnDoubleTapped: OnDoubleTapped::, - OnHolding: OnHolding::, - OnRightTapped: OnRightTapped::, - OnManipulationStarting: OnManipulationStarting::, - OnManipulationInertiaStarting: OnManipulationInertiaStarting::, - OnManipulationStarted: OnManipulationStarted::, - OnManipulationDelta: OnManipulationDelta::, - OnManipulationCompleted: OnManipulationCompleted::, - OnKeyUp: OnKeyUp::, - OnKeyDown: OnKeyDown::, - OnGotFocus: OnGotFocus::, - OnLostFocus: OnLostFocus::, - OnDragEnter: OnDragEnter::, - OnDragLeave: OnDragLeave::, - OnDragOver: OnDragOver::, - OnDrop: OnDrop::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Input")] -pub trait IControlOverrides6_Impl: Sized { - fn OnPreviewKeyDown(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnPreviewKeyUp(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnCharacterReceived(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -#[cfg(feature = "UI_Xaml_Input")] -impl ::windows::core::RuntimeName for IControlOverrides6 { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IControlOverrides6"; -} -#[cfg(feature = "UI_Xaml_Input")] -impl IControlOverrides6_Vtbl { - pub const fn new, Impl: IControlOverrides6_Impl, const OFFSET: isize>() -> IControlOverrides6_Vtbl { - unsafe extern "system" fn OnPreviewKeyDown, Impl: IControlOverrides6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPreviewKeyDown(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnPreviewKeyUp, Impl: IControlOverrides6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPreviewKeyUp(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnCharacterReceived, Impl: IControlOverrides6_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnCharacterReceived(::core::mem::transmute(&e)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnPreviewKeyDown: OnPreviewKeyDown::, - OnPreviewKeyUp: OnPreviewKeyUp::, - OnCharacterReceived: OnCharacterReceived::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IDataTemplateSelectorOverrides_Impl: Sized { - fn SelectTemplateCore(&self, item: &::core::option::Option<::windows::core::IInspectable>, container: &::core::option::Option) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IDataTemplateSelectorOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IDataTemplateSelectorOverrides"; -} -impl IDataTemplateSelectorOverrides_Vtbl { - pub const fn new, Impl: IDataTemplateSelectorOverrides_Impl, const OFFSET: isize>() -> IDataTemplateSelectorOverrides_Vtbl { - unsafe extern "system" fn SelectTemplateCore, Impl: IDataTemplateSelectorOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, container: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SelectTemplateCore(::core::mem::transmute(&item), ::core::mem::transmute(&container)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - SelectTemplateCore: SelectTemplateCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IDataTemplateSelectorOverrides2_Impl: Sized { - fn SelectTemplateForItemCore(&self, item: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IDataTemplateSelectorOverrides2 { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IDataTemplateSelectorOverrides2"; -} -impl IDataTemplateSelectorOverrides2_Vtbl { - pub const fn new, Impl: IDataTemplateSelectorOverrides2_Impl, const OFFSET: isize>() -> IDataTemplateSelectorOverrides2_Vtbl { - unsafe extern "system" fn SelectTemplateForItemCore, Impl: IDataTemplateSelectorOverrides2_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SelectTemplateForItemCore(::core::mem::transmute(&item)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - SelectTemplateForItemCore: SelectTemplateForItemCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IGroupStyleSelectorOverrides_Impl: Sized { - fn SelectGroupStyleCore(&self, group: &::core::option::Option<::windows::core::IInspectable>, level: u32) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IGroupStyleSelectorOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IGroupStyleSelectorOverrides"; -} -impl IGroupStyleSelectorOverrides_Vtbl { - pub const fn new, Impl: IGroupStyleSelectorOverrides_Impl, const OFFSET: isize>() -> IGroupStyleSelectorOverrides_Vtbl { - unsafe extern "system" fn SelectGroupStyleCore, Impl: IGroupStyleSelectorOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, group: *mut ::core::ffi::c_void, level: u32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SelectGroupStyleCore(::core::mem::transmute(&group), level) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - SelectGroupStyleCore: SelectGroupStyleCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(all(feature = "UI_Input_Inking", feature = "UI_Xaml_Media"))] -pub trait IInkToolbarCustomPenOverrides_Impl: Sized { - fn CreateInkDrawingAttributesCore(&self, brush: &::core::option::Option, strokewidth: f64) -> ::windows::core::Result; -} -#[cfg(all(feature = "UI_Input_Inking", feature = "UI_Xaml_Media"))] -impl ::windows::core::RuntimeName for IInkToolbarCustomPenOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IInkToolbarCustomPenOverrides"; -} -#[cfg(all(feature = "UI_Input_Inking", feature = "UI_Xaml_Media"))] -impl IInkToolbarCustomPenOverrides_Vtbl { - pub const fn new, Impl: IInkToolbarCustomPenOverrides_Impl, const OFFSET: isize>() -> IInkToolbarCustomPenOverrides_Vtbl { - unsafe extern "system" fn CreateInkDrawingAttributesCore, Impl: IInkToolbarCustomPenOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, brush: *mut ::core::ffi::c_void, strokewidth: f64, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreateInkDrawingAttributesCore(::core::mem::transmute(&brush), strokewidth) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - CreateInkDrawingAttributesCore: CreateInkDrawingAttributesCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "Foundation")] -pub trait IInsertionPanel_Impl: Sized { - fn GetInsertionIndexes(&self, position: &super::super::super::Foundation::Point, first: &mut i32, second: &mut i32) -> ::windows::core::Result<()>; -} -#[cfg(feature = "Foundation")] -impl ::windows::core::RuntimeName for IInsertionPanel { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IInsertionPanel"; -} -#[cfg(feature = "Foundation")] -impl IInsertionPanel_Vtbl { - pub const fn new, Impl: IInsertionPanel_Impl, const OFFSET: isize>() -> IInsertionPanel_Vtbl { - unsafe extern "system" fn GetInsertionIndexes, Impl: IInsertionPanel_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, position: super::super::super::Foundation::Point, first: *mut i32, second: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetInsertionIndexes(::core::mem::transmute(&position), ::core::mem::transmute_copy(&first), ::core::mem::transmute_copy(&second)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - GetInsertionIndexes: GetInsertionIndexes::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IItemContainerMapping_Impl: Sized { - fn ItemFromContainer(&self, container: &::core::option::Option) -> ::windows::core::Result<::windows::core::IInspectable>; - fn ContainerFromItem(&self, item: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result; - fn IndexFromContainer(&self, container: &::core::option::Option) -> ::windows::core::Result; - fn ContainerFromIndex(&self, index: i32) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IItemContainerMapping { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IItemContainerMapping"; -} -impl IItemContainerMapping_Vtbl { - pub const fn new, Impl: IItemContainerMapping_Impl, const OFFSET: isize>() -> IItemContainerMapping_Vtbl { - unsafe extern "system" fn ItemFromContainer, Impl: IItemContainerMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, container: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ItemFromContainer(::core::mem::transmute(&container)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ContainerFromItem, Impl: IItemContainerMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ContainerFromItem(::core::mem::transmute(&item)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn IndexFromContainer, Impl: IItemContainerMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, container: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IndexFromContainer(::core::mem::transmute(&container)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ContainerFromIndex, Impl: IItemContainerMapping_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ContainerFromIndex(index) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - ItemFromContainer: ItemFromContainer::, - ContainerFromItem: ContainerFromItem::, - IndexFromContainer: IndexFromContainer::, - ContainerFromIndex: ContainerFromIndex::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IItemsControlOverrides_Impl: Sized { - fn IsItemItsOwnContainerOverride(&self, item: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result; - fn GetContainerForItemOverride(&self) -> ::windows::core::Result; - fn ClearContainerForItemOverride(&self, element: &::core::option::Option, item: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn PrepareContainerForItemOverride(&self, element: &::core::option::Option, item: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnItemsChanged(&self, e: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnItemContainerStyleChanged(&self, olditemcontainerstyle: &::core::option::Option, newitemcontainerstyle: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnItemContainerStyleSelectorChanged(&self, olditemcontainerstyleselector: &::core::option::Option, newitemcontainerstyleselector: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnItemTemplateChanged(&self, olditemtemplate: &::core::option::Option, newitemtemplate: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnItemTemplateSelectorChanged(&self, olditemtemplateselector: &::core::option::Option, newitemtemplateselector: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnGroupStyleSelectorChanged(&self, oldgroupstyleselector: &::core::option::Option, newgroupstyleselector: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IItemsControlOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IItemsControlOverrides"; -} -impl IItemsControlOverrides_Vtbl { - pub const fn new, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>() -> IItemsControlOverrides_Vtbl { - unsafe extern "system" fn IsItemItsOwnContainerOverride, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsItemItsOwnContainerOverride(::core::mem::transmute(&item)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetContainerForItemOverride, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetContainerForItemOverride() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ClearContainerForItemOverride, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ClearContainerForItemOverride(::core::mem::transmute(&element), ::core::mem::transmute(&item)).into() - } - unsafe extern "system" fn PrepareContainerForItemOverride, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.PrepareContainerForItemOverride(::core::mem::transmute(&element), ::core::mem::transmute(&item)).into() - } - unsafe extern "system" fn OnItemsChanged, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnItemsChanged(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnItemContainerStyleChanged, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olditemcontainerstyle: *mut ::core::ffi::c_void, newitemcontainerstyle: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnItemContainerStyleChanged(::core::mem::transmute(&olditemcontainerstyle), ::core::mem::transmute(&newitemcontainerstyle)).into() - } - unsafe extern "system" fn OnItemContainerStyleSelectorChanged, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olditemcontainerstyleselector: *mut ::core::ffi::c_void, newitemcontainerstyleselector: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnItemContainerStyleSelectorChanged(::core::mem::transmute(&olditemcontainerstyleselector), ::core::mem::transmute(&newitemcontainerstyleselector)).into() - } - unsafe extern "system" fn OnItemTemplateChanged, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olditemtemplate: *mut ::core::ffi::c_void, newitemtemplate: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnItemTemplateChanged(::core::mem::transmute(&olditemtemplate), ::core::mem::transmute(&newitemtemplate)).into() - } - unsafe extern "system" fn OnItemTemplateSelectorChanged, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, olditemtemplateselector: *mut ::core::ffi::c_void, newitemtemplateselector: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnItemTemplateSelectorChanged(::core::mem::transmute(&olditemtemplateselector), ::core::mem::transmute(&newitemtemplateselector)).into() - } - unsafe extern "system" fn OnGroupStyleSelectorChanged, Impl: IItemsControlOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldgroupstyleselector: *mut ::core::ffi::c_void, newgroupstyleselector: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnGroupStyleSelectorChanged(::core::mem::transmute(&oldgroupstyleselector), ::core::mem::transmute(&newgroupstyleselector)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - IsItemItsOwnContainerOverride: IsItemItsOwnContainerOverride::, - GetContainerForItemOverride: GetContainerForItemOverride::, - ClearContainerForItemOverride: ClearContainerForItemOverride::, - PrepareContainerForItemOverride: PrepareContainerForItemOverride::, - OnItemsChanged: OnItemsChanged::, - OnItemContainerStyleChanged: OnItemContainerStyleChanged::, - OnItemContainerStyleSelectorChanged: OnItemContainerStyleSelectorChanged::, - OnItemTemplateChanged: OnItemTemplateChanged::, - OnItemTemplateSelectorChanged: OnItemTemplateSelectorChanged::, - OnGroupStyleSelectorChanged: OnGroupStyleSelectorChanged::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Interop")] -pub trait INavigate_Impl: Sized { - fn Navigate(&self, sourcepagetype: &super::Interop::TypeName) -> ::windows::core::Result; -} -#[cfg(feature = "UI_Xaml_Interop")] -impl ::windows::core::RuntimeName for INavigate { - const NAME: &'static str = "Windows.UI.Xaml.Controls.INavigate"; -} -#[cfg(feature = "UI_Xaml_Interop")] -impl INavigate_Vtbl { - pub const fn new, Impl: INavigate_Impl, const OFFSET: isize>() -> INavigate_Vtbl { - unsafe extern "system" fn Navigate, Impl: INavigate_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sourcepagetype: ::core::mem::ManuallyDrop, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Navigate(::core::mem::transmute(&sourcepagetype)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { base__: ::windows::core::IInspectableVtbl::new::(), Navigate: Navigate:: } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Navigation")] -pub trait IPageOverrides_Impl: Sized { - fn OnNavigatedFrom(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnNavigatedTo(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnNavigatingFrom(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -#[cfg(feature = "UI_Xaml_Navigation")] -impl ::windows::core::RuntimeName for IPageOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IPageOverrides"; -} -#[cfg(feature = "UI_Xaml_Navigation")] -impl IPageOverrides_Vtbl { - pub const fn new, Impl: IPageOverrides_Impl, const OFFSET: isize>() -> IPageOverrides_Vtbl { - unsafe extern "system" fn OnNavigatedFrom, Impl: IPageOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnNavigatedFrom(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnNavigatedTo, Impl: IPageOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnNavigatedTo(::core::mem::transmute(&e)).into() - } - unsafe extern "system" fn OnNavigatingFrom, Impl: IPageOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnNavigatingFrom(::core::mem::transmute(&e)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnNavigatedFrom: OnNavigatedFrom::, - OnNavigatedTo: OnNavigatedTo::, - OnNavigatingFrom: OnNavigatingFrom::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IScrollAnchorProvider_Impl: Sized { - fn CurrentAnchor(&self) -> ::windows::core::Result; - fn RegisterAnchorCandidate(&self, element: &::core::option::Option) -> ::windows::core::Result<()>; - fn UnregisterAnchorCandidate(&self, element: &::core::option::Option) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IScrollAnchorProvider { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IScrollAnchorProvider"; -} -impl IScrollAnchorProvider_Vtbl { - pub const fn new, Impl: IScrollAnchorProvider_Impl, const OFFSET: isize>() -> IScrollAnchorProvider_Vtbl { - unsafe extern "system" fn CurrentAnchor, Impl: IScrollAnchorProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CurrentAnchor() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RegisterAnchorCandidate, Impl: IScrollAnchorProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RegisterAnchorCandidate(::core::mem::transmute(&element)).into() - } - unsafe extern "system" fn UnregisterAnchorCandidate, Impl: IScrollAnchorProvider_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, element: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UnregisterAnchorCandidate(::core::mem::transmute(&element)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - CurrentAnchor: CurrentAnchor::, - RegisterAnchorCandidate: RegisterAnchorCandidate::, - UnregisterAnchorCandidate: UnregisterAnchorCandidate::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait ISemanticZoomInformation_Impl: Sized { - fn SemanticZoomOwner(&self) -> ::windows::core::Result; - fn SetSemanticZoomOwner(&self, value: &::core::option::Option) -> ::windows::core::Result<()>; - fn IsActiveView(&self) -> ::windows::core::Result; - fn SetIsActiveView(&self, value: bool) -> ::windows::core::Result<()>; - fn IsZoomedInView(&self) -> ::windows::core::Result; - fn SetIsZoomedInView(&self, value: bool) -> ::windows::core::Result<()>; - fn InitializeViewChange(&self) -> ::windows::core::Result<()>; - fn CompleteViewChange(&self) -> ::windows::core::Result<()>; - fn MakeVisible(&self, item: &::core::option::Option) -> ::windows::core::Result<()>; - fn StartViewChangeFrom(&self, source: &::core::option::Option, destination: &::core::option::Option) -> ::windows::core::Result<()>; - fn StartViewChangeTo(&self, source: &::core::option::Option, destination: &::core::option::Option) -> ::windows::core::Result<()>; - fn CompleteViewChangeFrom(&self, source: &::core::option::Option, destination: &::core::option::Option) -> ::windows::core::Result<()>; - fn CompleteViewChangeTo(&self, source: &::core::option::Option, destination: &::core::option::Option) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for ISemanticZoomInformation { - const NAME: &'static str = "Windows.UI.Xaml.Controls.ISemanticZoomInformation"; -} -impl ISemanticZoomInformation_Vtbl { - pub const fn new, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>() -> ISemanticZoomInformation_Vtbl { - unsafe extern "system" fn SemanticZoomOwner, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SemanticZoomOwner() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetSemanticZoomOwner, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetSemanticZoomOwner(::core::mem::transmute(&value)).into() - } - unsafe extern "system" fn IsActiveView, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsActiveView() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetIsActiveView, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetIsActiveView(value).into() - } - unsafe extern "system" fn IsZoomedInView, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.IsZoomedInView() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetIsZoomedInView, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetIsZoomedInView(value).into() - } - unsafe extern "system" fn InitializeViewChange, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.InitializeViewChange().into() - } - unsafe extern "system" fn CompleteViewChange, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.CompleteViewChange().into() - } - unsafe extern "system" fn MakeVisible, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.MakeVisible(::core::mem::transmute(&item)).into() - } - unsafe extern "system" fn StartViewChangeFrom, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.StartViewChangeFrom(::core::mem::transmute(&source), ::core::mem::transmute(&destination)).into() - } - unsafe extern "system" fn StartViewChangeTo, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.StartViewChangeTo(::core::mem::transmute(&source), ::core::mem::transmute(&destination)).into() - } - unsafe extern "system" fn CompleteViewChangeFrom, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.CompleteViewChangeFrom(::core::mem::transmute(&source), ::core::mem::transmute(&destination)).into() - } - unsafe extern "system" fn CompleteViewChangeTo, Impl: ISemanticZoomInformation_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, destination: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.CompleteViewChangeTo(::core::mem::transmute(&source), ::core::mem::transmute(&destination)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - SemanticZoomOwner: SemanticZoomOwner::, - SetSemanticZoomOwner: SetSemanticZoomOwner::, - IsActiveView: IsActiveView::, - SetIsActiveView: SetIsActiveView::, - IsZoomedInView: IsZoomedInView::, - SetIsZoomedInView: SetIsZoomedInView::, - InitializeViewChange: InitializeViewChange::, - CompleteViewChange: CompleteViewChange::, - MakeVisible: MakeVisible::, - StartViewChangeFrom: StartViewChangeFrom::, - StartViewChangeTo: StartViewChangeTo::, - CompleteViewChangeFrom: CompleteViewChangeFrom::, - CompleteViewChangeTo: CompleteViewChangeTo::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IStyleSelectorOverrides_Impl: Sized { - fn SelectStyleCore(&self, item: &::core::option::Option<::windows::core::IInspectable>, container: &::core::option::Option) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IStyleSelectorOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IStyleSelectorOverrides"; -} -impl IStyleSelectorOverrides_Vtbl { - pub const fn new, Impl: IStyleSelectorOverrides_Impl, const OFFSET: isize>() -> IStyleSelectorOverrides_Vtbl { - unsafe extern "system" fn SelectStyleCore, Impl: IStyleSelectorOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, item: *mut ::core::ffi::c_void, container: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.SelectStyleCore(::core::mem::transmute(&item), ::core::mem::transmute(&container)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); - ::core::mem::forget(ok__); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - SelectStyleCore: SelectStyleCore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IToggleSwitchOverrides_Impl: Sized { - fn OnToggled(&self) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnOnContentChanged(&self, oldcontent: &::core::option::Option<::windows::core::IInspectable>, newcontent: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnOffContentChanged(&self, oldcontent: &::core::option::Option<::windows::core::IInspectable>, newcontent: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnHeaderChanged(&self, oldcontent: &::core::option::Option<::windows::core::IInspectable>, newcontent: &::core::option::Option<::windows::core::IInspectable>) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IToggleSwitchOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IToggleSwitchOverrides"; -} -impl IToggleSwitchOverrides_Vtbl { - pub const fn new, Impl: IToggleSwitchOverrides_Impl, const OFFSET: isize>() -> IToggleSwitchOverrides_Vtbl { - unsafe extern "system" fn OnToggled, Impl: IToggleSwitchOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnToggled().into() - } - unsafe extern "system" fn OnOnContentChanged, Impl: IToggleSwitchOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontent: *mut ::core::ffi::c_void, newcontent: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnOnContentChanged(::core::mem::transmute(&oldcontent), ::core::mem::transmute(&newcontent)).into() - } - unsafe extern "system" fn OnOffContentChanged, Impl: IToggleSwitchOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontent: *mut ::core::ffi::c_void, newcontent: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnOffContentChanged(::core::mem::transmute(&oldcontent), ::core::mem::transmute(&newcontent)).into() - } - unsafe extern "system" fn OnHeaderChanged, Impl: IToggleSwitchOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, oldcontent: *mut ::core::ffi::c_void, newcontent: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnHeaderChanged(::core::mem::transmute(&oldcontent), ::core::mem::transmute(&newcontent)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnToggled: OnToggled::, - OnOnContentChanged: OnOnContentChanged::, - OnOffContentChanged: OnOffContentChanged::, - OnHeaderChanged: OnHeaderChanged::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -#[cfg(feature = "UI_Xaml_Controls_Primitives")] -pub trait IVirtualizingPanelOverrides_Impl: Sized { - fn OnItemsChanged(&self, sender: &::core::option::Option<::windows::core::IInspectable>, args: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn OnClearChildren(&self) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } - fn BringIndexIntoView(&self, index: i32) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -#[cfg(feature = "UI_Xaml_Controls_Primitives")] -impl ::windows::core::RuntimeName for IVirtualizingPanelOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IVirtualizingPanelOverrides"; -} -#[cfg(feature = "UI_Xaml_Controls_Primitives")] -impl IVirtualizingPanelOverrides_Vtbl { - pub const fn new, Impl: IVirtualizingPanelOverrides_Impl, const OFFSET: isize>() -> IVirtualizingPanelOverrides_Vtbl { - unsafe extern "system" fn OnItemsChanged, Impl: IVirtualizingPanelOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, sender: *mut ::core::ffi::c_void, args: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnItemsChanged(::core::mem::transmute(&sender), ::core::mem::transmute(&args)).into() - } - unsafe extern "system" fn OnClearChildren, Impl: IVirtualizingPanelOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnClearChildren().into() - } - unsafe extern "system" fn BringIndexIntoView, Impl: IVirtualizingPanelOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, index: i32) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.BringIndexIntoView(index).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnItemsChanged: OnItemsChanged::, - OnClearChildren: OnClearChildren::, - BringIndexIntoView: BringIndexIntoView::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IVirtualizingStackPanelOverrides_Impl: Sized { - fn OnCleanUpVirtualizedItem(&self, e: &::core::option::Option) -> ::windows::core::Result<()> { - ::core::result::Result::Ok(()) - } -} -impl ::windows::core::RuntimeName for IVirtualizingStackPanelOverrides { - const NAME: &'static str = "Windows.UI.Xaml.Controls.IVirtualizingStackPanelOverrides"; -} -impl IVirtualizingStackPanelOverrides_Vtbl { - pub const fn new, Impl: IVirtualizingStackPanelOverrides_Impl, const OFFSET: isize>() -> IVirtualizingStackPanelOverrides_Vtbl { - unsafe extern "system" fn OnCleanUpVirtualizedItem, Impl: IVirtualizingStackPanelOverrides_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, e: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnCleanUpVirtualizedItem(::core::mem::transmute(&e)).into() - } - Self { - base__: ::windows::core::IInspectableVtbl::new::(), - OnCleanUpVirtualizedItem: OnCleanUpVirtualizedItem::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} diff --git a/crates/libs/windows/src/Windows/UI/Xaml/Controls/mod.rs b/crates/libs/windows/src/Windows/UI/Xaml/Controls/mod.rs deleted file mode 100644 index 0de001eb43..0000000000 --- a/crates/libs/windows/src/Windows/UI/Xaml/Controls/mod.rs +++ /dev/null @@ -1,102303 +0,0 @@ -#[cfg(feature = "UI_Xaml_Controls_Maps")] -pub mod Maps; -#[cfg(feature = "UI_Xaml_Controls_Primitives")] -pub mod Primitives; -#[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] -#[repr(transparent)] -pub struct AnchorRequestedEventArgs(::windows::core::IUnknown); -impl AnchorRequestedEventArgs { - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn Anchor(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Anchor)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetAnchor<'a, Param0: ::windows::core::IntoParam<'a, super::UIElement>>(&self, value: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetAnchor)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation_Collections\"`*"] - #[cfg(feature = "Foundation_Collections")] - pub fn AnchorCandidates(&self) -> ::windows::core::Result> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).AnchorCandidates)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::>(result__) - } - } -} -impl ::core::clone::Clone for AnchorRequestedEventArgs { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AnchorRequestedEventArgs { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AnchorRequestedEventArgs {} -impl ::core::fmt::Debug for AnchorRequestedEventArgs { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AnchorRequestedEventArgs").field(&self.0).finish() - } -} -unsafe impl ::windows::core::RuntimeType for AnchorRequestedEventArgs { - const SIGNATURE: ::windows::core::ConstBuffer = ::windows::core::ConstBuffer::from_slice(b"rc(Windows.UI.Xaml.Controls.AnchorRequestedEventArgs;{5175f55d-4785-5a72-b462-eb11e9bdf897})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AnchorRequestedEventArgs { - type Vtable = IAnchorRequestedEventArgs_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -impl ::windows::core::RuntimeName for AnchorRequestedEventArgs { - const NAME: &'static str = "Windows.UI.Xaml.Controls.AnchorRequestedEventArgs"; -} -impl ::core::convert::From for ::windows::core::IUnknown { - fn from(value: AnchorRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AnchorRequestedEventArgs> for ::windows::core::IUnknown { - fn from(value: &AnchorRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for AnchorRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IUnknown> for &'a AnchorRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IUnknown> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AnchorRequestedEventArgs) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AnchorRequestedEventArgs> for ::windows::core::IInspectable { - fn from(value: &AnchorRequestedEventArgs) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for AnchorRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Owned(unsafe { ::core::mem::transmute(self) }) - } -} -impl<'a> ::windows::core::IntoParam<'a, ::windows::core::IInspectable> for &'a AnchorRequestedEventArgs { - fn into_param(self) -> ::windows::core::Param<'a, ::windows::core::IInspectable> { - ::windows::core::Param::Borrowed(unsafe { ::core::mem::transmute(self) }) - } -} -unsafe impl ::core::marker::Send for AnchorRequestedEventArgs {} -unsafe impl ::core::marker::Sync for AnchorRequestedEventArgs {} -#[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] -#[repr(transparent)] -pub struct AppBar(::windows::core::IUnknown); -impl AppBar { - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsOpen(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsOpen)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetIsOpen(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsOpen)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsSticky(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsSticky)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetIsSticky(&self, value: bool) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).SetIsSticky)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Opened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Opened)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveOpened<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).RemoveOpened)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Closed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventHandler<::windows::core::IInspectable>>>(&self, handler: Param0) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Closed)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveClosed<'a, Param0: ::windows::core::IntoParam<'a, super::super::super::Foundation::EventRegistrationToken>>(&self, token: Param0) -> ::windows::core::Result<()> { - let this = self; - unsafe { (::windows::core::Interface::vtable(this).RemoveClosed)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn ClosedDisplayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).ClosedDisplayMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetClosedDisplayMode(&self, value: AppBarClosedDisplayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetClosedDisplayMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn TemplateSettings(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TemplateSettings)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Opening<'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)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Opening)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveOpening<'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).RemoveOpening)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn Closing<'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)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).Closing)(::windows::core::Interface::as_raw(this), handler.into_param().abi(), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"Foundation\"`*"] - #[cfg(feature = "Foundation")] - pub fn RemoveClosing<'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).RemoveClosing)(::windows::core::Interface::as_raw(this), token.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn LightDismissOverlayMode(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LightDismissOverlayMode)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetLightDismissOverlayMode(&self, value: LightDismissOverlayMode) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetLightDismissOverlayMode)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IAppBarFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IAppBarFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsOpenProperty() -> ::windows::core::Result { - Self::IAppBarStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsOpenProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsStickyProperty() -> ::windows::core::Result { - Self::IAppBarStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsStickyProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn ClosedDisplayModeProperty() -> ::windows::core::Result { - Self::IAppBarStatics2(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).ClosedDisplayModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn LightDismissOverlayModeProperty() -> ::windows::core::Result { - Self::IAppBarStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LightDismissOverlayModeProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc(hidden)] - pub fn IAppBarFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAppBarStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAppBarStatics2 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAppBarStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AppBar { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBar { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBar {} -impl ::core::fmt::Debug for AppBar { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBar").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBar { - type Vtable = IAppBar_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBar> for ::windows::core::IUnknown { - fn from(value: &AppBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBar) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBar> for ::windows::core::IInspectable { - fn from(value: &AppBar) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -#[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) - } -} -impl ::core::convert::From for ContentControl { - fn from(value: AppBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBar> for ContentControl { - fn from(value: &AppBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, ContentControl> for AppBar { - fn into_param(self) -> ::windows::core::Param<'a, ContentControl> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for Control { - fn from(value: AppBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBar> for Control { - fn from(value: &AppBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, Control> for AppBar { - fn into_param(self) -> ::windows::core::Param<'a, Control> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::FrameworkElement { - fn from(value: AppBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBar> for super::FrameworkElement { - fn from(value: &AppBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::FrameworkElement> for AppBar { - fn into_param(self) -> ::windows::core::Param<'a, super::FrameworkElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::UIElement { - fn from(value: AppBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBar> for super::UIElement { - fn from(value: &AppBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::UIElement> for AppBar { - fn into_param(self) -> ::windows::core::Param<'a, super::UIElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -impl ::core::convert::From for super::DependencyObject { - fn from(value: AppBar) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBar> for super::DependencyObject { - fn from(value: &AppBar) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, super::DependencyObject> for AppBar { - fn into_param(self) -> ::windows::core::Param<'a, super::DependencyObject> { - ::windows::core::IntoParam::into_param(&self) - } -} -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)) - } -} -unsafe impl ::core::marker::Send for AppBar {} -unsafe impl ::core::marker::Sync for AppBar {} -#[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] -#[repr(transparent)] -pub struct AppBarButton(::windows::core::IUnknown); -impl AppBarButton { - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn Label(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).Label)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - 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).SetLabel)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn Icon(&self) -> ::windows::core::Result { - let this = self; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).Icon)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - 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).SetIcon)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn LabelPosition(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).LabelPosition)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetLabelPosition(&self, value: CommandBarLabelPosition) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetLabelPosition)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn KeyboardAcceleratorTextOverride(&self) -> ::windows::core::Result<::windows::core::HSTRING> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<::core::mem::ManuallyDrop<::windows::core::HSTRING>>::zeroed(); - (::windows::core::Interface::vtable(this).KeyboardAcceleratorTextOverride)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::<::windows::core::HSTRING>(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - 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).SetKeyboardAcceleratorTextOverride)(::windows::core::Interface::as_raw(this), value.into_param().abi()).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`, `\"UI_Xaml_Controls_Primitives\"`*"] - #[cfg(feature = "UI_Xaml_Controls_Primitives")] - pub fn TemplateSettings(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).TemplateSettings)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn new() -> ::windows::core::Result { - Self::IAppBarButtonFactory(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::ptr::null_mut(), &mut ::core::option::Option::<::windows::core::IInspectable>::None as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn compose(compose: T) -> ::windows::core::Result { - Self::IAppBarButtonFactory(|this| unsafe { - let (derived__, base__) = ::windows::core::Compose::compose(compose); - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).CreateInstance)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(&derived__), base__ as *mut _ as _, result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn LabelProperty() -> ::windows::core::Result { - Self::IAppBarButtonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LabelProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IconProperty() -> ::windows::core::Result { - Self::IAppBarButtonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IconProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsCompactProperty() -> ::windows::core::Result { - Self::IAppBarButtonStatics(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsCompactProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn LabelPositionProperty() -> ::windows::core::Result { - Self::IAppBarButtonStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).LabelPositionProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsInOverflowProperty() -> ::windows::core::Result { - Self::IAppBarButtonStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).IsInOverflowProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn DynamicOverflowOrderProperty() -> ::windows::core::Result { - Self::IAppBarButtonStatics3(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).DynamicOverflowOrderProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn KeyboardAcceleratorTextOverrideProperty() -> ::windows::core::Result { - Self::IAppBarButtonStatics4(|this| unsafe { - let mut result__ = ::core::mem::MaybeUninit::<*mut ::core::ffi::c_void>::zeroed(); - (::windows::core::Interface::vtable(this).KeyboardAcceleratorTextOverrideProperty)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - }) - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsCompact(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsCompact)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetIsCompact(&self, value: bool) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetIsCompact)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn IsInOverflow(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).IsInOverflow)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn DynamicOverflowOrder(&self) -> ::windows::core::Result { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { - let mut result__ = ::core::mem::MaybeUninit::::zeroed(); - (::windows::core::Interface::vtable(this).DynamicOverflowOrder)(::windows::core::Interface::as_raw(this), result__.as_mut_ptr()).from_abi::(result__) - } - } - #[doc = "*Required features: `\"UI_Xaml_Controls\"`*"] - pub fn SetDynamicOverflowOrder(&self, value: i32) -> ::windows::core::Result<()> { - let this = &::windows::core::Interface::cast::(self)?; - unsafe { (::windows::core::Interface::vtable(this).SetDynamicOverflowOrder)(::windows::core::Interface::as_raw(this), value).ok() } - } - #[doc(hidden)] - pub fn IAppBarButtonFactory ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAppBarButtonStatics ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAppBarButtonStatics3 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } - #[doc(hidden)] - pub fn IAppBarButtonStatics4 ::windows::core::Result>(callback: F) -> ::windows::core::Result { - static SHARED: ::windows::core::FactoryCache = ::windows::core::FactoryCache::new(); - SHARED.call(callback) - } -} -impl ::core::clone::Clone for AppBarButton { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for AppBarButton { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for AppBarButton {} -impl ::core::fmt::Debug for AppBarButton { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("AppBarButton").field(&self.0).finish() - } -} -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})"); - type DefaultType = ::core::option::Option; - fn from_default(from: &Self::DefaultType) -> ::windows::core::Result { - from.as_ref().cloned().ok_or(::windows::core::Error::OK) - } -} -unsafe impl ::windows::core::Interface for AppBarButton { - type Vtable = IAppBarButton_Vtbl; - const IID: ::windows::core::GUID = ::IID; -} -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 { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarButton> for ::windows::core::IUnknown { - fn from(value: &AppBarButton) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -impl ::core::convert::From for ::windows::core::IInspectable { - fn from(value: AppBarButton) -> Self { - unsafe { ::core::mem::transmute(value) } - } -} -impl ::core::convert::From<&AppBarButton> for ::windows::core::IInspectable { - fn from(value: &AppBarButton) -> Self { - ::core::convert::From::from(::core::clone::Clone::clone(value)) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -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(unsafe { ::core::mem::transmute(self) }) - } -} -#[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(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 = "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 = "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) - } -} -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) - } -} -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) - } -} -impl<'a> ::windows::core::IntoParam<'a, ICommandBarElement> for AppBarButton { - fn into_param(self) -> ::windows::core::Param<'a, ICommandBarElement> { - ::windows::core::IntoParam::into_param(&self) - } -} -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) - } -} -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) - } -} -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) - } -} -impl<'a> ::windows::core::IntoParam<'a, ICommandBarElement2> for AppBarButton { - fn into_param(self) -> ::windows::core::Param<'a, ICommandBarElement2> { - ::windows::core::IntoParam::into_param(&self) - } -} -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 = "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 = "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 = "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 = "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) - } -} -impl ::core::convert::From for Button { - fn from(value: AppBarButton) -> Self { - ::core::convert::From::from(&value) - } -} -impl ::core::convert::From<&AppBarButton> for Button { - fn from(value: &AppBarButton) -> Self { - ::windows::core::Interface::cast(value).unwrap() - } -} -impl<'a> ::windows::core::IntoParam<'a, Button> for AppBarButton { - fn into_param(self) -> ::windows::core::Param<'a, Button> { - ::windows::core::IntoParam::into_param(&self) - } -} -impl<'a> ::windows::core::IntoParam<'a, Button> for &AppBarButton { - fn into_param(self) -> ::windows::core::Param<'a, Button> { - ::windows::core::Param::Owned(::core::convert::Into::