mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
2615 lines
108 KiB
C++
2615 lines
108 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT
|
|
// v2.0.250303.1
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Microsoft_UI_Xaml_Shapes_H
|
|
#define WINRT_Microsoft_UI_Xaml_Shapes_H
|
|
#include "winrt/base.h"
|
|
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"),
|
|
"Mismatched C++/WinRT headers.");
|
|
#define CPPWINRT_VERSION "2.0.250303.1"
|
|
#include "winrt/Microsoft.UI.Xaml.h"
|
|
#include "winrt/impl/Microsoft.UI.Composition.2.h"
|
|
#include "winrt/impl/Microsoft.UI.Xaml.2.h"
|
|
#include "winrt/impl/Microsoft.UI.Xaml.Media.2.h"
|
|
#include "winrt/impl/Microsoft.UI.Xaml.Shapes.2.h"
|
|
namespace winrt::impl {
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::X1() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_X1(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->get_X1(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::X1(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_X1(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->put_X1(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::Y1() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Y1(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->get_Y1(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::Y1(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Y1(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->put_Y1(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::X2() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_X2(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->get_X2(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::X2(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_X2(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->put_X2(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::Y2() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Y2(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->get_Y2(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILine<D>::Y2(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::ILine,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILine>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Y2(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILine>**)this;
|
|
check_hresult(_winrt_abi_type->put_Y2(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics<D>::X1Property() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
ILineStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_X1Property(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_X1Property(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics<D>::Y1Property() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
ILineStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Y1Property(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_Y1Property(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics<D>::X2Property() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
ILineStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_X2Property(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_X2Property(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_ILineStatics<D>::Y2Property() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::ILineStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
ILineStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Y2Property(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_Y2Property(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPath<D>::Data() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::IPath>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPath,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPath>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Data(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPath>**)this;
|
|
check_hresult(_winrt_abi_type->get_Data(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::Geometry{value,
|
|
take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPath<D>::Data(
|
|
winrt::Microsoft::UI::Xaml::Media::Geometry const& value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Shapes::IPath>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPath,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPath>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Data(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPath>**)this;
|
|
check_hresult(_winrt_abi_type->put_Data(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPathFactory<D>::CreateInstance(
|
|
winrt::Windows::Foundation::IInspectable const& baseInterface,
|
|
winrt::Windows::Foundation::IInspectable& innerInterface) const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPathFactory>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPathFactory, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPathFactory>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&baseInterface), impl::bind_out(innerInterface), &value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPathFactory>**)this;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&baseInterface), impl::bind_out(innerInterface), &value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Shapes::Path{value,
|
|
take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPathStatics<D>::DataProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPathStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPathStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPathStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_DataProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPathStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_DataProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolygon<D>::FillRule() const {
|
|
winrt::Microsoft::UI::Xaml::Media::FillRule value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolygon>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolygon,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolygon>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->get_FillRule(reinterpret_cast<int32_t*>(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolygon>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->get_FillRule(reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolygon<D>::FillRule(
|
|
winrt::Microsoft::UI::Xaml::Media::FillRule const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolygon>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolygon,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolygon>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_FillRule(static_cast<int32_t>(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolygon>**)this;
|
|
check_hresult(_winrt_abi_type->put_FillRule(static_cast<int32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolygon<D>::Points() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolygon>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolygon,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolygon>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Points(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolygon>**)this;
|
|
check_hresult(_winrt_abi_type->get_Points(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::PointCollection{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolygon<D>::Points(
|
|
winrt::Microsoft::UI::Xaml::Media::PointCollection const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolygon>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolygon,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolygon>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Points(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolygon>**)this;
|
|
check_hresult(_winrt_abi_type->put_Points(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolygonStatics<D>::FillRuleProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolygonStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FillRuleProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_FillRuleProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolygonStatics<D>::PointsProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolygonStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_PointsProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_PointsProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolyline<D>::FillRule() const {
|
|
winrt::Microsoft::UI::Xaml::Media::FillRule value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolyline,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolyline>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->get_FillRule(reinterpret_cast<int32_t*>(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolyline>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->get_FillRule(reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolyline<D>::FillRule(
|
|
winrt::Microsoft::UI::Xaml::Media::FillRule const& value) const {
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolyline,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolyline>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_FillRule(static_cast<int32_t>(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolyline>**)this;
|
|
check_hresult(_winrt_abi_type->put_FillRule(static_cast<int32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolyline<D>::Points() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolyline,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolyline>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Points(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolyline>**)this;
|
|
check_hresult(_winrt_abi_type->get_Points(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::PointCollection{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolyline<D>::Points(
|
|
winrt::Microsoft::UI::Xaml::Media::PointCollection const& value) const {
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IPolyline,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolyline>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Points(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolyline>**)this;
|
|
check_hresult(_winrt_abi_type->put_Points(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolylineStatics<D>::FillRuleProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolylineStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FillRuleProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_FillRuleProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IPolylineStatics<D>::PointsProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IPolylineStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_PointsProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_PointsProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IRectangle<D>::RadiusX() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IRectangle,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IRectangle>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RadiusX(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IRectangle>**)this;
|
|
check_hresult(_winrt_abi_type->get_RadiusX(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IRectangle<D>::RadiusX(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IRectangle,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IRectangle>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_RadiusX(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IRectangle>**)this;
|
|
check_hresult(_winrt_abi_type->put_RadiusX(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IRectangle<D>::RadiusY() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IRectangle,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IRectangle>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RadiusY(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IRectangle>**)this;
|
|
check_hresult(_winrt_abi_type->get_RadiusY(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IRectangle<D>::RadiusY(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IRectangle,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IRectangle>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_RadiusY(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IRectangle>**)this;
|
|
check_hresult(_winrt_abi_type->put_RadiusY(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IRectangleStatics<D>::RadiusXProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IRectangleStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RadiusXProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_RadiusXProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IRectangleStatics<D>::RadiusYProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IRectangleStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RadiusYProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_RadiusYProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::Fill() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Fill(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_Fill(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::Brush{value,
|
|
take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::Fill(
|
|
winrt::Microsoft::UI::Xaml::Media::Brush const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::Stroke() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Stroke(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_Stroke(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::Brush{value,
|
|
take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::Stroke(
|
|
winrt::Microsoft::UI::Xaml::Media::Brush const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Stroke(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->put_Stroke(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeMiterLimit() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeMiterLimit(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeMiterLimit(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeMiterLimit(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_StrokeMiterLimit(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->put_StrokeMiterLimit(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeThickness() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeThickness(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeThickness(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeThickness(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_StrokeThickness(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->put_StrokeThickness(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeStartLineCap() const {
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineCap value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeStartLineCap(
|
|
reinterpret_cast<int32_t*>(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeStartLineCap(
|
|
reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeStartLineCap(
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineCap const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeStartLineCap(static_cast<int32_t>(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeStartLineCap(static_cast<int32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeEndLineCap() const {
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineCap value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeEndLineCap(
|
|
reinterpret_cast<int32_t*>(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeEndLineCap(
|
|
reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeEndLineCap(
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineCap const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeEndLineCap(static_cast<int32_t>(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeEndLineCap(static_cast<int32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeLineJoin() const {
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineJoin value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeLineJoin(
|
|
reinterpret_cast<int32_t*>(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeLineJoin(
|
|
reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeLineJoin(
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineJoin const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeLineJoin(static_cast<int32_t>(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeLineJoin(static_cast<int32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeDashOffset() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashOffset(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashOffset(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeDashOffset(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_StrokeDashOffset(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->put_StrokeDashOffset(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeDashCap() const {
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineCap value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->get_StrokeDashCap(reinterpret_cast<int32_t*>(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->get_StrokeDashCap(reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeDashCap(
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineCap const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeDashCap(static_cast<int32_t>(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->put_StrokeDashCap(static_cast<int32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeDashArray() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashArray(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashArray(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::DoubleCollection{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::StrokeDashArray(
|
|
winrt::Microsoft::UI::Xaml::Media::DoubleCollection const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_StrokeDashArray(*(void**)(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->put_StrokeDashArray(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::Stretch() const {
|
|
winrt::Microsoft::UI::Xaml::Media::Stretch value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->get_Stretch(reinterpret_cast<int32_t*>(&value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->get_Stretch(reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::Stretch(
|
|
winrt::Microsoft::UI::Xaml::Media::Stretch const& value) const {
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Stretch(static_cast<int32_t>(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->put_Stretch(static_cast<int32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::GeometryTransform() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_GeometryTransform(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->get_GeometryTransform(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::Transform{value,
|
|
take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShape<D>::GetAlphaMask() const {
|
|
void* result{};
|
|
if constexpr (!std::is_same_v<D,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
D const*>(static_cast<D const*>(this),
|
|
_winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->GetAlphaMask(&result));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShape>**)this;
|
|
check_hresult(_winrt_abi_type->GetAlphaMask(&result));
|
|
}
|
|
return winrt::Microsoft::UI::Composition::CompositionBrush{
|
|
result, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeFactory<D>::CreateInstance(
|
|
winrt::Windows::Foundation::IInspectable const& baseInterface,
|
|
winrt::Windows::Foundation::IInspectable& innerInterface) const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeFactory>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&baseInterface), impl::bind_out(innerInterface), &value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory>**)this;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&baseInterface), impl::bind_out(innerInterface), &value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Shapes::Shape{value,
|
|
take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<D>::FillProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_FillProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_FillProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<D>::StrokeProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<
|
|
D>::StrokeMiterLimitProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeMiterLimitProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeMiterLimitProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<
|
|
D>::StrokeThicknessProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeThicknessProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeThicknessProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<
|
|
D>::StrokeStartLineCapProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeStartLineCapProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeStartLineCapProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<
|
|
D>::StrokeEndLineCapProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeEndLineCapProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeEndLineCapProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<D>::StrokeLineJoinProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeLineJoinProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeLineJoinProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<
|
|
D>::StrokeDashOffsetProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashOffsetProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashOffsetProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<D>::StrokeDashCapProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashCapProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashCapProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<
|
|
D>::StrokeDashArrayProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashArrayProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StrokeDashArrayProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Shapes_IShapeStatics<D>::StretchProperty()
|
|
const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<
|
|
D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics, D const*>(
|
|
static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::
|
|
IShapeStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_StretchProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_StretchProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IEllipse>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IEllipse> {};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::ILine>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::ILine> {
|
|
int32_t __stdcall get_X1(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(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<double>(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<double>(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<double>(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 <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::ILineStatics> {
|
|
int32_t __stdcall get_X1Property(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
this->shim().Y2Property());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IPath>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IPath> {
|
|
int32_t __stdcall get_Data(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::Media::Geometry>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::Geometry const*>(
|
|
&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IPathFactory>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IPathFactory> {
|
|
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<winrt::Microsoft::UI::Xaml::Shapes::Path>(
|
|
this->shim().CreateInstance(
|
|
*reinterpret_cast<winrt::Windows::Foundation::IInspectable const*>(
|
|
&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 <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IPathStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IPathStatics> {
|
|
int32_t __stdcall get_DataProperty(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
this->shim().DataProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IPolygon>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IPolygon> {
|
|
int32_t __stdcall get_FillRule(int32_t* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::Media::FillRule>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::FillRule const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::PointCollection>(
|
|
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<
|
|
winrt::Microsoft::UI::Xaml::Media::PointCollection const*>(&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics> {
|
|
int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
this->shim().PointsProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IPolyline> {
|
|
int32_t __stdcall get_FillRule(int32_t* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::Media::FillRule>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::FillRule const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::PointCollection>(
|
|
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<
|
|
winrt::Microsoft::UI::Xaml::Media::PointCollection const*>(&value));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics> {
|
|
int32_t __stdcall get_FillRuleProperty(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
this->shim().PointsProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IRectangle> {
|
|
int32_t __stdcall get_RadiusX(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(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<double>(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 <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics> {
|
|
int32_t __stdcall get_RadiusXProperty(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
this->shim().RadiusYProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IShape>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IShape> {
|
|
int32_t __stdcall get_Fill(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::Media::Brush>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::Brush const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::Brush>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::Brush const*>(
|
|
&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<double>(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<double>(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<winrt::Microsoft::UI::Xaml::Media::PenLineCap>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::PenLineCap const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::PenLineCap>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::PenLineCap const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::PenLineJoin>(
|
|
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<
|
|
winrt::Microsoft::UI::Xaml::Media::PenLineJoin const*>(&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<double>(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<winrt::Microsoft::UI::Xaml::Media::PenLineCap>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::PenLineCap const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::DoubleCollection>(
|
|
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<
|
|
winrt::Microsoft::UI::Xaml::Media::DoubleCollection const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::Stretch>(
|
|
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<winrt::Microsoft::UI::Xaml::Media::Stretch const*>(
|
|
&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<winrt::Microsoft::UI::Xaml::Media::Transform>(
|
|
this->shim().GeometryTransform());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall GetAlphaMask(void** result) noexcept final try {
|
|
clear_abi(result);
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<winrt::Microsoft::UI::Composition::CompositionBrush>(
|
|
this->shim().GetAlphaMask());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory> {
|
|
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<winrt::Microsoft::UI::Xaml::Shapes::Shape>(
|
|
this->shim().CreateInstance(
|
|
*reinterpret_cast<winrt::Windows::Foundation::IInspectable const*>(
|
|
&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 <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics> {
|
|
int32_t __stdcall get_FillProperty(void** value) noexcept final try {
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
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<winrt::Microsoft::UI::Xaml::DependencyProperty>(
|
|
this->shim().StretchProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
} // namespace winrt::impl
|
|
WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Shapes {
|
|
inline Ellipse::Ellipse()
|
|
: Ellipse(impl::call_factory_cast<
|
|
Ellipse (*)(
|
|
winrt::Windows::Foundation::IActivationFactory const&),
|
|
Ellipse>(
|
|
[](winrt::Windows::Foundation::IActivationFactory const& f) {
|
|
return f.template ActivateInstance<Ellipse>();
|
|
})) {}
|
|
inline Line::Line()
|
|
: Line(impl::call_factory_cast<
|
|
Line (*)(winrt::Windows::Foundation::IActivationFactory const&),
|
|
Line>([](winrt::Windows::Foundation::IActivationFactory const& f) {
|
|
return f.template ActivateInstance<Line>();
|
|
})) {}
|
|
inline auto Line::X1Property() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&),
|
|
Line, ILineStatics>(
|
|
[](ILineStatics const& f) { return f.X1Property(); });
|
|
}
|
|
inline auto Line::Y1Property() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&),
|
|
Line, ILineStatics>(
|
|
[](ILineStatics const& f) { return f.Y1Property(); });
|
|
}
|
|
inline auto Line::X2Property() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&),
|
|
Line, ILineStatics>(
|
|
[](ILineStatics const& f) { return f.X2Property(); });
|
|
}
|
|
inline auto Line::Y2Property() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(ILineStatics const&),
|
|
Line, ILineStatics>(
|
|
[](ILineStatics const& f) { return f.Y2Property(); });
|
|
}
|
|
inline Path::Path() {
|
|
winrt::Windows::Foundation::IInspectable baseInterface, innerInterface;
|
|
*this = impl::call_factory<Path, IPathFactory>([&](IPathFactory const& f) {
|
|
return f.CreateInstance(baseInterface, innerInterface);
|
|
});
|
|
}
|
|
inline auto Path::DataProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(IPathStatics const&),
|
|
Path, IPathStatics>(
|
|
[](IPathStatics const& f) { return f.DataProperty(); });
|
|
}
|
|
inline Polygon::Polygon()
|
|
: Polygon(impl::call_factory_cast<
|
|
Polygon (*)(
|
|
winrt::Windows::Foundation::IActivationFactory const&),
|
|
Polygon>(
|
|
[](winrt::Windows::Foundation::IActivationFactory const& f) {
|
|
return f.template ActivateInstance<Polygon>();
|
|
})) {}
|
|
inline auto Polygon::FillRuleProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IPolygonStatics const&),
|
|
Polygon, IPolygonStatics>(
|
|
[](IPolygonStatics const& f) { return f.FillRuleProperty(); });
|
|
}
|
|
inline auto Polygon::PointsProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IPolygonStatics const&),
|
|
Polygon, IPolygonStatics>(
|
|
[](IPolygonStatics const& f) { return f.PointsProperty(); });
|
|
}
|
|
inline Polyline::Polyline()
|
|
: Polyline(impl::call_factory_cast<
|
|
Polyline (*)(
|
|
winrt::Windows::Foundation::IActivationFactory const&),
|
|
Polyline>(
|
|
[](winrt::Windows::Foundation::IActivationFactory const& f) {
|
|
return f.template ActivateInstance<Polyline>();
|
|
})) {}
|
|
inline auto Polyline::FillRuleProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IPolylineStatics const&),
|
|
Polyline, IPolylineStatics>(
|
|
[](IPolylineStatics const& f) { return f.FillRuleProperty(); });
|
|
}
|
|
inline auto Polyline::PointsProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IPolylineStatics const&),
|
|
Polyline, IPolylineStatics>(
|
|
[](IPolylineStatics const& f) { return f.PointsProperty(); });
|
|
}
|
|
inline Rectangle::Rectangle()
|
|
: Rectangle(impl::call_factory_cast<
|
|
Rectangle (*)(
|
|
winrt::Windows::Foundation::IActivationFactory const&),
|
|
Rectangle>(
|
|
[](winrt::Windows::Foundation::IActivationFactory const& f) {
|
|
return f.template ActivateInstance<Rectangle>();
|
|
})) {}
|
|
inline auto Rectangle::RadiusXProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IRectangleStatics const&),
|
|
Rectangle, IRectangleStatics>(
|
|
[](IRectangleStatics const& f) { return f.RadiusXProperty(); });
|
|
}
|
|
inline auto Rectangle::RadiusYProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IRectangleStatics const&),
|
|
Rectangle, IRectangleStatics>(
|
|
[](IRectangleStatics const& f) { return f.RadiusYProperty(); });
|
|
}
|
|
inline auto Shape::FillProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.FillProperty(); });
|
|
}
|
|
inline auto Shape::StrokeProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeProperty(); });
|
|
}
|
|
inline auto Shape::StrokeMiterLimitProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeMiterLimitProperty(); });
|
|
}
|
|
inline auto Shape::StrokeThicknessProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeThicknessProperty(); });
|
|
}
|
|
inline auto Shape::StrokeStartLineCapProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeStartLineCapProperty(); });
|
|
}
|
|
inline auto Shape::StrokeEndLineCapProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeEndLineCapProperty(); });
|
|
}
|
|
inline auto Shape::StrokeLineJoinProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeLineJoinProperty(); });
|
|
}
|
|
inline auto Shape::StrokeDashOffsetProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeDashOffsetProperty(); });
|
|
}
|
|
inline auto Shape::StrokeDashCapProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeDashCapProperty(); });
|
|
}
|
|
inline auto Shape::StrokeDashArrayProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StrokeDashArrayProperty(); });
|
|
}
|
|
inline auto Shape::StretchProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IShapeStatics const&),
|
|
Shape, IShapeStatics>(
|
|
[](IShapeStatics const& f) { return f.StretchProperty(); });
|
|
}
|
|
template <typename D, typename... Interfaces>
|
|
struct PathT
|
|
: implements<D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides,
|
|
winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing,
|
|
Interfaces...>,
|
|
impl::require<D, winrt::Microsoft::UI::Xaml::Shapes::IPath,
|
|
winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
winrt::Microsoft::UI::Xaml::IFrameworkElement,
|
|
winrt::Microsoft::UI::Xaml::IUIElement,
|
|
winrt::Microsoft::UI::Composition::IAnimationObject,
|
|
winrt::Microsoft::UI::Composition::IVisualElement,
|
|
winrt::Microsoft::UI::Composition::IVisualElement2,
|
|
winrt::Microsoft::UI::Xaml::IDependencyObject>,
|
|
protected impl::require<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected,
|
|
winrt::Microsoft::UI::Xaml::IUIElementProtected>,
|
|
impl::base<D, Path, winrt::Microsoft::UI::Xaml::Shapes::Shape,
|
|
winrt::Microsoft::UI::Xaml::FrameworkElement,
|
|
winrt::Microsoft::UI::Xaml::UIElement,
|
|
winrt::Microsoft::UI::Xaml::DependencyObject>,
|
|
winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT<D>,
|
|
winrt::Microsoft::UI::Xaml::IUIElementOverridesT<D> {
|
|
using composable = Path;
|
|
friend impl::consume_t<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>;
|
|
friend impl::require_one<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>;
|
|
friend impl::produce<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>;
|
|
friend impl::consume_t<D, winrt::Microsoft::UI::Xaml::IUIElementProtected>;
|
|
friend impl::require_one<D,
|
|
winrt::Microsoft::UI::Xaml::IUIElementProtected>;
|
|
friend impl::produce<D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>;
|
|
|
|
protected:
|
|
PathT() {
|
|
impl::call_factory<Path, IPathFactory>([&](IPathFactory const& f) {
|
|
[[maybe_unused]] auto winrt_impl_discarded =
|
|
f.CreateInstance(*this, this->m_inner);
|
|
});
|
|
}
|
|
};
|
|
template <typename D, typename... Interfaces>
|
|
struct ShapeT
|
|
: implements<D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides,
|
|
winrt::Microsoft::UI::Xaml::IUIElementOverrides, composing,
|
|
Interfaces...>,
|
|
impl::require<D, winrt::Microsoft::UI::Xaml::Shapes::IShape,
|
|
winrt::Microsoft::UI::Xaml::IFrameworkElement,
|
|
winrt::Microsoft::UI::Xaml::IUIElement,
|
|
winrt::Microsoft::UI::Composition::IAnimationObject,
|
|
winrt::Microsoft::UI::Composition::IVisualElement,
|
|
winrt::Microsoft::UI::Composition::IVisualElement2,
|
|
winrt::Microsoft::UI::Xaml::IDependencyObject>,
|
|
protected impl::require<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected,
|
|
winrt::Microsoft::UI::Xaml::IUIElementProtected>,
|
|
impl::base<D, Shape, winrt::Microsoft::UI::Xaml::FrameworkElement,
|
|
winrt::Microsoft::UI::Xaml::UIElement,
|
|
winrt::Microsoft::UI::Xaml::DependencyObject>,
|
|
winrt::Microsoft::UI::Xaml::IFrameworkElementOverridesT<D>,
|
|
winrt::Microsoft::UI::Xaml::IUIElementOverridesT<D> {
|
|
using composable = Shape;
|
|
friend impl::consume_t<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>;
|
|
friend impl::require_one<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementProtected>;
|
|
friend impl::produce<
|
|
D, winrt::Microsoft::UI::Xaml::IFrameworkElementOverrides>;
|
|
friend impl::consume_t<D, winrt::Microsoft::UI::Xaml::IUIElementProtected>;
|
|
friend impl::require_one<D,
|
|
winrt::Microsoft::UI::Xaml::IUIElementProtected>;
|
|
friend impl::produce<D, winrt::Microsoft::UI::Xaml::IUIElementOverrides>;
|
|
|
|
protected:
|
|
ShapeT() {
|
|
impl::call_factory<Shape, IShapeFactory>([&](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::Microsoft::UI::Xaml::Shapes::IEllipse>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::ILine>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::ILineStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IPath>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IPathFactory>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IPathStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IPolygon>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IPolygonStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IPolyline>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IPolylineStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IRectangle>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IRectangleStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IShape>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IShapeFactory>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::IShapeStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::Ellipse>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::Line> : winrt::impl::hash_base {
|
|
};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::Path> : winrt::impl::hash_base {
|
|
};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::Polygon>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::Polyline>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::Rectangle>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Shapes::Shape>
|
|
: winrt::impl::hash_base {};
|
|
#endif
|
|
#ifdef __cpp_lib_format
|
|
#endif
|
|
} // namespace std
|
|
#endif
|