// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Xaml_Shapes_H #define WINRT_Windows_UI_Xaml_Shapes_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.UI.Xaml.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Xaml.2.h" #include "winrt/impl/Windows.UI.Xaml.Media.2.h" #include "winrt/impl/Windows.UI.Xaml.Shapes.2.h" namespace winrt::impl { template auto consume_Windows_UI_Xaml_Shapes_ILine::X1() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->get_X1(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_ILine::X1(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->put_X1(value)); } template auto consume_Windows_UI_Xaml_Shapes_ILine::Y1() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->get_Y1(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_ILine::Y1(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->put_Y1(value)); } template auto consume_Windows_UI_Xaml_Shapes_ILine::X2() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->get_X2(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_ILine::X2(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->put_X2(value)); } template auto consume_Windows_UI_Xaml_Shapes_ILine::Y2() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->get_Y2(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_ILine::Y2(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILine)->put_Y2(value)); } template auto consume_Windows_UI_Xaml_Shapes_ILineStatics::X1Property() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILineStatics)->get_X1Property(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_ILineStatics::Y1Property() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILineStatics)->get_Y1Property(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_ILineStatics::X2Property() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILineStatics)->get_X2Property(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_ILineStatics::Y2Property() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::ILineStatics)->get_Y2Property(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPath::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPath)->get_Data(&value)); return winrt::Windows::UI::Xaml::Media::Geometry{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPath::Data(winrt::Windows::UI::Xaml::Media::Geometry const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPath)->put_Data(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Shapes_IPathFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPathFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::Shapes::Path{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPathStatics::DataProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPathStatics)->get_DataProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPolygon::FillRule() const { winrt::Windows::UI::Xaml::Media::FillRule value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolygon)->get_FillRule(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Shapes_IPolygon::FillRule(winrt::Windows::UI::Xaml::Media::FillRule const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolygon)->put_FillRule(static_cast(value))); } template auto consume_Windows_UI_Xaml_Shapes_IPolygon::Points() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolygon)->get_Points(&value)); return winrt::Windows::UI::Xaml::Media::PointCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPolygon::Points(winrt::Windows::UI::Xaml::Media::PointCollection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolygon)->put_Points(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Shapes_IPolygonStatics::FillRuleProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolygonStatics)->get_FillRuleProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPolygonStatics::PointsProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolygonStatics)->get_PointsProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPolyline::FillRule() const { winrt::Windows::UI::Xaml::Media::FillRule value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolyline)->get_FillRule(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Shapes_IPolyline::FillRule(winrt::Windows::UI::Xaml::Media::FillRule const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolyline)->put_FillRule(static_cast(value))); } template auto consume_Windows_UI_Xaml_Shapes_IPolyline::Points() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolyline)->get_Points(&value)); return winrt::Windows::UI::Xaml::Media::PointCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPolyline::Points(winrt::Windows::UI::Xaml::Media::PointCollection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolyline)->put_Points(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Shapes_IPolylineStatics::FillRuleProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolylineStatics)->get_FillRuleProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IPolylineStatics::PointsProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IPolylineStatics)->get_PointsProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IRectangle::RadiusX() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IRectangle)->get_RadiusX(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_IRectangle::RadiusX(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IRectangle)->put_RadiusX(value)); } template auto consume_Windows_UI_Xaml_Shapes_IRectangle::RadiusY() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IRectangle)->get_RadiusY(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_IRectangle::RadiusY(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IRectangle)->put_RadiusY(value)); } template auto consume_Windows_UI_Xaml_Shapes_IRectangleStatics::RadiusXProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IRectangleStatics)->get_RadiusXProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IRectangleStatics::RadiusYProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IRectangleStatics)->get_RadiusYProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShape::Fill() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_Fill(&value)); return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShape::Fill(winrt::Windows::UI::Xaml::Media::Brush const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_Fill(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::Stroke() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_Stroke(&value)); return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShape::Stroke(winrt::Windows::UI::Xaml::Media::Brush const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_Stroke(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeMiterLimit() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeMiterLimit(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeMiterLimit(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeMiterLimit(value)); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeThickness() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeThickness(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeThickness(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeThickness(value)); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeStartLineCap() const { winrt::Windows::UI::Xaml::Media::PenLineCap value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeStartLineCap(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeStartLineCap(winrt::Windows::UI::Xaml::Media::PenLineCap const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeStartLineCap(static_cast(value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeEndLineCap() const { winrt::Windows::UI::Xaml::Media::PenLineCap value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeEndLineCap(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeEndLineCap(winrt::Windows::UI::Xaml::Media::PenLineCap const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeEndLineCap(static_cast(value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeLineJoin() const { winrt::Windows::UI::Xaml::Media::PenLineJoin value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeLineJoin(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeLineJoin(winrt::Windows::UI::Xaml::Media::PenLineJoin const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeLineJoin(static_cast(value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeDashOffset() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeDashOffset(&value)); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeDashOffset(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeDashOffset(value)); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeDashCap() const { winrt::Windows::UI::Xaml::Media::PenLineCap value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeDashCap(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeDashCap(winrt::Windows::UI::Xaml::Media::PenLineCap const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeDashCap(static_cast(value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeDashArray() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_StrokeDashArray(&value)); return winrt::Windows::UI::Xaml::Media::DoubleCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShape::StrokeDashArray(winrt::Windows::UI::Xaml::Media::DoubleCollection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_StrokeDashArray(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::Stretch() const { winrt::Windows::UI::Xaml::Media::Stretch value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_Stretch(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_Shapes_IShape::Stretch(winrt::Windows::UI::Xaml::Media::Stretch const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->put_Stretch(static_cast(value))); } template auto consume_Windows_UI_Xaml_Shapes_IShape::GeometryTransform() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape)->get_GeometryTransform(&value)); return winrt::Windows::UI::Xaml::Media::Transform{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShape2::GetAlphaMask() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShape2)->GetAlphaMask(&result)); return winrt::Windows::UI::Composition::CompositionBrush{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::Shapes::Shape{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::FillProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_FillProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeMiterLimitProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeMiterLimitProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeThicknessProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeThicknessProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeStartLineCapProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeStartLineCapProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeEndLineCapProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeEndLineCapProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeLineJoinProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeLineJoinProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeDashOffsetProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeDashOffsetProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeDashCapProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeDashCapProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StrokeDashArrayProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StrokeDashArrayProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Shapes_IShapeStatics::StretchProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::Shapes::IShapeStatics)->get_StretchProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_X1(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().X1()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_X1(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().X1(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Y1(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Y1()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Y1(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Y1(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_X2(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().X2()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_X2(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().X2(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Y2(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Y2()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Y2(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Y2(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_X1Property(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().X1Property()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Y1Property(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Y1Property()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_X2Property(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().X2Property()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Y2Property(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Y2Property()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DataProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FillRule(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillRule()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FillRule(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FillRule(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Points(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Points()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Points(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Points(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillRuleProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointsProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FillRule(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillRule()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FillRule(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FillRule(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Points(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Points()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Points(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Points(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillRuleProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointsProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RadiusX(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusX()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RadiusX(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RadiusX(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RadiusY(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusY()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RadiusY(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RadiusY(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RadiusXProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusXProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RadiusYProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RadiusYProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Fill(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Fill()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Fill(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Fill(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Stroke(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Stroke()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Stroke(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stroke(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeMiterLimit(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeMiterLimit()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeMiterLimit(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeMiterLimit(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeThickness(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeThickness()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeThickness(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeThickness(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeStartLineCap(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeStartLineCap()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeStartLineCap(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeStartLineCap(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeEndLineCap(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeEndLineCap()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeEndLineCap(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeEndLineCap(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeLineJoin(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeLineJoin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeLineJoin(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeLineJoin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeDashOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeDashOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeDashOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeDashOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeDashCap(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeDashCap()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeDashCap(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeDashCap(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeDashArray(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeDashArray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StrokeDashArray(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StrokeDashArray(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Stretch(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Stretch()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Stretch(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stretch(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GeometryTransform(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GeometryTransform()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetAlphaMask(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAlphaMask()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FillProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeMiterLimitProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeMiterLimitProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeThicknessProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeThicknessProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeStartLineCapProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeStartLineCapProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeEndLineCapProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeEndLineCapProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeLineJoinProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeLineJoinProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeDashOffsetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeDashOffsetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeDashCapProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeDashCapProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StrokeDashArrayProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StrokeDashArrayProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StretchProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StretchProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::UI::Xaml::Shapes { inline Ellipse::Ellipse() : Ellipse(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Line::Line() : Line(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Line::X1Property() { return impl::call_factory_cast([](ILineStatics const& f) { return f.X1Property(); }); } inline auto Line::Y1Property() { return impl::call_factory_cast([](ILineStatics const& f) { return f.Y1Property(); }); } inline auto Line::X2Property() { return impl::call_factory_cast([](ILineStatics const& f) { return f.X2Property(); }); } inline auto Line::Y2Property() { return impl::call_factory_cast([](ILineStatics const& f) { return f.Y2Property(); }); } inline Path::Path() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IPathFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto Path::DataProperty() { return impl::call_factory_cast([](IPathStatics const& f) { return f.DataProperty(); }); } inline Polygon::Polygon() : Polygon(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Polygon::FillRuleProperty() { return impl::call_factory_cast([](IPolygonStatics const& f) { return f.FillRuleProperty(); }); } inline auto Polygon::PointsProperty() { return impl::call_factory_cast([](IPolygonStatics const& f) { return f.PointsProperty(); }); } inline Polyline::Polyline() : Polyline(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Polyline::FillRuleProperty() { return impl::call_factory_cast([](IPolylineStatics const& f) { return f.FillRuleProperty(); }); } inline auto Polyline::PointsProperty() { return impl::call_factory_cast([](IPolylineStatics const& f) { return f.PointsProperty(); }); } inline Rectangle::Rectangle() : Rectangle(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Rectangle::RadiusXProperty() { return impl::call_factory_cast([](IRectangleStatics const& f) { return f.RadiusXProperty(); }); } inline auto Rectangle::RadiusYProperty() { return impl::call_factory_cast([](IRectangleStatics const& f) { return f.RadiusYProperty(); }); } inline auto Shape::FillProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.FillProperty(); }); } inline auto Shape::StrokeProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeProperty(); }); } inline auto Shape::StrokeMiterLimitProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeMiterLimitProperty(); }); } inline auto Shape::StrokeThicknessProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeThicknessProperty(); }); } inline auto Shape::StrokeStartLineCapProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeStartLineCapProperty(); }); } inline auto Shape::StrokeEndLineCapProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeEndLineCapProperty(); }); } inline auto Shape::StrokeLineJoinProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeLineJoinProperty(); }); } inline auto Shape::StrokeDashOffsetProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeDashOffsetProperty(); }); } inline auto Shape::StrokeDashCapProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeDashCapProperty(); }); } inline auto Shape::StrokeDashArrayProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StrokeDashArrayProperty(); }); } inline auto Shape::StretchProperty() { return impl::call_factory_cast([](IShapeStatics const& f) { return f.StretchProperty(); }); } template struct PathT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = Path; friend impl::consume_t; friend impl::require_one; protected: PathT() { impl::call_factory([&](IPathFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct ShapeT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = Shape; friend impl::consume_t; friend impl::require_one; protected: ShapeT() { impl::call_factory([&](IShapeFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif