// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Graphics_Printing3D_H #define WINRT_Windows_Graphics_Printing3D_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.Graphics.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.Storage.Streams.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.Graphics.Printing3D.2.h" namespace winrt::impl { template auto consume_Windows_Graphics_Printing3D_IPrint3DManager::TaskRequested(winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DManager)->add_TaskRequested(*(void**)(&eventHandler), put_abi(token))); return token; } template auto consume_Windows_Graphics_Printing3D_IPrint3DManager::TaskRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { return impl::make_event_revoker(this, TaskRequested(eventHandler)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DManager::TaskRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DManager)->remove_TaskRequested(impl::bind_in(token)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DManagerStatics::GetForCurrentView() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DManagerStatics)->GetForCurrentView(&result)); return winrt::Windows::Graphics::Printing3D::Print3DManager{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrint3DManagerStatics::ShowPrintUIAsync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DManagerStatics)->ShowPrintUIAsync(&result)); return winrt::Windows::Foundation::IAsyncOperation{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::Source() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTask)->get_Source(&value)); return winrt::Windows::Graphics::Printing3D::Printing3D3MFPackage{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::Submitting(winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { winrt::event_token eventCookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTask)->add_Submitting(*(void**)(&eventHandler), put_abi(eventCookie))); return eventCookie; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::Submitting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { return impl::make_event_revoker(this, Submitting(eventHandler)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::Submitting(winrt::event_token const& eventCookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTask)->remove_Submitting(impl::bind_in(eventCookie)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::Completed(winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { winrt::event_token eventCookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTask)->add_Completed(*(void**)(&eventHandler), put_abi(eventCookie))); return eventCookie; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::Completed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { return impl::make_event_revoker(this, Completed(eventHandler)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::Completed(winrt::event_token const& eventCookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTask)->remove_Completed(impl::bind_in(eventCookie)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::SourceChanged(winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { winrt::event_token eventCookie{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTask)->add_SourceChanged(*(void**)(&eventHandler), put_abi(eventCookie))); return eventCookie; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::SourceChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& eventHandler) const { return impl::make_event_revoker(this, SourceChanged(eventHandler)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DTask::SourceChanged(winrt::event_token const& eventCookie) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTask)->remove_SourceChanged(impl::bind_in(eventCookie)); } template auto consume_Windows_Graphics_Printing3D_IPrint3DTaskCompletedEventArgs::Completion() const { winrt::Windows::Graphics::Printing3D::Print3DTaskCompletion value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTaskCompletedEventArgs)->get_Completion(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTaskCompletedEventArgs::ExtendedStatus() const { winrt::Windows::Graphics::Printing3D::Print3DTaskDetail value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTaskCompletedEventArgs)->get_ExtendedStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTaskRequest::CreateTask(param::hstring const& title, param::hstring const& printerId, winrt::Windows::Graphics::Printing3D::Print3DTaskSourceRequestedHandler const& handler) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTaskRequest)->CreateTask(*(void**)(&title), *(void**)(&printerId), *(void**)(&handler), &result)); return winrt::Windows::Graphics::Printing3D::Print3DTask{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTaskRequestedEventArgs::Request() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTaskRequestedEventArgs)->get_Request(&value)); return winrt::Windows::Graphics::Printing3D::Print3DTaskRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTaskSourceChangedEventArgs::Source() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTaskSourceChangedEventArgs)->get_Source(&value)); return winrt::Windows::Graphics::Printing3D::Printing3D3MFPackage{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrint3DTaskSourceRequestedArgs::SetSource(winrt::Windows::Graphics::Printing3D::Printing3D3MFPackage const& source) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrint3DTaskSourceRequestedArgs)->SetSource(*(void**)(&source))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::SaveAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->SaveAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::PrintTicket() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->get_PrintTicket(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStream{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::PrintTicket(winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->put_PrintTicket(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::ModelPart() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->get_ModelPart(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStream{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::ModelPart(winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->put_ModelPart(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::Thumbnail() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->get_Thumbnail(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DTextureResource{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::Thumbnail(winrt::Windows::Graphics::Printing3D::Printing3DTextureResource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->put_Thumbnail(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::Textures() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->get_Textures(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::LoadModelFromPackageAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->LoadModelFromPackageAsync(*(void**)(&value), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage::SaveModelToPackageAsync(winrt::Windows::Graphics::Printing3D::Printing3DModel const& value) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage)->SaveModelToPackageAsync(*(void**)(&value), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage2::Compression() const { winrt::Windows::Graphics::Printing3D::Printing3DPackageCompression value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage2)->get_Compression(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackage2::Compression(winrt::Windows::Graphics::Printing3D::Printing3DPackageCompression const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackage2)->put_Compression(static_cast(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3D3MFPackageStatics::LoadAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& value) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3D3MFPackageStatics)->LoadAsync(*(void**)(&value), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterial::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterial)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterial::Name(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterial)->put_Name(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterial::Color() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterial)->get_Color(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DColorMaterial{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterial::Color(winrt::Windows::Graphics::Printing3D::Printing3DColorMaterial const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterial)->put_Color(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterialGroup::Bases() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterialGroup)->get_Bases(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterialGroup::MaterialGroupId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterialGroup)->get_MaterialGroupId(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterialGroupFactory::Create(uint32_t MaterialGroupId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterialGroupFactory)->Create(MaterialGroupId, &result)); return winrt::Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterialStatics::Abs() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterialStatics)->get_Abs(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DBaseMaterialStatics::Pla() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DBaseMaterialStatics)->get_Pla(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DColorMaterial::Value() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DColorMaterial)->get_Value(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DColorMaterial::Value(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DColorMaterial)->put_Value(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DColorMaterial2::Color() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DColorMaterial2)->get_Color(put_abi(value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DColorMaterial2::Color(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DColorMaterial2)->put_Color(impl::bind_in(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DColorMaterialGroup::Colors() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DColorMaterialGroup)->get_Colors(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DColorMaterialGroup::MaterialGroupId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DColorMaterialGroup)->get_MaterialGroupId(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DColorMaterialGroupFactory::Create(uint32_t MaterialGroupId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DColorMaterialGroupFactory)->Create(MaterialGroupId, &result)); return winrt::Windows::Graphics::Printing3D::Printing3DColorMaterialGroup{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Mesh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->get_Mesh(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DMesh{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Mesh(winrt::Windows::Graphics::Printing3D::Printing3DMesh const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->put_Mesh(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Components() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->get_Components(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Thumbnail() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->get_Thumbnail(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DTextureResource{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Thumbnail(winrt::Windows::Graphics::Printing3D::Printing3DTextureResource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->put_Thumbnail(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Type() const { winrt::Windows::Graphics::Printing3D::Printing3DObjectType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->get_Type(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Type(winrt::Windows::Graphics::Printing3D::Printing3DObjectType const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->put_Type(static_cast(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::Name(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->put_Name(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::PartNumber() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->get_PartNumber(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponent::PartNumber(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponent)->put_PartNumber(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponentWithMatrix::Component() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponentWithMatrix)->get_Component(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DComponent{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponentWithMatrix::Component(winrt::Windows::Graphics::Printing3D::Printing3DComponent const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponentWithMatrix)->put_Component(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponentWithMatrix::Matrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponentWithMatrix)->get_Matrix(put_abi(value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DComponentWithMatrix::Matrix(winrt::Windows::Foundation::Numerics::float4x4 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DComponentWithMatrix)->put_Matrix(impl::bind_in(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DCompositeMaterial::Values() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DCompositeMaterial)->get_Values(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DCompositeMaterialGroup::Composites() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DCompositeMaterialGroup)->get_Composites(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DCompositeMaterialGroup::MaterialGroupId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DCompositeMaterialGroup)->get_MaterialGroupId(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DCompositeMaterialGroup::MaterialIndices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DCompositeMaterialGroup)->get_MaterialIndices(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DCompositeMaterialGroup2::BaseMaterialGroup() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DCompositeMaterialGroup2)->get_BaseMaterialGroup(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DCompositeMaterialGroup2::BaseMaterialGroup(winrt::Windows::Graphics::Printing3D::Printing3DBaseMaterialGroup const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DCompositeMaterialGroup2)->put_BaseMaterialGroup(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DCompositeMaterialGroupFactory::Create(uint32_t MaterialGroupId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DCompositeMaterialGroupFactory)->Create(MaterialGroupId, &result)); return winrt::Windows::Graphics::Printing3D::Printing3DCompositeMaterialGroup{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DFaceReductionOptions::MaxReductionArea() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DFaceReductionOptions)->get_MaxReductionArea(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DFaceReductionOptions::MaxReductionArea(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DFaceReductionOptions)->put_MaxReductionArea(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DFaceReductionOptions::TargetTriangleCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DFaceReductionOptions)->get_TargetTriangleCount(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DFaceReductionOptions::TargetTriangleCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DFaceReductionOptions)->put_TargetTriangleCount(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DFaceReductionOptions::MaxEdgeLength() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DFaceReductionOptions)->get_MaxEdgeLength(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DFaceReductionOptions::MaxEdgeLength(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DFaceReductionOptions)->put_MaxEdgeLength(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMaterial::BaseGroups() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMaterial)->get_BaseGroups(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMaterial::ColorGroups() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMaterial)->get_ColorGroups(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMaterial::Texture2CoordGroups() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMaterial)->get_Texture2CoordGroups(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMaterial::CompositeGroups() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMaterial)->get_CompositeGroups(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMaterial::MultiplePropertyGroups() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMaterial)->get_MultiplePropertyGroups(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::VertexCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_VertexCount(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::VertexCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->put_VertexCount(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::IndexCount() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_IndexCount(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::IndexCount(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->put_IndexCount(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::VertexPositionsDescription() const { winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_VertexPositionsDescription(put_abi(value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::VertexPositionsDescription(winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->put_VertexPositionsDescription(impl::bind_in(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::VertexNormalsDescription() const { winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_VertexNormalsDescription(put_abi(value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::VertexNormalsDescription(winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->put_VertexNormalsDescription(impl::bind_in(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::TriangleIndicesDescription() const { winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_TriangleIndicesDescription(put_abi(value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::TriangleIndicesDescription(winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->put_TriangleIndicesDescription(impl::bind_in(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::TriangleMaterialIndicesDescription() const { winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_TriangleMaterialIndicesDescription(put_abi(value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::TriangleMaterialIndicesDescription(winrt::Windows::Graphics::Printing3D::Printing3DBufferDescription const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->put_TriangleMaterialIndicesDescription(impl::bind_in(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::GetVertexPositions() const { void* buffer{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->GetVertexPositions(&buffer)); return winrt::Windows::Storage::Streams::IBuffer{ buffer, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::CreateVertexPositions(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->CreateVertexPositions(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::GetVertexNormals() const { void* buffer{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->GetVertexNormals(&buffer)); return winrt::Windows::Storage::Streams::IBuffer{ buffer, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::CreateVertexNormals(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->CreateVertexNormals(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::GetTriangleIndices() const { void* buffer{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->GetTriangleIndices(&buffer)); return winrt::Windows::Storage::Streams::IBuffer{ buffer, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::CreateTriangleIndices(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->CreateTriangleIndices(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::GetTriangleMaterialIndices() const { void* buffer{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->GetTriangleMaterialIndices(&buffer)); return winrt::Windows::Storage::Streams::IBuffer{ buffer, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::CreateTriangleMaterialIndices(uint32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->CreateTriangleMaterialIndices(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::BufferDescriptionSet() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_BufferDescriptionSet(&value)); return winrt::Windows::Foundation::Collections::IPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::BufferSet() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->get_BufferSet(&value)); return winrt::Windows::Foundation::Collections::IPropertySet{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMesh::VerifyAsync(winrt::Windows::Graphics::Printing3D::Printing3DMeshVerificationMode const& value) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMesh)->VerifyAsync(static_cast(value), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMeshVerificationResult::IsValid() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMeshVerificationResult)->get_IsValid(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMeshVerificationResult::NonmanifoldTriangles() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMeshVerificationResult)->get_NonmanifoldTriangles(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMeshVerificationResult::ReversedNormalTriangles() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMeshVerificationResult)->get_ReversedNormalTriangles(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Unit() const { winrt::Windows::Graphics::Printing3D::Printing3DModelUnit value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Unit(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Unit(winrt::Windows::Graphics::Printing3D::Printing3DModelUnit const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->put_Unit(static_cast(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Textures() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Textures(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Meshes() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Meshes(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Components() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Components(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Material() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Material(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DMaterial{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Material(winrt::Windows::Graphics::Printing3D::Printing3DMaterial const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->put_Material(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Build() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Build(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DComponent{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Build(winrt::Windows::Graphics::Printing3D::Printing3DComponent const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->put_Build(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Version() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Version(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Version(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->put_Version(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::RequiredExtensions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_RequiredExtensions(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Metadata() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->get_Metadata(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::RepairAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->RepairAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel::Clone() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel)->Clone(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DModel{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel2::TryPartialRepairAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel2)->TryPartialRepairAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel2::TryPartialRepairAsync(winrt::Windows::Foundation::TimeSpan const& maxWaitTime) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel2)->TryPartialRepairWithTimeAsync(impl::bind_in(maxWaitTime), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel2::TryReduceFacesAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel2)->TryReduceFacesAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel2::TryReduceFacesAsync(winrt::Windows::Graphics::Printing3D::Printing3DFaceReductionOptions const& printing3DFaceReductionOptions) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel2)->TryReduceFacesWithOptionsAsync(*(void**)(&printing3DFaceReductionOptions), &operation)); return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel2::TryReduceFacesAsync(winrt::Windows::Graphics::Printing3D::Printing3DFaceReductionOptions const& printing3DFaceReductionOptions, winrt::Windows::Foundation::TimeSpan const& maxWait) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel2)->TryReduceFacesWithOptionsAndTimeAsync(*(void**)(&printing3DFaceReductionOptions), impl::bind_in(maxWait), &operation)); return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModel2::RepairWithProgressAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModel2)->RepairWithProgressAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperationWithProgress{ operation, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModelTexture::TextureResource() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModelTexture)->get_TextureResource(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DTextureResource{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModelTexture::TextureResource(winrt::Windows::Graphics::Printing3D::Printing3DTextureResource const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModelTexture)->put_TextureResource(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModelTexture::TileStyleU() const { winrt::Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModelTexture)->get_TileStyleU(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModelTexture::TileStyleU(winrt::Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModelTexture)->put_TileStyleU(static_cast(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModelTexture::TileStyleV() const { winrt::Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModelTexture)->get_TileStyleV(reinterpret_cast(&value))); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DModelTexture::TileStyleV(winrt::Windows::Graphics::Printing3D::Printing3DTextureEdgeBehavior const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DModelTexture)->put_TileStyleV(static_cast(value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMultiplePropertyMaterial::MaterialIndices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMultiplePropertyMaterial)->get_MaterialIndices(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMultiplePropertyMaterialGroup::MultipleProperties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMultiplePropertyMaterialGroup)->get_MultipleProperties(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMultiplePropertyMaterialGroup::MaterialGroupIndices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMultiplePropertyMaterialGroup)->get_MaterialGroupIndices(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMultiplePropertyMaterialGroup::MaterialGroupId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMultiplePropertyMaterialGroup)->get_MaterialGroupId(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DMultiplePropertyMaterialGroupFactory::Create(uint32_t MaterialGroupId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DMultiplePropertyMaterialGroupFactory)->Create(MaterialGroupId, &result)); return winrt::Windows::Graphics::Printing3D::Printing3DMultiplePropertyMaterialGroup{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterial::Texture() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterial)->get_Texture(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DModelTexture{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterial::Texture(winrt::Windows::Graphics::Printing3D::Printing3DModelTexture const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterial)->put_Texture(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterial::U() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterial)->get_U(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterial::U(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterial)->put_U(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterial::V() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterial)->get_V(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterial::V(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterial)->put_V(value)); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterialGroup::Texture2Coords() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterialGroup)->get_Texture2Coords(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterialGroup::MaterialGroupId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterialGroup)->get_MaterialGroupId(&value)); return value; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterialGroup2::Texture() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterialGroup2)->get_Texture(&value)); return winrt::Windows::Graphics::Printing3D::Printing3DModelTexture{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterialGroup2::Texture(winrt::Windows::Graphics::Printing3D::Printing3DModelTexture const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterialGroup2)->put_Texture(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTexture2CoordMaterialGroupFactory::Create(uint32_t MaterialGroupId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTexture2CoordMaterialGroupFactory)->Create(MaterialGroupId, &result)); return winrt::Windows::Graphics::Printing3D::Printing3DTexture2CoordMaterialGroup{ result, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTextureResource::TextureData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTextureResource)->get_TextureData(&value)); return winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTextureResource::TextureData(winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTextureResource)->put_TextureData(*(void**)(&value))); } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTextureResource::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTextureResource)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Graphics_Printing3D_IPrinting3DTextureResource::Name(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Printing3D::IPrinting3DTextureResource)->put_Name(*(void**)(&value))); } template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* args) noexcept final try { (*this)(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_TaskRequested(void* eventHandler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().TaskRequested(*reinterpret_cast const*>(&eventHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TaskRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TaskRequested(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetForCurrentView(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetForCurrentView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowPrintUIAsync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().ShowPrintUIAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Source(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Source()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Submitting(void* eventHandler, winrt::event_token* eventCookie) noexcept final try { zero_abi(eventCookie); typename D::abi_guard guard(this->shim()); *eventCookie = detach_from(this->shim().Submitting(*reinterpret_cast const*>(&eventHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Submitting(winrt::event_token eventCookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Submitting(*reinterpret_cast(&eventCookie)); return 0; } int32_t __stdcall add_Completed(void* eventHandler, winrt::event_token* eventCookie) noexcept final try { zero_abi(eventCookie); typename D::abi_guard guard(this->shim()); *eventCookie = detach_from(this->shim().Completed(*reinterpret_cast const*>(&eventHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Completed(winrt::event_token eventCookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Completed(*reinterpret_cast(&eventCookie)); return 0; } int32_t __stdcall add_SourceChanged(void* eventHandler, winrt::event_token* eventCookie) noexcept final try { zero_abi(eventCookie); typename D::abi_guard guard(this->shim()); *eventCookie = detach_from(this->shim().SourceChanged(*reinterpret_cast const*>(&eventHandler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SourceChanged(winrt::event_token eventCookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SourceChanged(*reinterpret_cast(&eventCookie)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Completion(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Completion()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtendedStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtendedStatus()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateTask(void* title, void* printerId, void* handler, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateTask(*reinterpret_cast(&title), *reinterpret_cast(&printerId), *reinterpret_cast(&handler))); 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_Source(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Source()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetSource(void* source) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetSource(*reinterpret_cast(&source)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SaveAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SaveAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PrintTicket(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PrintTicket()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PrintTicket(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PrintTicket(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ModelPart(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ModelPart()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ModelPart(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ModelPart(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Thumbnail(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Thumbnail()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Thumbnail(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Thumbnail(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Textures(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Textures()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LoadModelFromPackageAsync(void* value, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().LoadModelFromPackageAsync(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SaveModelToPackageAsync(void* value, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SaveModelToPackageAsync(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Compression(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Compression()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Compression(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Compression(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall LoadAsync(void* value, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().LoadAsync(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Color(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Color()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Color(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Color(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Bases(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Bases()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaterialGroupId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaterialGroupId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint32_t MaterialGroupId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(MaterialGroupId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Abs(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Abs()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Pla(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Pla()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Value(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Color(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Color()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Color(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Color(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Colors(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Colors()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaterialGroupId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaterialGroupId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint32_t MaterialGroupId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(MaterialGroupId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Mesh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Mesh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Mesh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Mesh(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Components(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Components()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Thumbnail(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Thumbnail()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Thumbnail(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Thumbnail(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Type(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Type()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Type(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Type(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PartNumber(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PartNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PartNumber(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PartNumber(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Component(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Component()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Component(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Component(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Matrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Matrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Matrix(winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Matrix(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Values(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Values()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Composites(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Composites()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaterialGroupId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaterialGroupId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaterialIndices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MaterialIndices()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BaseMaterialGroup(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BaseMaterialGroup()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BaseMaterialGroup(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BaseMaterialGroup(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint32_t MaterialGroupId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(MaterialGroupId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MaxReductionArea(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxReductionArea()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxReductionArea(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxReductionArea(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetTriangleCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetTriangleCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetTriangleCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetTriangleCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxEdgeLength(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxEdgeLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxEdgeLength(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxEdgeLength(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BaseGroups(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BaseGroups()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ColorGroups(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ColorGroups()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Texture2CoordGroups(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Texture2CoordGroups()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompositeGroups(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CompositeGroups()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MultiplePropertyGroups(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MultiplePropertyGroups()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_VertexCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VertexCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VertexCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IndexCount(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IndexCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IndexCount(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IndexCount(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VertexPositionsDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexPositionsDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VertexPositionsDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VertexPositionsDescription(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VertexNormalsDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VertexNormalsDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VertexNormalsDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VertexNormalsDescription(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TriangleIndicesDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TriangleIndicesDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TriangleIndicesDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TriangleIndicesDescription(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TriangleMaterialIndicesDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TriangleMaterialIndicesDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TriangleMaterialIndicesDescription(struct struct_Windows_Graphics_Printing3D_Printing3DBufferDescription value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TriangleMaterialIndicesDescription(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetVertexPositions(void** buffer) noexcept final try { clear_abi(buffer); typename D::abi_guard guard(this->shim()); *buffer = detach_from(this->shim().GetVertexPositions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateVertexPositions(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CreateVertexPositions(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetVertexNormals(void** buffer) noexcept final try { clear_abi(buffer); typename D::abi_guard guard(this->shim()); *buffer = detach_from(this->shim().GetVertexNormals()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateVertexNormals(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CreateVertexNormals(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTriangleIndices(void** buffer) noexcept final try { clear_abi(buffer); typename D::abi_guard guard(this->shim()); *buffer = detach_from(this->shim().GetTriangleIndices()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTriangleIndices(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CreateTriangleIndices(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTriangleMaterialIndices(void** buffer) noexcept final try { clear_abi(buffer); typename D::abi_guard guard(this->shim()); *buffer = detach_from(this->shim().GetTriangleMaterialIndices()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateTriangleMaterialIndices(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CreateTriangleMaterialIndices(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BufferDescriptionSet(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BufferDescriptionSet()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BufferSet(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BufferSet()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall VerifyAsync(int32_t value, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().VerifyAsync(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsValid(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsValid()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NonmanifoldTriangles(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().NonmanifoldTriangles()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReversedNormalTriangles(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ReversedNormalTriangles()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Unit(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Unit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Unit(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Unit(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Textures(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Textures()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Meshes(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Meshes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Components(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Components()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Material(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Material()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Material(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Material(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Build(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Build()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Build(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Build(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Version(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Version()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Version(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Version(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequiredExtensions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RequiredExtensions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Metadata(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Metadata()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RepairAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().RepairAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clone(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Clone()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TryPartialRepairAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryPartialRepairAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryPartialRepairWithTimeAsync(int64_t maxWaitTime, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryPartialRepairAsync(*reinterpret_cast(&maxWaitTime))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryReduceFacesAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryReduceFacesAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryReduceFacesWithOptionsAsync(void* printing3DFaceReductionOptions, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryReduceFacesAsync(*reinterpret_cast(&printing3DFaceReductionOptions))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryReduceFacesWithOptionsAndTimeAsync(void* printing3DFaceReductionOptions, int64_t maxWait, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().TryReduceFacesAsync(*reinterpret_cast(&printing3DFaceReductionOptions), *reinterpret_cast(&maxWait))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RepairWithProgressAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RepairWithProgressAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TextureResource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextureResource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TextureResource(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TextureResource(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TileStyleU(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TileStyleU()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TileStyleU(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TileStyleU(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TileStyleV(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TileStyleV()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TileStyleV(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TileStyleV(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MaterialIndices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MaterialIndices()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MultipleProperties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MultipleProperties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaterialGroupIndices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MaterialGroupIndices()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaterialGroupId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaterialGroupId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint32_t MaterialGroupId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(MaterialGroupId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Texture(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Texture()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Texture(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Texture(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_U(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().U()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_U(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().U(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_V(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().V()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_V(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().V(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Texture2Coords(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Texture2Coords()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaterialGroupId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaterialGroupId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Texture(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Texture()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Texture(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Texture(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(uint32_t MaterialGroupId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(MaterialGroupId)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TextureData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextureData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TextureData(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TextureData(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Graphics::Printing3D { inline auto Print3DManager::GetForCurrentView() { return impl::call_factory_cast([](IPrint3DManagerStatics const& f) { return f.GetForCurrentView(); }); } inline auto Print3DManager::ShowPrintUIAsync() { return impl::call_factory_cast(*)(IPrint3DManagerStatics const&), Print3DManager, IPrint3DManagerStatics>([](IPrint3DManagerStatics const& f) { return f.ShowPrintUIAsync(); }); } inline Printing3D3MFPackage::Printing3D3MFPackage() : Printing3D3MFPackage(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Printing3D3MFPackage::LoadAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& value) { return impl::call_factory([&](IPrinting3D3MFPackageStatics const& f) { return f.LoadAsync(value); }); } inline Printing3DBaseMaterial::Printing3DBaseMaterial() : Printing3DBaseMaterial(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Printing3DBaseMaterial::Abs() { return impl::call_factory_cast([](IPrinting3DBaseMaterialStatics const& f) { return f.Abs(); }); } inline auto Printing3DBaseMaterial::Pla() { return impl::call_factory_cast([](IPrinting3DBaseMaterialStatics const& f) { return f.Pla(); }); } inline Printing3DBaseMaterialGroup::Printing3DBaseMaterialGroup(uint32_t MaterialGroupId) : Printing3DBaseMaterialGroup(impl::call_factory([&](IPrinting3DBaseMaterialGroupFactory const& f) { return f.Create(MaterialGroupId); })) { } inline Printing3DColorMaterial::Printing3DColorMaterial() : Printing3DColorMaterial(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DColorMaterialGroup::Printing3DColorMaterialGroup(uint32_t MaterialGroupId) : Printing3DColorMaterialGroup(impl::call_factory([&](IPrinting3DColorMaterialGroupFactory const& f) { return f.Create(MaterialGroupId); })) { } inline Printing3DComponent::Printing3DComponent() : Printing3DComponent(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DComponentWithMatrix::Printing3DComponentWithMatrix() : Printing3DComponentWithMatrix(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DCompositeMaterial::Printing3DCompositeMaterial() : Printing3DCompositeMaterial(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DCompositeMaterialGroup::Printing3DCompositeMaterialGroup(uint32_t MaterialGroupId) : Printing3DCompositeMaterialGroup(impl::call_factory([&](IPrinting3DCompositeMaterialGroupFactory const& f) { return f.Create(MaterialGroupId); })) { } inline Printing3DFaceReductionOptions::Printing3DFaceReductionOptions() : Printing3DFaceReductionOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DMaterial::Printing3DMaterial() : Printing3DMaterial(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DMesh::Printing3DMesh() : Printing3DMesh(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DModel::Printing3DModel() : Printing3DModel(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DModelTexture::Printing3DModelTexture() : Printing3DModelTexture(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DMultiplePropertyMaterial::Printing3DMultiplePropertyMaterial() : Printing3DMultiplePropertyMaterial(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DMultiplePropertyMaterialGroup::Printing3DMultiplePropertyMaterialGroup(uint32_t MaterialGroupId) : Printing3DMultiplePropertyMaterialGroup(impl::call_factory([&](IPrinting3DMultiplePropertyMaterialGroupFactory const& f) { return f.Create(MaterialGroupId); })) { } inline Printing3DTexture2CoordMaterial::Printing3DTexture2CoordMaterial() : Printing3DTexture2CoordMaterial(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Printing3DTexture2CoordMaterialGroup::Printing3DTexture2CoordMaterialGroup(uint32_t MaterialGroupId) : Printing3DTexture2CoordMaterialGroup(impl::call_factory([&](IPrinting3DTexture2CoordMaterialGroupFactory const& f) { return f.Create(MaterialGroupId); })) { } inline Printing3DTextureResource::Printing3DTextureResource() : Printing3DTextureResource(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(L handler) : Print3DTaskSourceRequestedHandler(impl::make_delegate(std::forward(handler))) { } template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(F* handler) : Print3DTaskSourceRequestedHandler([=](auto&&... args) { return handler(args...); }) { } template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(O* object, M method) : Print3DTaskSourceRequestedHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(com_ptr&& object, M method) : Print3DTaskSourceRequestedHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(weak_ref&& object, LM&& lambda_or_method) : Print3DTaskSourceRequestedHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(std::shared_ptr&& object, M method) : Print3DTaskSourceRequestedHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template Print3DTaskSourceRequestedHandler::Print3DTaskSourceRequestedHandler(std::weak_ptr&& object, LM&& lambda_or_method) : Print3DTaskSourceRequestedHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto Print3DTaskSourceRequestedHandler::operator()(winrt::Windows::Graphics::Printing3D::Print3DTaskSourceRequestedArgs const& args) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&args))); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif