// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Xaml_Hosting_H #define WINRT_Windows_UI_Xaml_Hosting_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/Windows.UI.Xaml.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.WindowManagement.2.h" #include "winrt/impl/Windows.UI.Xaml.2.h" #include "winrt/impl/Windows.UI.Xaml.Controls.2.h" #include "winrt/impl/Windows.UI.Xaml.Controls.Primitives.2.h" #include "winrt/impl/Windows.UI.Xaml.Hosting.2.h" namespace winrt::impl { template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppExitedEventArgs::ExitCode() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppExitedEventArgs)->get_ExitCode(&value)); return value; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppManager::AppUserModelId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppManager)->get_AppUserModelId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppManager::DesignerAppExited(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppManager)->add_DesignerAppExited(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppManager::DesignerAppExited(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, DesignerAppExited(handler)); } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppManager::DesignerAppExited(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppManager)->remove_DesignerAppExited(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppManager::CreateNewViewAsync(winrt::Windows::UI::Xaml::Hosting::DesignerAppViewState const& initialViewState, winrt::Windows::Foundation::Size const& initialViewSize) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppManager)->CreateNewViewAsync(static_cast(initialViewState), impl::bind_in(initialViewSize), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppManager::LoadObjectIntoAppAsync(param::hstring const& dllName, winrt::guid const& classId, param::hstring const& initializationData) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppManager)->LoadObjectIntoAppAsync(*(void**)(&dllName), impl::bind_in(classId), *(void**)(&initializationData), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppManagerFactory::Create(param::hstring const& appUserModelId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppManagerFactory)->Create(*(void**)(&appUserModelId), &value)); return winrt::Windows::UI::Xaml::Hosting::DesignerAppManager{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppView::ApplicationViewId() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppView)->get_ApplicationViewId(&value)); return value; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppView::AppUserModelId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppView)->get_AppUserModelId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppView::ViewState() const { winrt::Windows::UI::Xaml::Hosting::DesignerAppViewState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppView)->get_ViewState(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppView::ViewSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppView)->get_ViewSize(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_Hosting_IDesignerAppView::UpdateViewAsync(winrt::Windows::UI::Xaml::Hosting::DesignerAppViewState const& viewState, winrt::Windows::Foundation::Size const& viewSize) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesignerAppView)->UpdateViewAsync(static_cast(viewState), impl::bind_in(viewSize), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->get_Content(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::Content(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->put_Content(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::HasFocus() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->get_HasFocus(&value)); return value; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::TakeFocusRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->add_TakeFocusRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::TakeFocusRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, TakeFocusRequested(handler)); } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::TakeFocusRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->remove_TakeFocusRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::GotFocus(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->add_GotFocus(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::GotFocus(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, GotFocus(handler)); } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::GotFocus(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->remove_GotFocus(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSource::NavigateFocus(winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest const& request) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSource)->NavigateFocus(*(void**)(&request), &result)); return winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationResult{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSourceFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSourceFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::Hosting::DesktopWindowXamlSource{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSourceGotFocusEventArgs::Request() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSourceGotFocusEventArgs)->get_Request(&value)); return winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IDesktopWindowXamlSourceTakeFocusRequestedEventArgs::Request() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IDesktopWindowXamlSourceTakeFocusRequestedEventArgs)->get_Request(&value)); return winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics::GetElementVisual(winrt::Windows::UI::Xaml::UIElement const& element) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics)->GetElementVisual(*(void**)(&element), &result)); return winrt::Windows::UI::Composition::Visual{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics::GetElementChildVisual(winrt::Windows::UI::Xaml::UIElement const& element) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics)->GetElementChildVisual(*(void**)(&element), &result)); return winrt::Windows::UI::Composition::Visual{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics::SetElementChildVisual(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Windows::UI::Composition::Visual const& visual) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics)->SetElementChildVisual(*(void**)(&element), *(void**)(&visual))); } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics::GetScrollViewerManipulationPropertySet(winrt::Windows::UI::Xaml::Controls::ScrollViewer const& scrollViewer) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics)->GetScrollViewerManipulationPropertySet(*(void**)(&scrollViewer), &result)); return winrt::Windows::UI::Composition::CompositionPropertySet{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics2::SetImplicitShowAnimation(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Windows::UI::Composition::ICompositionAnimationBase const& animation) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics2)->SetImplicitShowAnimation(*(void**)(&element), *(void**)(&animation))); } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics2::SetImplicitHideAnimation(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Windows::UI::Composition::ICompositionAnimationBase const& animation) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics2)->SetImplicitHideAnimation(*(void**)(&element), *(void**)(&animation))); } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics2::SetIsTranslationEnabled(winrt::Windows::UI::Xaml::UIElement const& element, bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics2)->SetIsTranslationEnabled(*(void**)(&element), value)); } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics2::GetPointerPositionPropertySet(winrt::Windows::UI::Xaml::UIElement const& targetElement) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics2)->GetPointerPositionPropertySet(*(void**)(&targetElement), &result)); return winrt::Windows::UI::Composition::CompositionPropertySet{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics3::SetAppWindowContent(winrt::Windows::UI::WindowManagement::AppWindow const& appWindow, winrt::Windows::UI::Xaml::UIElement const& xamlContent) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics3)->SetAppWindowContent(*(void**)(&appWindow), *(void**)(&xamlContent))); } template auto consume_Windows_UI_Xaml_Hosting_IElementCompositionPreviewStatics3::GetAppWindowContent(winrt::Windows::UI::WindowManagement::AppWindow const& appWindow) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IElementCompositionPreviewStatics3)->GetAppWindowContent(*(void**)(&appWindow), &result)); return winrt::Windows::UI::Xaml::UIElement{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IWindowsXamlManagerStatics::InitializeForCurrentThread() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IWindowsXamlManagerStatics)->InitializeForCurrentThread(&result)); return winrt::Windows::UI::Xaml::Hosting::WindowsXamlManager{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequest::Reason() const { winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequest::HintRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest)->get_HintRect(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequest::CorrelationId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequest)->get_CorrelationId(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequestFactory::CreateInstance(winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationReason const& reason) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequestFactory)->CreateInstance(static_cast(reason), &value)); return winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequestFactory::CreateInstanceWithHintRect(winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequestFactory)->CreateInstanceWithHintRect(static_cast(reason), impl::bind_in(hintRect), &value)); return winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationRequestFactory::CreateInstanceWithHintRectAndCorrelationId(winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect, winrt::guid const& correlationId) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationRequestFactory)->CreateInstanceWithHintRectAndCorrelationId(static_cast(reason), impl::bind_in(hintRect), impl::bind_in(correlationId), &value)); return winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationResult::WasFocusMoved() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationResult)->get_WasFocusMoved(&value)); return value; } template auto consume_Windows_UI_Xaml_Hosting_IXamlSourceFocusNavigationResultFactory::CreateInstance(bool focusMoved) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlSourceFocusNavigationResultFactory)->CreateInstance(focusMoved, &value)); return winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationResult{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::RootElement() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->get_RootElement(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::RootElement(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->put_RootElement(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::ThemeKey() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->get_ThemeKey(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::ThemeKey(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->put_ThemeKey(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::ThemeResourcesXaml() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->get_ThemeResourcesXaml(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::ThemeResourcesXaml(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->put_ThemeResourcesXaml(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::SetSize(int32_t width, int32_t height) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->SetSize(width, height)); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::Render() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->Render()); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenter::Present() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenter)->Present()); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterHost::ResolveFileResource(param::hstring const& path) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterHost)->ResolveFileResource(*(void**)(&path), &result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterHost2::GetGenericXamlFilePath() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterHost2)->GetGenericXamlFilePath(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterHost3::ResolveDictionaryResource(winrt::Windows::UI::Xaml::ResourceDictionary const& dictionary, winrt::Windows::Foundation::IInspectable const& dictionaryKey, winrt::Windows::Foundation::IInspectable const& suggestedValue) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterHost3)->ResolveDictionaryResource(*(void**)(&dictionary), *(void**)(&dictionaryKey), *(void**)(&suggestedValue), &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterStatics::CompleteTimelinesAutomatically() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterStatics)->get_CompleteTimelinesAutomatically(&value)); return value; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterStatics::CompleteTimelinesAutomatically(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterStatics)->put_CompleteTimelinesAutomatically(value)); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterStatics::SetHost(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterHost const& host) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterStatics)->SetHost(*(void**)(&host))); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterStatics::NotifyWindowSizeChanged() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterStatics)->NotifyWindowSizeChanged()); } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterStatics2::GetFlyoutPlacementTargetInfo(winrt::Windows::UI::Xaml::FrameworkElement const& placementTarget, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode const& preferredPlacement, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode& targetPreferredPlacement, bool& allowFallbacks) const { winrt::Windows::Foundation::Rect returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterStatics2)->GetFlyoutPlacementTargetInfo(*(void**)(&placementTarget), static_cast(preferredPlacement), reinterpret_cast(&targetPreferredPlacement), &allowFallbacks, put_abi(returnValue))); return returnValue; } template auto consume_Windows_UI_Xaml_Hosting_IXamlUIPresenterStatics2::GetFlyoutPlacement(winrt::Windows::Foundation::Rect const& placementTargetBounds, winrt::Windows::Foundation::Size const& controlSize, winrt::Windows::Foundation::Size const& minControlSize, winrt::Windows::Foundation::Rect const& containerRect, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode const& targetPreferredPlacement, bool allowFallbacks, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode& chosenPlacement) const { winrt::Windows::Foundation::Rect returnValue{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterStatics2)->GetFlyoutPlacement(impl::bind_in(placementTargetBounds), impl::bind_in(controlSize), impl::bind_in(minControlSize), impl::bind_in(containerRect), static_cast(targetPreferredPlacement), allowFallbacks, reinterpret_cast(&chosenPlacement), put_abi(returnValue))); return returnValue; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExitCode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExitCode()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AppUserModelId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppUserModelId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_DesignerAppExited(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DesignerAppExited(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DesignerAppExited(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DesignerAppExited(*reinterpret_cast(&token)); return 0; } int32_t __stdcall CreateNewViewAsync(int32_t initialViewState, winrt::Windows::Foundation::Size initialViewSize, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateNewViewAsync(*reinterpret_cast(&initialViewState), *reinterpret_cast(&initialViewSize))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LoadObjectIntoAppAsync(void* dllName, winrt::guid classId, void* initializationData, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().LoadObjectIntoAppAsync(*reinterpret_cast(&dllName), *reinterpret_cast(&classId), *reinterpret_cast(&initializationData))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* appUserModelId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Create(*reinterpret_cast(&appUserModelId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ApplicationViewId(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ApplicationViewId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppUserModelId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppUserModelId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateViewAsync(int32_t viewState, winrt::Windows::Foundation::Size viewSize, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().UpdateViewAsync(*reinterpret_cast(&viewState), *reinterpret_cast(&viewSize))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Content(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Content(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Content(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasFocus(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasFocus()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_TakeFocusRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().TakeFocusRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TakeFocusRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TakeFocusRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_GotFocus(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().GotFocus(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().GotFocus(*reinterpret_cast(&token)); return 0; } int32_t __stdcall NavigateFocus(void* request, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().NavigateFocus(*reinterpret_cast(&request))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Request(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Request()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Request(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Request()); 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 GetElementVisual(void* element, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetElementVisual(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetElementChildVisual(void* element, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetElementChildVisual(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetElementChildVisual(void* element, void* visual) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetElementChildVisual(*reinterpret_cast(&element), *reinterpret_cast(&visual)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetScrollViewerManipulationPropertySet(void* scrollViewer, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetScrollViewerManipulationPropertySet(*reinterpret_cast(&scrollViewer))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetImplicitShowAnimation(void* element, void* animation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetImplicitShowAnimation(*reinterpret_cast(&element), *reinterpret_cast(&animation)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetImplicitHideAnimation(void* element, void* animation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetImplicitHideAnimation(*reinterpret_cast(&element), *reinterpret_cast(&animation)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetIsTranslationEnabled(void* element, bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetIsTranslationEnabled(*reinterpret_cast(&element), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPointerPositionPropertySet(void* targetElement, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetPointerPositionPropertySet(*reinterpret_cast(&targetElement))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetAppWindowContent(void* appWindow, void* xamlContent) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAppWindowContent(*reinterpret_cast(&appWindow), *reinterpret_cast(&xamlContent)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAppWindowContent(void* appWindow, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAppWindowContent(*reinterpret_cast(&appWindow))); 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 InitializeForCurrentThread(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().InitializeForCurrentThread()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HintRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HintRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CorrelationId(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CorrelationId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(int32_t reason, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&reason))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateInstanceWithHintRect(int32_t reason, winrt::Windows::Foundation::Rect hintRect, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstanceWithHintRect(*reinterpret_cast(&reason), *reinterpret_cast(&hintRect))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateInstanceWithHintRectAndCorrelationId(int32_t reason, winrt::Windows::Foundation::Rect hintRect, winrt::guid correlationId, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstanceWithHintRectAndCorrelationId(*reinterpret_cast(&reason), *reinterpret_cast(&hintRect), *reinterpret_cast(&correlationId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_WasFocusMoved(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WasFocusMoved()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(bool focusMoved, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(focusMoved)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RootElement(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RootElement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RootElement(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RootElement(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ThemeKey(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ThemeKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ThemeKey(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ThemeKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ThemeResourcesXaml(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ThemeResourcesXaml()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ThemeResourcesXaml(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ThemeResourcesXaml(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSize(int32_t width, int32_t height) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetSize(width, height); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Render() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Render(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Present() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Present(); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall ResolveFileResource(void* path, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ResolveFileResource(*reinterpret_cast(&path))); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GetGenericXamlFilePath(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetGenericXamlFilePath()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall ResolveDictionaryResource(void* dictionary, void* dictionaryKey, void* suggestedValue, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ResolveDictionaryResource(*reinterpret_cast(&dictionary), *reinterpret_cast(&dictionaryKey), *reinterpret_cast(&suggestedValue))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CompleteTimelinesAutomatically(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompleteTimelinesAutomatically()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CompleteTimelinesAutomatically(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CompleteTimelinesAutomatically(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetHost(void* host) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetHost(*reinterpret_cast(&host)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NotifyWindowSizeChanged() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NotifyWindowSizeChanged(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetFlyoutPlacementTargetInfo(void* placementTarget, int32_t preferredPlacement, int32_t* targetPreferredPlacement, bool* allowFallbacks, winrt::Windows::Foundation::Rect* returnValue) noexcept final try { zero_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().GetFlyoutPlacementTargetInfo(*reinterpret_cast(&placementTarget), *reinterpret_cast(&preferredPlacement), *reinterpret_cast(targetPreferredPlacement), *allowFallbacks)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetFlyoutPlacement(winrt::Windows::Foundation::Rect placementTargetBounds, winrt::Windows::Foundation::Size controlSize, winrt::Windows::Foundation::Size minControlSize, winrt::Windows::Foundation::Rect containerRect, int32_t targetPreferredPlacement, bool allowFallbacks, int32_t* chosenPlacement, winrt::Windows::Foundation::Rect* returnValue) noexcept final try { zero_abi(returnValue); typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().GetFlyoutPlacement(*reinterpret_cast(&placementTargetBounds), *reinterpret_cast(&controlSize), *reinterpret_cast(&minControlSize), *reinterpret_cast(&containerRect), *reinterpret_cast(&targetPreferredPlacement), allowFallbacks, *reinterpret_cast(chosenPlacement))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Xaml::Hosting { inline DesignerAppManager::DesignerAppManager(param::hstring const& appUserModelId) : DesignerAppManager(impl::call_factory([&](IDesignerAppManagerFactory const& f) { return f.Create(appUserModelId); })) { } inline DesktopWindowXamlSource::DesktopWindowXamlSource() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDesktopWindowXamlSourceFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto ElementCompositionPreview::GetElementVisual(winrt::Windows::UI::Xaml::UIElement const& element) { return impl::call_factory([&](IElementCompositionPreviewStatics const& f) { return f.GetElementVisual(element); }); } inline auto ElementCompositionPreview::GetElementChildVisual(winrt::Windows::UI::Xaml::UIElement const& element) { return impl::call_factory([&](IElementCompositionPreviewStatics const& f) { return f.GetElementChildVisual(element); }); } inline auto ElementCompositionPreview::SetElementChildVisual(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Windows::UI::Composition::Visual const& visual) { impl::call_factory([&](IElementCompositionPreviewStatics const& f) { return f.SetElementChildVisual(element, visual); }); } inline auto ElementCompositionPreview::GetScrollViewerManipulationPropertySet(winrt::Windows::UI::Xaml::Controls::ScrollViewer const& scrollViewer) { return impl::call_factory([&](IElementCompositionPreviewStatics const& f) { return f.GetScrollViewerManipulationPropertySet(scrollViewer); }); } inline auto ElementCompositionPreview::SetImplicitShowAnimation(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Windows::UI::Composition::ICompositionAnimationBase const& animation) { impl::call_factory([&](IElementCompositionPreviewStatics2 const& f) { return f.SetImplicitShowAnimation(element, animation); }); } inline auto ElementCompositionPreview::SetImplicitHideAnimation(winrt::Windows::UI::Xaml::UIElement const& element, winrt::Windows::UI::Composition::ICompositionAnimationBase const& animation) { impl::call_factory([&](IElementCompositionPreviewStatics2 const& f) { return f.SetImplicitHideAnimation(element, animation); }); } inline auto ElementCompositionPreview::SetIsTranslationEnabled(winrt::Windows::UI::Xaml::UIElement const& element, bool value) { impl::call_factory([&](IElementCompositionPreviewStatics2 const& f) { return f.SetIsTranslationEnabled(element, value); }); } inline auto ElementCompositionPreview::GetPointerPositionPropertySet(winrt::Windows::UI::Xaml::UIElement const& targetElement) { return impl::call_factory([&](IElementCompositionPreviewStatics2 const& f) { return f.GetPointerPositionPropertySet(targetElement); }); } inline auto ElementCompositionPreview::SetAppWindowContent(winrt::Windows::UI::WindowManagement::AppWindow const& appWindow, winrt::Windows::UI::Xaml::UIElement const& xamlContent) { impl::call_factory([&](IElementCompositionPreviewStatics3 const& f) { return f.SetAppWindowContent(appWindow, xamlContent); }); } inline auto ElementCompositionPreview::GetAppWindowContent(winrt::Windows::UI::WindowManagement::AppWindow const& appWindow) { return impl::call_factory([&](IElementCompositionPreviewStatics3 const& f) { return f.GetAppWindowContent(appWindow); }); } inline auto WindowsXamlManager::InitializeForCurrentThread() { return impl::call_factory_cast([](IWindowsXamlManagerStatics const& f) { return f.InitializeForCurrentThread(); }); } inline XamlSourceFocusNavigationRequest::XamlSourceFocusNavigationRequest(winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationReason const& reason) : XamlSourceFocusNavigationRequest(impl::call_factory([&](IXamlSourceFocusNavigationRequestFactory const& f) { return f.CreateInstance(reason); })) { } inline XamlSourceFocusNavigationRequest::XamlSourceFocusNavigationRequest(winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect) : XamlSourceFocusNavigationRequest(impl::call_factory([&](IXamlSourceFocusNavigationRequestFactory const& f) { return f.CreateInstanceWithHintRect(reason, hintRect); })) { } inline XamlSourceFocusNavigationRequest::XamlSourceFocusNavigationRequest(winrt::Windows::UI::Xaml::Hosting::XamlSourceFocusNavigationReason const& reason, winrt::Windows::Foundation::Rect const& hintRect, winrt::guid const& correlationId) : XamlSourceFocusNavigationRequest(impl::call_factory([&](IXamlSourceFocusNavigationRequestFactory const& f) { return f.CreateInstanceWithHintRectAndCorrelationId(reason, hintRect, correlationId); })) { } inline XamlSourceFocusNavigationResult::XamlSourceFocusNavigationResult(bool focusMoved) : XamlSourceFocusNavigationResult(impl::call_factory([&](IXamlSourceFocusNavigationResultFactory const& f) { return f.CreateInstance(focusMoved); })) { } inline auto XamlUIPresenter::CompleteTimelinesAutomatically() { return impl::call_factory_cast([](IXamlUIPresenterStatics const& f) { return f.CompleteTimelinesAutomatically(); }); } inline auto XamlUIPresenter::CompleteTimelinesAutomatically(bool value) { impl::call_factory([&](IXamlUIPresenterStatics const& f) { return f.CompleteTimelinesAutomatically(value); }); } inline auto XamlUIPresenter::SetHost(winrt::Windows::UI::Xaml::Hosting::IXamlUIPresenterHost const& host) { impl::call_factory([&](IXamlUIPresenterStatics const& f) { return f.SetHost(host); }); } inline auto XamlUIPresenter::NotifyWindowSizeChanged() { impl::call_factory_cast([](IXamlUIPresenterStatics const& f) { return f.NotifyWindowSizeChanged(); }); } inline auto XamlUIPresenter::GetFlyoutPlacementTargetInfo(winrt::Windows::UI::Xaml::FrameworkElement const& placementTarget, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode const& preferredPlacement, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode& targetPreferredPlacement, bool& allowFallbacks) { return impl::call_factory([&](IXamlUIPresenterStatics2 const& f) { return f.GetFlyoutPlacementTargetInfo(placementTarget, preferredPlacement, targetPreferredPlacement, allowFallbacks); }); } inline auto XamlUIPresenter::GetFlyoutPlacement(winrt::Windows::Foundation::Rect const& placementTargetBounds, winrt::Windows::Foundation::Size const& controlSize, winrt::Windows::Foundation::Size const& minControlSize, winrt::Windows::Foundation::Rect const& containerRect, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode const& targetPreferredPlacement, bool allowFallbacks, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode& chosenPlacement) { return impl::call_factory([&](IXamlUIPresenterStatics2 const& f) { return f.GetFlyoutPlacement(placementTargetBounds, controlSize, minControlSize, containerRect, targetPreferredPlacement, allowFallbacks, chosenPlacement); }); } template struct DesktopWindowXamlSourceT : implements, impl::require, impl::base { using composable = DesktopWindowXamlSource; protected: DesktopWindowXamlSourceT() { impl::call_factory([&](IDesktopWindowXamlSourceFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif