// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Microsoft_UI_Content_H #define WINRT_Microsoft_UI_Content_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Microsoft.UI.h" #include "winrt/impl/Microsoft.UI.2.h" #include "winrt/impl/Microsoft.UI.Composition.2.h" #include "winrt/impl/Microsoft.UI.Dispatching.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Foundation.Numerics.2.h" #include "winrt/impl/Windows.Graphics.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Microsoft.UI.Content.2.h" namespace winrt::impl { template auto consume_Microsoft_UI_Content_IChildSiteLink::ActualSize() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLink)->get_ActualSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IChildSiteLink::ActualSize(winrt::Windows::Foundation::Numerics::float2 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLink)->put_ActualSize(impl::bind_in(value))); } template auto consume_Microsoft_UI_Content_IChildSiteLink::DispatcherQueue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLink)->get_DispatcherQueue(&value)); return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IChildSiteLink::LocalToParentTransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLink)->get_LocalToParentTransformMatrix(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IChildSiteLink::LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLink)->put_LocalToParentTransformMatrix(impl::bind_in(value))); } template auto consume_Microsoft_UI_Content_IChildSiteLink::SiteView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLink)->get_SiteView(&value)); return winrt::Microsoft::UI::Content::ContentSiteView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IChildSiteLink::Connect(winrt::Microsoft::UI::Content::ContentIsland const& content) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLink)->Connect(*(void**)(&content))); } template auto consume_Microsoft_UI_Content_IChildSiteLinkStatics::Create(winrt::Microsoft::UI::Content::ContentIsland const& parent, winrt::Microsoft::UI::Composition::ContainerVisual const& placementVisual) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLinkStatics)->Create(*(void**)(&parent), *(void**)(&placementVisual), &result)); return winrt::Microsoft::UI::Content::ChildSiteLink{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IChildSiteLinkStatics::CreateForSystemVisual(winrt::Microsoft::UI::Content::ContentIsland const& parent, winrt::Windows::UI::Composition::ContainerVisual const& placementVisual) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IChildSiteLinkStatics)->CreateForSystemVisual(*(void**)(&parent), *(void**)(&placementVisual), &result)); return winrt::Microsoft::UI::Content::ChildSiteLink{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverter::ConvertLocalToScreen(winrt::Windows::Foundation::Point const& localPoint) const { winrt::Windows::Graphics::PointInt32 result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverter)->ConvertLocalToScreenWithPoint(impl::bind_in(localPoint), put_abi(result))); return result; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverter::ConvertLocalToScreen(array_view localPoints) const { uint32_t result_impl_size{}; struct struct_Windows_Graphics_PointInt32* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverter)->ConvertLocalToScreenWithPoints(localPoints.size(), get_abi(localPoints), &result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverter::ConvertLocalToScreen(array_view localPoints, winrt::Microsoft::UI::Content::ContentCoordinateRoundingMode const& roundingMode) const { uint32_t result_impl_size{}; struct struct_Windows_Graphics_PointInt32* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverter)->ConvertLocalToScreenWithPointsAndRoundingMode(localPoints.size(), get_abi(localPoints), static_cast(roundingMode), &result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverter::ConvertLocalToScreen(winrt::Windows::Foundation::Rect const& localRect) const { winrt::Windows::Graphics::RectInt32 result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverter)->ConvertLocalToScreenWithRect(impl::bind_in(localRect), put_abi(result))); return result; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverter::ConvertScreenToLocal(winrt::Windows::Graphics::PointInt32 const& screenPoint) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverter)->ConvertScreenToLocalWithPoint(impl::bind_in(screenPoint), put_abi(result))); return result; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverter::ConvertScreenToLocal(array_view screenPoints) const { uint32_t result_impl_size{}; winrt::Windows::Foundation::Point* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverter)->ConvertScreenToLocalWithPoints(screenPoints.size(), get_abi(screenPoints), &result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverter::ConvertScreenToLocal(winrt::Windows::Graphics::RectInt32 const& screenRect) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverter)->ConvertScreenToLocalWithRect(impl::bind_in(screenRect), put_abi(result))); return result; } template auto consume_Microsoft_UI_Content_IContentCoordinateConverterStatics::CreateForWindowId(winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentCoordinateConverterStatics)->CreateForWindowId(impl::bind_in(windowId), &result)); return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentDeferral::Complete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentDeferral)->Complete()); } template auto consume_Microsoft_UI_Content_IContentEnvironmentSettingChangedEventArgs::SettingName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentEnvironmentSettingChangedEventArgs)->get_SettingName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentEnvironmentStateChangedEventArgs::DidAppWindowIdChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs)->get_DidAppWindowIdChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentEnvironmentStateChangedEventArgs::DidDisplayIdChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs)->get_DidDisplayIdChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentEnvironmentStateChangedEventArgs2::DidDisplayScaleChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentEnvironmentStateChangedEventArgs2)->get_DidDisplayScaleChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::ActualSize() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_ActualSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::AppData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_AppData(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland::AppData(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->put_AppData(*(void**)(&value))); } template auto consume_Microsoft_UI_Content_IContentIsland::CoordinateConverter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_CoordinateConverter(&value)); return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland::CustomProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_CustomProperties(&value)); return winrt::Windows::Foundation::Collections::IPropertySet{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland::DispatcherQueue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_DispatcherQueue(&value)); return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland::Environment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_Environment(&value)); return winrt::Microsoft::UI::Content::ContentIslandEnvironment{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland::Id() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_Id(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::IsConnected() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_IsConnected(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::IsHitTestVisibleWhenTransparent() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_IsHitTestVisibleWhenTransparent(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::IsHitTestVisibleWhenTransparent(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->put_IsHitTestVisibleWhenTransparent(value)); } template auto consume_Microsoft_UI_Content_IContentIsland::IsIslandEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_IsIslandEnabled(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::IsIslandEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->put_IsIslandEnabled(value)); } template auto consume_Microsoft_UI_Content_IContentIsland::IsIslandVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_IsIslandVisible(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::IsIslandVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->put_IsIslandVisible(value)); } template auto consume_Microsoft_UI_Content_IContentIsland::IsSiteEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_IsSiteEnabled(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::IsSiteVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_IsSiteVisible(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::LayoutDirection() const { winrt::Microsoft::UI::Content::ContentLayoutDirection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_LayoutDirection(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::RasterizationScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->get_RasterizationScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland::GetAutomationHostProvider() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->GetAutomationHostProvider(&result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland::GetStateChangeDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->GetStateChangeDeferral(&result)); return winrt::Microsoft::UI::Content::ContentDeferral{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland::RequestSize(winrt::Windows::Foundation::Numerics::float2 const& size) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->RequestSize(impl::bind_in(size))); } template auto consume_Microsoft_UI_Content_IContentIsland::AutomationProviderRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->add_AutomationProviderRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentIsland::AutomationProviderRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AutomationProviderRequested(handler)); } template auto consume_Microsoft_UI_Content_IContentIsland::AutomationProviderRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->remove_AutomationProviderRequested(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentIsland::StateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->add_StateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentIsland::StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StateChanged(handler)); } template auto consume_Microsoft_UI_Content_IContentIsland::StateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland)->remove_StateChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentIsland2::Children() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland2)->get_Children(&value)); return winrt::Windows::Foundation::Collections::IIterable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland2::LocalToClientTransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland2)->get_LocalToClientTransformMatrix(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentIsland2::LocalToParentTransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland2)->get_LocalToParentTransformMatrix(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentIsland2::Popups() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland2)->get_Popups(&value)); return winrt::Windows::Foundation::Collections::IIterable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIsland2::ProcessesKeyboardInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland2)->get_ProcessesKeyboardInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIsland2::ProcessesPointerInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIsland2)->get_ProcessesPointerInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandAutomation::AutomationOption() const { winrt::Microsoft::UI::Content::ContentAutomationOptions value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomation)->get_AutomationOption(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Content_IContentIslandAutomation::FragmentRootAutomationProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomation)->get_FragmentRootAutomationProvider(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandAutomation::NextSiblingAutomationProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomation)->get_NextSiblingAutomationProvider(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandAutomation::ParentAutomationProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomation)->get_ParentAutomationProvider(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandAutomation::PreviousSiblingAutomationProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomation)->get_PreviousSiblingAutomationProvider(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs::AutomationProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomationProviderRequestedEventArgs)->get_AutomationProvider(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs::AutomationProvider(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomationProviderRequestedEventArgs)->put_AutomationProvider(*(void**)(&value))); } template auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomationProviderRequestedEventArgs)->get_Handled(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandAutomationProviderRequestedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandAutomationProviderRequestedEventArgs)->put_Handled(value)); } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::AppWindowId() const { winrt::Microsoft::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandEnvironment)->get_AppWindowId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::DisplayId() const { winrt::Microsoft::UI::DisplayId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandEnvironment)->get_DisplayId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::SettingChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandEnvironment)->add_SettingChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::SettingChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SettingChanged(handler)); } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::SettingChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandEnvironment)->remove_SettingChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::StateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandEnvironment)->add_StateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::StateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, StateChanged(handler)); } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment::StateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandEnvironment)->remove_StateChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentIslandEnvironment2::DisplayScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandEnvironment2)->get_DisplayScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs::DidActualSizeChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs)->get_DidActualSizeChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs::DidSiteEnabledChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs)->get_DidSiteEnabledChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs::DidSiteVisibleChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs)->get_DidSiteVisibleChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs::DidLayoutDirectionChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs)->get_DidLayoutDirectionChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs::DidRasterizationScaleChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs)->get_DidRasterizationScaleChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs2::DidLocalToClientTransformMatrixChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs2)->get_DidLocalToClientTransformMatrixChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStateChangedEventArgs2::DidLocalToParentTransformMatrixChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStateChangedEventArgs2)->get_DidLocalToParentTransformMatrixChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentIslandStatics::Create(winrt::Microsoft::UI::Composition::Visual const& Root) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics)->Create(*(void**)(&Root), &result)); return winrt::Microsoft::UI::Content::ContentIsland{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandStatics::FindAllForCompositor(winrt::Microsoft::UI::Composition::Compositor const& compositor) const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics)->FindAllForCompositor(*(void**)(&compositor), &result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandStatics::FindAllForCurrentThread() const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics)->FindAllForCurrentThread(&result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandStatics::GetByVisual(winrt::Microsoft::UI::Composition::Visual const& child) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics)->GetByVisual(*(void**)(&child), &result)); return winrt::Microsoft::UI::Content::ContentIsland{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandStatics::GetFromId(uint64_t id) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics)->GetFromId(id, &result)); return winrt::Microsoft::UI::Content::ContentIsland{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandStatics2::CreateForSystemVisual(winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, winrt::Windows::UI::Composition::Visual const& root) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics2)->CreateForSystemVisual(*(void**)(&queue), *(void**)(&root), &result)); return winrt::Microsoft::UI::Content::ContentIsland{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandStatics2::FindAllForSystemCompositor(winrt::Windows::UI::Composition::Compositor const& compositor) const { uint32_t result_impl_size{}; void** result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics2)->FindAllForSystemCompositor(*(void**)(&compositor), &result_impl_size, &result)); return com_array{ result, result_impl_size, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentIslandStatics2::GetBySystemVisual(winrt::Windows::UI::Composition::Visual const& child) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentIslandStatics2)->GetBySystemVisual(*(void**)(&child), &result)); return winrt::Microsoft::UI::Content::ContentIsland{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSite::ActualSize() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_ActualSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSite::ActualSize(winrt::Windows::Foundation::Numerics::float2 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_ActualSize(impl::bind_in(value))); } template auto consume_Microsoft_UI_Content_IContentSite::ClientSize() const { winrt::Windows::Graphics::SizeInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_ClientSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSite::ClientSize(winrt::Windows::Graphics::SizeInt32 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_ClientSize(impl::bind_in(value))); } template auto consume_Microsoft_UI_Content_IContentSite::CoordinateConverter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_CoordinateConverter(&value)); return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSite::DispatcherQueue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_DispatcherQueue(&value)); return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSite::Environment() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_Environment(&value)); return winrt::Microsoft::UI::Content::ContentSiteEnvironment{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSite::IsConnected() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_IsConnected(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite::IsSiteEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_IsSiteEnabled(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite::IsSiteEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_IsSiteEnabled(value)); } template auto consume_Microsoft_UI_Content_IContentSite::IsSiteVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_IsSiteVisible(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite::IsSiteVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_IsSiteVisible(value)); } template auto consume_Microsoft_UI_Content_IContentSite::LayoutDirection() const { winrt::Microsoft::UI::Content::ContentLayoutDirection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_LayoutDirection(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Content_IContentSite::LayoutDirection(winrt::Microsoft::UI::Content::ContentLayoutDirection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_LayoutDirection(static_cast(value))); } template auto consume_Microsoft_UI_Content_IContentSite::OverrideScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_OverrideScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite::OverrideScale(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_OverrideScale(value)); } template auto consume_Microsoft_UI_Content_IContentSite::ParentScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_ParentScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite::ParentScale(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_ParentScale(value)); } template auto consume_Microsoft_UI_Content_IContentSite::RasterizationScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_RasterizationScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite::RequestedSize() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_RequestedSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSite::ShouldApplyRasterizationScale() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_ShouldApplyRasterizationScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite::ShouldApplyRasterizationScale(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->put_ShouldApplyRasterizationScale(value)); } template auto consume_Microsoft_UI_Content_IContentSite::View() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->get_View(&value)); return winrt::Microsoft::UI::Content::ContentSiteView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSite::GetIslandStateChangeDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->GetIslandStateChangeDeferral(&result)); return winrt::Microsoft::UI::Content::ContentDeferral{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSite::RequestedStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->add_RequestedStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentSite::RequestedStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, RequestedStateChanged(handler)); } template auto consume_Microsoft_UI_Content_IContentSite::RequestedStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite)->remove_RequestedStateChanged(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentSite2::LocalToClientTransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite2)->get_LocalToClientTransformMatrix(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSite2::LocalToParentTransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite2)->get_LocalToParentTransformMatrix(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSite2::LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite2)->put_LocalToParentTransformMatrix(impl::bind_in(value))); } template auto consume_Microsoft_UI_Content_IContentSite2::ProcessesKeyboardInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite2)->get_ProcessesKeyboardInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite2::ProcessesKeyboardInput(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite2)->put_ProcessesKeyboardInput(value)); } template auto consume_Microsoft_UI_Content_IContentSite2::ProcessesPointerInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite2)->get_ProcessesPointerInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSite2::ProcessesPointerInput(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSite2)->put_ProcessesPointerInput(value)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::AutomationOption() const { winrt::Microsoft::UI::Content::ContentAutomationOptions value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->get_AutomationOption(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::AutomationOption(winrt::Microsoft::UI::Content::ContentAutomationOptions const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->put_AutomationOption(static_cast(value))); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::AutomationProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->get_AutomationProvider(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::FragmentRootAutomationProviderRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->add_FragmentRootAutomationProviderRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::FragmentRootAutomationProviderRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, FragmentRootAutomationProviderRequested(handler)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::FragmentRootAutomationProviderRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->remove_FragmentRootAutomationProviderRequested(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::NextSiblingAutomationProviderRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->add_NextSiblingAutomationProviderRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::NextSiblingAutomationProviderRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, NextSiblingAutomationProviderRequested(handler)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::NextSiblingAutomationProviderRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->remove_NextSiblingAutomationProviderRequested(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::ParentAutomationProviderRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->add_ParentAutomationProviderRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::ParentAutomationProviderRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ParentAutomationProviderRequested(handler)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::ParentAutomationProviderRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->remove_ParentAutomationProviderRequested(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::PreviousSiblingAutomationProviderRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->add_PreviousSiblingAutomationProviderRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::PreviousSiblingAutomationProviderRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PreviousSiblingAutomationProviderRequested(handler)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomation::PreviousSiblingAutomationProviderRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomation)->remove_PreviousSiblingAutomationProviderRequested(impl::bind_in(token)); } template auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs::AutomationProvider() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomationProviderRequestedEventArgs)->get_AutomationProvider(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs::AutomationProvider(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomationProviderRequestedEventArgs)->put_AutomationProvider(*(void**)(&value))); } template auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomationProviderRequestedEventArgs)->get_Handled(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteAutomationProviderRequestedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteAutomationProviderRequestedEventArgs)->put_Handled(value)); } template auto consume_Microsoft_UI_Content_IContentSiteBridge::DispatcherQueue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteBridge)->get_DispatcherQueue(&value)); return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteBridge::LayoutDirectionOverride() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteBridge)->get_LayoutDirectionOverride(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteBridge::LayoutDirectionOverride(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteBridge)->put_LayoutDirectionOverride(*(void**)(&value))); } template auto consume_Microsoft_UI_Content_IContentSiteBridge::OverrideScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteBridge)->get_OverrideScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteBridge::OverrideScale(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteBridge)->put_OverrideScale(value)); } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment::AppWindowId() const { winrt::Microsoft::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment)->get_AppWindowId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment::AppWindowId(winrt::Microsoft::UI::WindowId const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment)->put_AppWindowId(impl::bind_in(value))); } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment::DisplayId() const { winrt::Microsoft::UI::DisplayId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment)->get_DisplayId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment::DisplayId(winrt::Microsoft::UI::DisplayId const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment)->put_DisplayId(impl::bind_in(value))); } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment::View() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment)->get_View(&value)); return winrt::Microsoft::UI::Content::ContentSiteEnvironmentView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment::NotifySettingChanged(param::hstring const& setting) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment)->NotifySettingChanged(*(void**)(&setting))); } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment2::DisplayScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment2)->get_DisplayScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteEnvironment2::DisplayScale(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironment2)->put_DisplayScale(value)); } template auto consume_Microsoft_UI_Content_IContentSiteEnvironmentView::AppWindowId() const { winrt::Microsoft::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironmentView)->get_AppWindowId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteEnvironmentView::DisplayId() const { winrt::Microsoft::UI::DisplayId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironmentView)->get_DisplayId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteEnvironmentView2::DisplayScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteEnvironmentView2)->get_DisplayScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesKeyboardInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteInput)->get_ProcessesKeyboardInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesKeyboardInput(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteInput)->put_ProcessesKeyboardInput(value)); } template auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesPointerInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteInput)->get_ProcessesPointerInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteInput::ProcessesPointerInput(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteInput)->put_ProcessesPointerInput(value)); } template auto consume_Microsoft_UI_Content_IContentSiteLink::Parent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteLink)->get_Parent(&value)); return winrt::Microsoft::UI::Content::ContentIsland{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteRequestedStateChangedEventArgs::DidRequestedSizeChange() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteRequestedStateChangedEventArgs)->get_DidRequestedSizeChange(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::ActualSize() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_ActualSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::ClientSize() const { winrt::Windows::Graphics::SizeInt32 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_ClientSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::CoordinateConverter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_CoordinateConverter(&value)); return winrt::Microsoft::UI::Content::ContentCoordinateConverter{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteView::DispatcherQueue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_DispatcherQueue(&value)); return winrt::Microsoft::UI::Dispatching::DispatcherQueue{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteView::EnvironmentView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_EnvironmentView(&value)); return winrt::Microsoft::UI::Content::ContentSiteEnvironmentView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IContentSiteView::IsConnected() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_IsConnected(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::IsSiteEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_IsSiteEnabled(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::IsSiteVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_IsSiteVisible(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::LayoutDirection() const { winrt::Microsoft::UI::Content::ContentLayoutDirection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_LayoutDirection(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::OverrideScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_OverrideScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::ParentScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_ParentScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::RasterizationScale() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_RasterizationScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::RequestedSize() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_RequestedSize(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView::ShouldApplyRasterizationScale() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView)->get_ShouldApplyRasterizationScale(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView2::LocalToClientTransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView2)->get_LocalToClientTransformMatrix(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView2::LocalToParentTransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView2)->get_LocalToParentTransformMatrix(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView2::ProcessesKeyboardInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView2)->get_ProcessesKeyboardInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteView2::ProcessesPointerInput() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteView2)->get_ProcessesPointerInput(&value)); return value; } template auto consume_Microsoft_UI_Content_IContentSiteViewAutomation::AutomationOption() const { winrt::Microsoft::UI::Content::ContentAutomationOptions value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IContentSiteViewAutomation)->get_AutomationOption(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridge::SiteView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridge)->get_SiteView(&value)); return winrt::Microsoft::UI::Content::ContentSiteView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridge::WindowId() const { winrt::Microsoft::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridge)->get_WindowId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridge::Connect(winrt::Microsoft::UI::Content::ContentIsland const& content) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridge)->Connect(*(void**)(&content))); } template auto consume_Microsoft_UI_Content_IDesktopAttachedSiteBridgeStatics::CreateFromWindowId(winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, winrt::Microsoft::UI::WindowId const& windowId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopAttachedSiteBridgeStatics)->CreateFromWindowId(*(void**)(&queue), impl::bind_in(windowId), &result)); return winrt::Microsoft::UI::Content::DesktopAttachedSiteBridge{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IDesktopChildSiteBridge::ResizePolicy() const { winrt::Microsoft::UI::Content::ContentSizePolicy value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopChildSiteBridge)->get_ResizePolicy(reinterpret_cast(&value))); return value; } template auto consume_Microsoft_UI_Content_IDesktopChildSiteBridge::ResizePolicy(winrt::Microsoft::UI::Content::ContentSizePolicy const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopChildSiteBridge)->put_ResizePolicy(static_cast(value))); } template auto consume_Microsoft_UI_Content_IDesktopChildSiteBridge::SiteView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopChildSiteBridge)->get_SiteView(&value)); return winrt::Microsoft::UI::Content::ContentSiteView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IDesktopChildSiteBridgeStatics::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor, winrt::Microsoft::UI::WindowId const& parentWindowId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopChildSiteBridgeStatics)->Create(*(void**)(&compositor), impl::bind_in(parentWindowId), &result)); return winrt::Microsoft::UI::Content::DesktopChildSiteBridge{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IDesktopChildSiteBridgeStatics2::CreateWithDispatcherQueue(winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, winrt::Microsoft::UI::WindowId const& parentWindowId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopChildSiteBridgeStatics2)->CreateWithDispatcherQueue(*(void**)(&queue), impl::bind_in(parentWindowId), &result)); return winrt::Microsoft::UI::Content::DesktopChildSiteBridge{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->get_IsEnabled(&value)); return value; } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::IsVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->get_IsVisible(&value)); return value; } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::SiteView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->get_SiteView(&value)); return winrt::Microsoft::UI::Content::ContentSiteView{ value, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::WindowId() const { winrt::Microsoft::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->get_WindowId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Connect(winrt::Microsoft::UI::Content::ContentIsland const& content) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->Connect(*(void**)(&content))); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Disable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->Disable()); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Enable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->Enable()); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Hide() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->Hide()); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::MoveAndResize(winrt::Windows::Graphics::RectInt32 const& rect) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->MoveAndResize(impl::bind_in(rect))); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::MoveInZOrderAtBottom() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->MoveInZOrderAtBottom()); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::MoveInZOrderAtTop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->MoveInZOrderAtTop()); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::MoveInZOrderBelow(winrt::Microsoft::UI::WindowId const& windowId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->MoveInZOrderBelow(impl::bind_in(windowId))); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridge::Show() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridge)->Show()); } template auto consume_Microsoft_UI_Content_IDesktopPopupSiteBridgeStatics::Create(winrt::Microsoft::UI::Content::ContentIsland const& parent) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopPopupSiteBridgeStatics)->Create(*(void**)(&parent), &result)); return winrt::Microsoft::UI::Content::DesktopPopupSiteBridge{ result, take_ownership_from_abi }; } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->get_IsEnabled(&value)); return value; } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::IsVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->get_IsVisible(&value)); return value; } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::WindowId() const { winrt::Microsoft::UI::WindowId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->get_WindowId(put_abi(value))); return value; } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Connect(winrt::Microsoft::UI::Content::ContentIsland const& content) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->Connect(*(void**)(&content))); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Disable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->Disable()); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Enable() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->Enable()); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Hide() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->Hide()); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveAndResize(winrt::Windows::Graphics::RectInt32 const& rect) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->MoveAndResize(impl::bind_in(rect))); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveInZOrderAtBottom() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->MoveInZOrderAtBottom()); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveInZOrderAtTop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->MoveInZOrderAtTop()); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::MoveInZOrderBelow(winrt::Microsoft::UI::WindowId const& windowId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->MoveInZOrderBelow(impl::bind_in(windowId))); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridge::Show() const { check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridge)->Show()); } template auto consume_Microsoft_UI_Content_IDesktopSiteBridgeStatics::IsSupported() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::UI::Content::IDesktopSiteBridgeStatics)->IsSupported(&result)); return result; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ActualSize(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ActualSize(winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ActualSize(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DispatcherQueue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalToParentTransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LocalToParentTransformMatrix(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SiteView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SiteView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Connect(void* content) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Connect(*reinterpret_cast(&content)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* parent, void* placementVisual, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&parent), *reinterpret_cast(&placementVisual))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateForSystemVisual(void* parent, void* placementVisual, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForSystemVisual(*reinterpret_cast(&parent), *reinterpret_cast(&placementVisual))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ConvertLocalToScreenWithPoint(winrt::Windows::Foundation::Point localPoint, struct struct_Windows_Graphics_PointInt32* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ConvertLocalToScreen(*reinterpret_cast(&localPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConvertLocalToScreenWithPoints(uint32_t __localPointsSize, winrt::Windows::Foundation::Point* localPoints, uint32_t* __resultSize, struct struct_Windows_Graphics_PointInt32** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().ConvertLocalToScreen(array_view(reinterpret_cast(localPoints), reinterpret_cast(localPoints) + __localPointsSize))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConvertLocalToScreenWithPointsAndRoundingMode(uint32_t __localPointsSize, winrt::Windows::Foundation::Point* localPoints, int32_t roundingMode, uint32_t* __resultSize, struct struct_Windows_Graphics_PointInt32** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().ConvertLocalToScreen(array_view(reinterpret_cast(localPoints), reinterpret_cast(localPoints) + __localPointsSize), *reinterpret_cast(&roundingMode))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConvertLocalToScreenWithRect(winrt::Windows::Foundation::Rect localRect, struct struct_Windows_Graphics_RectInt32* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ConvertLocalToScreen(*reinterpret_cast(&localRect))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConvertScreenToLocalWithPoint(struct struct_Windows_Graphics_PointInt32 screenPoint, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ConvertScreenToLocal(*reinterpret_cast(&screenPoint))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConvertScreenToLocalWithPoints(uint32_t __screenPointsSize, struct struct_Windows_Graphics_PointInt32* screenPoints, uint32_t* __resultSize, winrt::Windows::Foundation::Point** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().ConvertScreenToLocal(array_view(reinterpret_cast(screenPoints), reinterpret_cast(screenPoints) + __screenPointsSize))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ConvertScreenToLocalWithRect(struct struct_Windows_Graphics_RectInt32 screenRect, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ConvertScreenToLocal(*reinterpret_cast(&screenRect))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForWindowId(struct struct_Microsoft_UI_WindowId windowId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForWindowId(*reinterpret_cast(&windowId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Complete() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Complete(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SettingName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SettingName()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DidAppWindowIdChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidAppWindowIdChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DidDisplayIdChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidDisplayIdChange()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DidDisplayScaleChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidDisplayScaleChange()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ActualSize(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppData(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppData(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CoordinateConverter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CoordinateConverter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DispatcherQueue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Environment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Environment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Id(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsConnected(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsConnected()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHitTestVisibleWhenTransparent(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHitTestVisibleWhenTransparent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHitTestVisibleWhenTransparent(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHitTestVisibleWhenTransparent(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsIslandEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIslandEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsIslandEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsIslandEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsIslandVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIslandVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsIslandVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsIslandVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSiteEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSiteEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSiteVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSiteVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LayoutDirection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LayoutDirection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RasterizationScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RasterizationScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAutomationHostProvider(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAutomationHostProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetStateChangeDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetStateChangeDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestSize(winrt::Windows::Foundation::Numerics::float2 size) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequestSize(*reinterpret_cast(&size)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_AutomationProviderRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AutomationProviderRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AutomationProviderRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AutomationProviderRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_StateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StateChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Children(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Children()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LocalToClientTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalToClientTransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalToParentTransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Popups(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Popups()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesKeyboardInput()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesPointerInput()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AutomationOption(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutomationOption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FragmentRootAutomationProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FragmentRootAutomationProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NextSiblingAutomationProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NextSiblingAutomationProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ParentAutomationProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ParentAutomationProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PreviousSiblingAutomationProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviousSiblingAutomationProvider()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AutomationProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutomationProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AutomationProvider(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AutomationProvider(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppWindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppWindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayId(struct struct_Microsoft_UI_DisplayId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_SettingChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SettingChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SettingChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SettingChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_StateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().StateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_StateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().StateChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayScale()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DidActualSizeChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidActualSizeChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DidSiteEnabledChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidSiteEnabledChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DidSiteVisibleChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidSiteVisibleChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DidLayoutDirectionChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidLayoutDirectionChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DidRasterizationScaleChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidRasterizationScaleChange()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DidLocalToClientTransformMatrixChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidLocalToClientTransformMatrixChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DidLocalToParentTransformMatrixChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidLocalToParentTransformMatrixChange()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* Root, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&Root))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllForCompositor(void* compositor, uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().FindAllForCompositor(*reinterpret_cast(&compositor))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllForCurrentThread(uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().FindAllForCurrentThread()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetByVisual(void* child, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetByVisual(*reinterpret_cast(&child))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFromId(uint64_t id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetFromId(id)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForSystemVisual(void* queue, void* root, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForSystemVisual(*reinterpret_cast(&queue), *reinterpret_cast(&root))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindAllForSystemCompositor(void* compositor, uint32_t* __resultSize, void*** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); std::tie(*__resultSize, *result) = detach_abi(this->shim().FindAllForSystemCompositor(*reinterpret_cast(&compositor))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBySystemVisual(void* child, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetBySystemVisual(*reinterpret_cast(&child))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ActualSize(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ActualSize(winrt::Windows::Foundation::Numerics::float2 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ActualSize(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ClientSize(struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClientSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ClientSize(struct struct_Windows_Graphics_SizeInt32 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClientSize(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CoordinateConverter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CoordinateConverter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DispatcherQueue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Environment(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Environment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsConnected(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsConnected()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSiteEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSiteEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSiteEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSiteEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSiteVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSiteVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSiteVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSiteVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LayoutDirection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LayoutDirection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LayoutDirection(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LayoutDirection(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverrideScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverrideScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OverrideScale(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OverrideScale(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ParentScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ParentScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ParentScale(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ParentScale(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RasterizationScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RasterizationScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequestedSize(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequestedSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShouldApplyRasterizationScale(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldApplyRasterizationScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShouldApplyRasterizationScale(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShouldApplyRasterizationScale(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_View(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().View()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIslandStateChangeDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIslandStateChangeDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_RequestedStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RequestedStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RequestedStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RequestedStateChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LocalToClientTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalToClientTransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalToParentTransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LocalToParentTransformMatrix(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesKeyboardInput()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProcessesKeyboardInput(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessesKeyboardInput(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesPointerInput()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProcessesPointerInput(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessesPointerInput(value); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_AutomationOption(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutomationOption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AutomationOption(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AutomationOption(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AutomationProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutomationProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_FragmentRootAutomationProviderRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FragmentRootAutomationProviderRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FragmentRootAutomationProviderRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FragmentRootAutomationProviderRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_NextSiblingAutomationProviderRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().NextSiblingAutomationProviderRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_NextSiblingAutomationProviderRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().NextSiblingAutomationProviderRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ParentAutomationProviderRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ParentAutomationProviderRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ParentAutomationProviderRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ParentAutomationProviderRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PreviousSiblingAutomationProviderRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PreviousSiblingAutomationProviderRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PreviousSiblingAutomationProviderRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PreviousSiblingAutomationProviderRequested(*reinterpret_cast(&token)); return 0; } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AutomationProvider(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutomationProvider()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AutomationProvider(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AutomationProvider(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DispatcherQueue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LayoutDirectionOverride(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().LayoutDirectionOverride()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LayoutDirectionOverride(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LayoutDirectionOverride(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverrideScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverrideScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OverrideScale(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OverrideScale(value); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppWindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppWindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppWindowId(struct struct_Microsoft_UI_WindowId value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppWindowId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayId(struct struct_Microsoft_UI_DisplayId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayId(struct struct_Microsoft_UI_DisplayId value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_View(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().View()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifySettingChanged(void* setting) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifySettingChanged(*reinterpret_cast(&setting)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayScale(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayScale(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppWindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppWindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayId(struct struct_Microsoft_UI_DisplayId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayScale()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif template struct produce : produce_base { int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesKeyboardInput()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProcessesKeyboardInput(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessesKeyboardInput(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesPointerInput()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ProcessesPointerInput(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ProcessesPointerInput(value); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall get_Parent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Parent()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DidRequestedSizeChange(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DidRequestedSizeChange()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ActualSize(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ClientSize(struct struct_Windows_Graphics_SizeInt32* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClientSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CoordinateConverter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CoordinateConverter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DispatcherQueue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DispatcherQueue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EnvironmentView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EnvironmentView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsConnected(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsConnected()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSiteEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSiteEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSiteVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSiteVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LayoutDirection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LayoutDirection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverrideScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverrideScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ParentScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ParentScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RasterizationScale(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RasterizationScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequestedSize(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequestedSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShouldApplyRasterizationScale(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldApplyRasterizationScale()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LocalToClientTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalToClientTransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LocalToParentTransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LocalToParentTransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessesKeyboardInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesKeyboardInput()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessesPointerInput(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessesPointerInput()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AutomationOption(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AutomationOption()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SiteView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SiteView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Connect(void* content) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Connect(*reinterpret_cast(&content)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromWindowId(void* queue, struct struct_Microsoft_UI_WindowId windowId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateFromWindowId(*reinterpret_cast(&queue), *reinterpret_cast(&windowId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ResizePolicy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ResizePolicy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ResizePolicy(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResizePolicy(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SiteView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SiteView()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* compositor, struct struct_Microsoft_UI_WindowId parentWindowId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&compositor), *reinterpret_cast(&parentWindowId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWithDispatcherQueue(void* queue, struct struct_Microsoft_UI_WindowId parentWindowId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWithDispatcherQueue(*reinterpret_cast(&queue), *reinterpret_cast(&parentWindowId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SiteView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SiteView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Connect(void* content) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Connect(*reinterpret_cast(&content)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Disable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Disable(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Enable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Enable(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Hide() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Hide(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveAndResize(struct struct_Windows_Graphics_RectInt32 rect) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveAndResize(*reinterpret_cast(&rect)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveInZOrderAtBottom() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveInZOrderAtBottom(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveInZOrderAtTop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveInZOrderAtTop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveInZOrderBelow(struct struct_Microsoft_UI_WindowId windowId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveInZOrderBelow(*reinterpret_cast(&windowId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Show() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Show(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* parent, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&parent))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WindowId(struct struct_Microsoft_UI_WindowId* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WindowId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Connect(void* content) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Connect(*reinterpret_cast(&content)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Disable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Disable(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Enable() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Enable(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Hide() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Hide(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveAndResize(struct struct_Windows_Graphics_RectInt32 rect) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveAndResize(*reinterpret_cast(&rect)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveInZOrderAtBottom() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveInZOrderAtBottom(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveInZOrderAtTop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveInZOrderAtTop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MoveInZOrderBelow(struct struct_Microsoft_UI_WindowId windowId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MoveInZOrderBelow(*reinterpret_cast(&windowId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Show() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Show(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall IsSupported(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsSupported()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Microsoft::UI::Content { inline auto ChildSiteLink::Create(winrt::Microsoft::UI::Content::ContentIsland const& parent, winrt::Microsoft::UI::Composition::ContainerVisual const& placementVisual) { return impl::call_factory([&](IChildSiteLinkStatics const& f) { return f.Create(parent, placementVisual); }); } inline auto ChildSiteLink::CreateForSystemVisual(winrt::Microsoft::UI::Content::ContentIsland const& parent, winrt::Windows::UI::Composition::ContainerVisual const& placementVisual) { return impl::call_factory([&](IChildSiteLinkStatics const& f) { return f.CreateForSystemVisual(parent, placementVisual); }); } inline auto ContentCoordinateConverter::CreateForWindowId(winrt::Microsoft::UI::WindowId const& windowId) { return impl::call_factory([&](IContentCoordinateConverterStatics const& f) { return f.CreateForWindowId(windowId); }); } inline auto ContentIsland::Create(winrt::Microsoft::UI::Composition::Visual const& Root) { return impl::call_factory([&](IContentIslandStatics const& f) { return f.Create(Root); }); } inline auto ContentIsland::FindAllForCompositor(winrt::Microsoft::UI::Composition::Compositor const& compositor) { return impl::call_factory([&](IContentIslandStatics const& f) { return f.FindAllForCompositor(compositor); }); } inline auto ContentIsland::FindAllForCurrentThread() { return impl::call_factory_cast(*)(IContentIslandStatics const&), ContentIsland, IContentIslandStatics>([](IContentIslandStatics const& f) { return f.FindAllForCurrentThread(); }); } inline auto ContentIsland::GetByVisual(winrt::Microsoft::UI::Composition::Visual const& child) { return impl::call_factory([&](IContentIslandStatics const& f) { return f.GetByVisual(child); }); } inline auto ContentIsland::GetFromId(uint64_t id) { return impl::call_factory([&](IContentIslandStatics const& f) { return f.GetFromId(id); }); } inline auto ContentIsland::CreateForSystemVisual(winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, winrt::Windows::UI::Composition::Visual const& root) { return impl::call_factory([&](IContentIslandStatics2 const& f) { return f.CreateForSystemVisual(queue, root); }); } inline auto ContentIsland::FindAllForSystemCompositor(winrt::Windows::UI::Composition::Compositor const& compositor) { return impl::call_factory([&](IContentIslandStatics2 const& f) { return f.FindAllForSystemCompositor(compositor); }); } inline auto ContentIsland::GetBySystemVisual(winrt::Windows::UI::Composition::Visual const& child) { return impl::call_factory([&](IContentIslandStatics2 const& f) { return f.GetBySystemVisual(child); }); } inline auto DesktopAttachedSiteBridge::CreateFromWindowId(winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, winrt::Microsoft::UI::WindowId const& windowId) { return impl::call_factory([&](IDesktopAttachedSiteBridgeStatics const& f) { return f.CreateFromWindowId(queue, windowId); }); } inline auto DesktopChildSiteBridge::Create(winrt::Microsoft::UI::Composition::Compositor const& compositor, winrt::Microsoft::UI::WindowId const& parentWindowId) { return impl::call_factory([&](IDesktopChildSiteBridgeStatics const& f) { return f.Create(compositor, parentWindowId); }); } inline auto DesktopChildSiteBridge::CreateWithDispatcherQueue(winrt::Microsoft::UI::Dispatching::DispatcherQueue const& queue, winrt::Microsoft::UI::WindowId const& parentWindowId) { return impl::call_factory([&](IDesktopChildSiteBridgeStatics2 const& f) { return f.CreateWithDispatcherQueue(queue, parentWindowId); }); } inline auto DesktopPopupSiteBridge::Create(winrt::Microsoft::UI::Content::ContentIsland const& parent) { return impl::call_factory([&](IDesktopPopupSiteBridgeStatics const& f) { return f.Create(parent); }); } inline auto DesktopSiteBridge::IsSupported() { return impl::call_factory_cast([](IDesktopSiteBridgeStatics const& f) { return f.IsSupported(); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif