mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
2027 lines
86 KiB
C++
2027 lines
86 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_Media_Media3D_H
|
|
#define WINRT_Microsoft_UI_Xaml_Media_Media3D_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.Media.h"
|
|
#include "winrt/impl/Microsoft.UI.Xaml.2.h"
|
|
#include "winrt/impl/Microsoft.UI.Xaml.Media.Media3D.2.h"
|
|
namespace winrt::impl {
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::CenterX()
|
|
const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_CenterX(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_CenterX(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::CenterX(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_CenterX(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_CenterX(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::CenterY()
|
|
const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_CenterY(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_CenterY(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::CenterY(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_CenterY(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_CenterY(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::CenterZ()
|
|
const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_CenterZ(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_CenterZ(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::CenterZ(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_CenterZ(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_CenterZ(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::RotationX() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RotationX(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_RotationX(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::RotationX(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_RotationX(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_RotationX(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::RotationY() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RotationY(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_RotationY(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::RotationY(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_RotationY(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_RotationY(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::RotationZ() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RotationZ(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_RotationZ(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::RotationZ(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_RotationZ(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_RotationZ(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::ScaleX()
|
|
const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ScaleX(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_ScaleX(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::ScaleX(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_ScaleX(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_ScaleX(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::ScaleY()
|
|
const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ScaleY(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_ScaleY(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::ScaleY(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_ScaleY(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_ScaleY(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::ScaleZ()
|
|
const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ScaleZ(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_ScaleZ(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<D>::ScaleZ(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_ScaleZ(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_ScaleZ(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::TranslateX() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_TranslateX(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_TranslateX(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::TranslateX(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_TranslateX(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_TranslateX(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::TranslateY() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_TranslateY(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_TranslateY(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::TranslateY(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_TranslateY(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_TranslateY(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::TranslateZ() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_TranslateZ(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_TranslateZ(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3D<
|
|
D>::TranslateZ(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_TranslateZ(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_TranslateZ(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::CenterXProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_CenterXProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_CenterXProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::CenterYProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_CenterYProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_CenterYProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::CenterZProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_CenterZProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_CenterZProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::RotationXProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RotationXProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_RotationXProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::RotationYProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RotationYProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_RotationYProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::RotationZProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_RotationZProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_RotationZProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::ScaleXProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ScaleXProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_ScaleXProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::ScaleYProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ScaleYProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_ScaleYProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::ScaleZProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ScaleZProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_ScaleZProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::TranslateXProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_TranslateXProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_TranslateXProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::TranslateYProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_TranslateYProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_TranslateYProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ICompositeTransform3DStatics<
|
|
D>::TranslateZProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics,
|
|
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::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_TranslateZProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_TranslateZProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics<
|
|
D>::Identity() const {
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics,
|
|
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::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Identity(put_abi(value)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_Identity(put_abi(value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics<D>::
|
|
Multiply(
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix1,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix2)
|
|
const {
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics,
|
|
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::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->Multiply(
|
|
impl::bind_in(matrix1), impl::bind_in(matrix2), put_abi(result)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)this;
|
|
check_hresult(_winrt_abi_type->Multiply(
|
|
impl::bind_in(matrix1), impl::bind_in(matrix2), put_abi(result)));
|
|
}
|
|
return result;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics<
|
|
D>::FromElements(double m11, double m12, double m13, double m14, double m21,
|
|
double m22, double m23, double m24, double m31, double m32,
|
|
double m33, double m34, double offsetX, double offsetY,
|
|
double offsetZ, double m44) const {
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics,
|
|
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::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->FromElements(
|
|
m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, offsetX,
|
|
offsetY, offsetZ, m44, put_abi(result)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)this;
|
|
check_hresult(_winrt_abi_type->FromElements(
|
|
m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, offsetX,
|
|
offsetY, offsetZ, m44, put_abi(result)));
|
|
}
|
|
return result;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics<D>::
|
|
GetHasInverse(winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const&
|
|
target) const {
|
|
bool result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics,
|
|
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::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->GetHasInverse(impl::bind_in(target), &result));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->GetHasInverse(impl::bind_in(target), &result));
|
|
}
|
|
return result;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics<D>::
|
|
GetIsIdentity(winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const&
|
|
target) const {
|
|
bool result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics,
|
|
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::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->GetIsIdentity(impl::bind_in(target), &result));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->GetIsIdentity(impl::bind_in(target), &result));
|
|
}
|
|
return result;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IMatrix3DHelperStatics<D>::Invert(
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) const {
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D result{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics,
|
|
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::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)&_winrt_casted_result;
|
|
check_hresult(
|
|
_winrt_abi_type->Invert(impl::bind_in(target), put_abi(result)));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IMatrix3DHelperStatics>**)this;
|
|
check_hresult(
|
|
_winrt_abi_type->Invert(impl::bind_in(target), put_abi(result)));
|
|
}
|
|
return result;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D<D>::Depth()
|
|
const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Depth(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_Depth(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D<D>::Depth(
|
|
double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Depth(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_Depth(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D<
|
|
D>::OffsetX() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_OffsetX(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_OffsetX(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D<
|
|
D>::OffsetX(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_OffsetX(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_OffsetX(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D<
|
|
D>::OffsetY() const {
|
|
double value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_OffsetY(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->get_OffsetY(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3D<
|
|
D>::OffsetY(double value) const {
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3D>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_OffsetY(value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3D>**)this;
|
|
check_hresult(_winrt_abi_type->put_OffsetY(value));
|
|
}
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3DStatics<
|
|
D>::DepthProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_DepthProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_DepthProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3DStatics<
|
|
D>::OffsetXProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_OffsetXProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_OffsetXProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_IPerspectiveTransform3DStatics<
|
|
D>::OffsetYProperty() const {
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result =
|
|
impl::try_as_with_reason<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics,
|
|
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::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_OffsetYProperty(&value));
|
|
} else {
|
|
auto const _winrt_abi_type =
|
|
*(abi_t<winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics>**)this;
|
|
check_hresult(_winrt_abi_type->get_OffsetYProperty(&value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::DependencyProperty{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
template <typename D>
|
|
auto consume_Microsoft_UI_Xaml_Media_Media3D_ITransform3DFactory<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::Media::Media3D::
|
|
ITransform3DFactory>) {
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3DFactory,
|
|
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::Media::Media3D::
|
|
ITransform3DFactory>**)&_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::Media::Media3D::
|
|
ITransform3DFactory>**)this;
|
|
check_hresult(_winrt_abi_type->CreateInstance(
|
|
*(void**)(&baseInterface), impl::bind_out(innerInterface), &value));
|
|
}
|
|
return winrt::Microsoft::UI::Xaml::Media::Media3D::Transform3D{
|
|
value, take_ownership_from_abi};
|
|
}
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D>
|
|
: produce_base<
|
|
D,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3D> {
|
|
int32_t __stdcall get_CenterX(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().CenterX());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_CenterX(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().CenterX(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_CenterY(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().CenterY());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_CenterY(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().CenterY(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_CenterZ(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().CenterZ());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_CenterZ(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().CenterZ(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_RotationX(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().RotationX());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_RotationX(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().RotationX(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_RotationY(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().RotationY());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_RotationY(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().RotationY(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_RotationZ(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().RotationZ());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_RotationZ(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().RotationZ(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ScaleX(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().ScaleX());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_ScaleX(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().ScaleX(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ScaleY(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().ScaleY());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_ScaleY(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().ScaleY(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ScaleZ(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().ScaleZ());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_ScaleZ(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().ScaleZ(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_TranslateX(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().TranslateX());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_TranslateX(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().TranslateX(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_TranslateY(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().TranslateY());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_TranslateY(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().TranslateY(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_TranslateZ(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().TranslateZ());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_TranslateZ(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().TranslateZ(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3DStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
ICompositeTransform3DStatics> {
|
|
int32_t __stdcall get_CenterXProperty(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().CenterXProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_CenterYProperty(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().CenterYProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_CenterZProperty(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().CenterZProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_RotationXProperty(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().RotationXProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_RotationYProperty(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().RotationYProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_RotationZProperty(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().RotationZProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ScaleXProperty(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().ScaleXProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ScaleYProperty(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().ScaleYProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_ScaleZProperty(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().ScaleZProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_TranslateXProperty(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().TranslateXProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_TranslateYProperty(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().TranslateYProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_TranslateZProperty(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().TranslateZProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelper>
|
|
: produce_base<
|
|
D, winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelper> {};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics>
|
|
: produce_base<
|
|
D,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics> {
|
|
int32_t __stdcall get_Identity(
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* value) noexcept
|
|
final try {
|
|
zero_abi<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(
|
|
this->shim().Identity());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall Multiply(
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D matrix1,
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D matrix2,
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* result) noexcept
|
|
final try {
|
|
zero_abi<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(result);
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(
|
|
this->shim().Multiply(
|
|
*reinterpret_cast<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>(
|
|
&matrix1),
|
|
*reinterpret_cast<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>(
|
|
&matrix2)));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall FromElements(
|
|
double m11, double m12, double m13, double m14, double m21, double m22,
|
|
double m23, double m24, double m31, double m32, double m33, double m34,
|
|
double offsetX, double offsetY, double offsetZ, double m44,
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* result) noexcept
|
|
final try {
|
|
zero_abi<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(result);
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(
|
|
this->shim().FromElements(m11, m12, m13, m14, m21, m22, m23, m24, m31,
|
|
m32, m33, m34, offsetX, offsetY, offsetZ,
|
|
m44));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall GetHasInverse(
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D target,
|
|
bool* result) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<bool>(this->shim().GetHasInverse(
|
|
*reinterpret_cast<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>(
|
|
&target)));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall GetIsIdentity(
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D target,
|
|
bool* result) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<bool>(this->shim().GetIsIdentity(
|
|
*reinterpret_cast<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>(
|
|
&target)));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall Invert(
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D target,
|
|
struct struct_Microsoft_UI_Xaml_Media_Media3D_Matrix3D* result) noexcept
|
|
final try {
|
|
zero_abi<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(result);
|
|
typename D::abi_guard guard(this->shim());
|
|
*result = detach_from<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D>(
|
|
this->shim().Invert(
|
|
*reinterpret_cast<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const*>(
|
|
&target)));
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D, winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D>
|
|
: produce_base<
|
|
D,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D> {
|
|
int32_t __stdcall get_Depth(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().Depth());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_Depth(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Depth(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_OffsetX(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().OffsetX());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_OffsetX(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OffsetX(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_OffsetY(double* value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<double>(this->shim().OffsetY());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall put_OffsetY(double value) noexcept final try {
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OffsetY(value);
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<
|
|
D,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3DStatics>
|
|
: produce_base<D, winrt::Microsoft::UI::Xaml::Media::Media3D::
|
|
IPerspectiveTransform3DStatics> {
|
|
int32_t __stdcall get_DepthProperty(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().DepthProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_OffsetXProperty(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().OffsetXProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
int32_t __stdcall get_OffsetYProperty(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().OffsetYProperty());
|
|
return 0;
|
|
} catch (...) {
|
|
return to_hresult();
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3D>
|
|
: produce_base<D,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3D> {};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3DFactory>
|
|
: produce_base<
|
|
D, winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3DFactory> {
|
|
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::Media::Media3D::Transform3D>(
|
|
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
|
|
} // namespace winrt::impl
|
|
WINRT_EXPORT namespace winrt::Microsoft::UI::Xaml::Media::Media3D {
|
|
inline CompositeTransform3D::CompositeTransform3D()
|
|
: CompositeTransform3D(
|
|
impl::call_factory_cast<
|
|
CompositeTransform3D (*)(
|
|
winrt::Windows::Foundation::IActivationFactory const&),
|
|
CompositeTransform3D>(
|
|
[](winrt::Windows::Foundation::IActivationFactory const& f) {
|
|
return f.template ActivateInstance<CompositeTransform3D>();
|
|
})) {}
|
|
inline auto CompositeTransform3D::CenterXProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.CenterXProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::CenterYProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.CenterYProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::CenterZProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.CenterZProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::RotationXProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.RotationXProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::RotationYProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.RotationYProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::RotationZProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.RotationZProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::ScaleXProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.ScaleXProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::ScaleYProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.ScaleYProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::ScaleZProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.ScaleZProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::TranslateXProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.TranslateXProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::TranslateYProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.TranslateYProperty();
|
|
});
|
|
}
|
|
inline auto CompositeTransform3D::TranslateZProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
ICompositeTransform3DStatics const&),
|
|
CompositeTransform3D, ICompositeTransform3DStatics>(
|
|
[](ICompositeTransform3DStatics const& f) {
|
|
return f.TranslateZProperty();
|
|
});
|
|
}
|
|
inline auto Matrix3DHelper::Identity() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D (*)(
|
|
IMatrix3DHelperStatics const&),
|
|
Matrix3DHelper, IMatrix3DHelperStatics>(
|
|
[](IMatrix3DHelperStatics const& f) { return f.Identity(); });
|
|
}
|
|
inline auto Matrix3DHelper::Multiply(
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix1,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& matrix2) {
|
|
return impl::call_factory<Matrix3DHelper, IMatrix3DHelperStatics>(
|
|
[&](IMatrix3DHelperStatics const& f) {
|
|
return f.Multiply(matrix1, matrix2);
|
|
});
|
|
}
|
|
inline auto Matrix3DHelper::FromElements(
|
|
double m11, double m12, double m13, double m14, double m21, double m22,
|
|
double m23, double m24, double m31, double m32, double m33, double m34,
|
|
double offsetX, double offsetY, double offsetZ, double m44) {
|
|
return impl::call_factory<Matrix3DHelper, IMatrix3DHelperStatics>(
|
|
[&](IMatrix3DHelperStatics const& f) {
|
|
return f.FromElements(m11, m12, m13, m14, m21, m22, m23, m24, m31,
|
|
m32, m33, m34, offsetX, offsetY, offsetZ, m44);
|
|
});
|
|
}
|
|
inline auto Matrix3DHelper::GetHasInverse(
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) {
|
|
return impl::call_factory<Matrix3DHelper, IMatrix3DHelperStatics>(
|
|
[&](IMatrix3DHelperStatics const& f) {
|
|
return f.GetHasInverse(target);
|
|
});
|
|
}
|
|
inline auto Matrix3DHelper::GetIsIdentity(
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) {
|
|
return impl::call_factory<Matrix3DHelper, IMatrix3DHelperStatics>(
|
|
[&](IMatrix3DHelperStatics const& f) {
|
|
return f.GetIsIdentity(target);
|
|
});
|
|
}
|
|
inline auto Matrix3DHelper::Invert(
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& target) {
|
|
return impl::call_factory<Matrix3DHelper, IMatrix3DHelperStatics>(
|
|
[&](IMatrix3DHelperStatics const& f) { return f.Invert(target); });
|
|
}
|
|
inline PerspectiveTransform3D::PerspectiveTransform3D()
|
|
: PerspectiveTransform3D(
|
|
impl::call_factory_cast<
|
|
PerspectiveTransform3D (*)(
|
|
winrt::Windows::Foundation::IActivationFactory const&),
|
|
PerspectiveTransform3D>(
|
|
[](winrt::Windows::Foundation::IActivationFactory const& f) {
|
|
return f.template ActivateInstance<PerspectiveTransform3D>();
|
|
})) {}
|
|
inline auto PerspectiveTransform3D::DepthProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IPerspectiveTransform3DStatics const&),
|
|
PerspectiveTransform3D, IPerspectiveTransform3DStatics>(
|
|
[](IPerspectiveTransform3DStatics const& f) {
|
|
return f.DepthProperty();
|
|
});
|
|
}
|
|
inline auto PerspectiveTransform3D::OffsetXProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IPerspectiveTransform3DStatics const&),
|
|
PerspectiveTransform3D, IPerspectiveTransform3DStatics>(
|
|
[](IPerspectiveTransform3DStatics const& f) {
|
|
return f.OffsetXProperty();
|
|
});
|
|
}
|
|
inline auto PerspectiveTransform3D::OffsetYProperty() {
|
|
return impl::call_factory_cast<
|
|
winrt::Microsoft::UI::Xaml::DependencyProperty (*)(
|
|
IPerspectiveTransform3DStatics const&),
|
|
PerspectiveTransform3D, IPerspectiveTransform3DStatics>(
|
|
[](IPerspectiveTransform3DStatics const& f) {
|
|
return f.OffsetYProperty();
|
|
});
|
|
}
|
|
template <typename D, typename... Interfaces>
|
|
struct Transform3DT
|
|
: implements<D, winrt::Windows::Foundation::IInspectable, composing,
|
|
Interfaces...>,
|
|
impl::require<D,
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3D,
|
|
winrt::Microsoft::UI::Xaml::IDependencyObject>,
|
|
impl::base<D, Transform3D,
|
|
winrt::Microsoft::UI::Xaml::DependencyObject> {
|
|
using composable = Transform3D;
|
|
|
|
protected:
|
|
Transform3DT() {
|
|
impl::call_factory<Transform3D, ITransform3DFactory>(
|
|
[&](ITransform3DFactory 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::Media::Media3D::ICompositeTransform3D>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::ICompositeTransform3DStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelper>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::IMatrix3DHelperStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3D>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<
|
|
winrt::Microsoft::UI::Xaml::Media::Media3D::IPerspectiveTransform3DStatics>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3D>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::ITransform3DFactory>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::CompositeTransform3D>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::Matrix3DHelper>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::PerspectiveTransform3D>
|
|
: winrt::impl::hash_base {};
|
|
template <>
|
|
struct hash<winrt::Microsoft::UI::Xaml::Media::Media3D::Transform3D>
|
|
: winrt::impl::hash_base {};
|
|
#endif
|
|
#ifdef __cpp_lib_format
|
|
#endif
|
|
} // namespace std
|
|
#endif
|