mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Update WinRT to new version 2.0.250303.1
PiperOrigin-RevId: 781075193
This commit is contained in:
committed by
Copybara-Service
parent
5e558cffc4
commit
8f14bd10fc
@@ -1,11 +1,11 @@
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
|
||||
|
||||
#pragma once
|
||||
#ifndef WINRT_Windows_Perception_H
|
||||
#define WINRT_Windows_Perception_H
|
||||
#include "winrt/base.h"
|
||||
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.220531.1"), "Mismatched C++/WinRT headers.");
|
||||
#define CPPWINRT_VERSION "2.0.220531.1"
|
||||
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers.");
|
||||
#define CPPWINRT_VERSION "2.0.250303.1"
|
||||
#include "winrt/impl/Windows.Foundation.2.h"
|
||||
#include "winrt/impl/Windows.Perception.2.h"
|
||||
namespace winrt::impl
|
||||
@@ -13,31 +13,91 @@ namespace winrt::impl
|
||||
template <typename D> auto consume_Windows_Perception_IPerceptionTimestamp<D>::TargetTime() const
|
||||
{
|
||||
winrt::Windows::Foundation::DateTime value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::IPerceptionTimestamp)->get_TargetTime(put_abi(value)));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Perception::IPerceptionTimestamp>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Perception::IPerceptionTimestamp, 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::Windows::Perception::IPerceptionTimestamp>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->get_TargetTime(put_abi(value)));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Perception::IPerceptionTimestamp>**)this;
|
||||
check_hresult(_winrt_abi_type->get_TargetTime(put_abi(value)));
|
||||
}
|
||||
return value;
|
||||
}
|
||||
template <typename D> auto consume_Windows_Perception_IPerceptionTimestamp<D>::PredictionAmount() const
|
||||
{
|
||||
winrt::Windows::Foundation::TimeSpan value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::IPerceptionTimestamp)->get_PredictionAmount(put_abi(value)));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Perception::IPerceptionTimestamp>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Perception::IPerceptionTimestamp, 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::Windows::Perception::IPerceptionTimestamp>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->get_PredictionAmount(put_abi(value)));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Perception::IPerceptionTimestamp>**)this;
|
||||
check_hresult(_winrt_abi_type->get_PredictionAmount(put_abi(value)));
|
||||
}
|
||||
return value;
|
||||
}
|
||||
template <typename D> auto consume_Windows_Perception_IPerceptionTimestamp2<D>::SystemRelativeTargetTime() const
|
||||
{
|
||||
winrt::Windows::Foundation::TimeSpan value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::IPerceptionTimestamp2)->get_SystemRelativeTargetTime(put_abi(value)));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Perception::IPerceptionTimestamp2>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Perception::IPerceptionTimestamp2, 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::Windows::Perception::IPerceptionTimestamp2>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->get_SystemRelativeTargetTime(put_abi(value)));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Perception::IPerceptionTimestamp2>**)this;
|
||||
check_hresult(_winrt_abi_type->get_SystemRelativeTargetTime(put_abi(value)));
|
||||
}
|
||||
return value;
|
||||
}
|
||||
template <typename D> auto consume_Windows_Perception_IPerceptionTimestampHelperStatics<D>::FromHistoricalTargetTime(winrt::Windows::Foundation::DateTime const& targetTime) const
|
||||
{
|
||||
void* value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::IPerceptionTimestampHelperStatics)->FromHistoricalTargetTime(impl::bind_in(targetTime), &value));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Perception::IPerceptionTimestampHelperStatics>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Perception::IPerceptionTimestampHelperStatics, 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::Windows::Perception::IPerceptionTimestampHelperStatics>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->FromHistoricalTargetTime(impl::bind_in(targetTime), &value));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Perception::IPerceptionTimestampHelperStatics>**)this;
|
||||
check_hresult(_winrt_abi_type->FromHistoricalTargetTime(impl::bind_in(targetTime), &value));
|
||||
}
|
||||
return winrt::Windows::Perception::PerceptionTimestamp{ value, take_ownership_from_abi };
|
||||
}
|
||||
template <typename D> auto consume_Windows_Perception_IPerceptionTimestampHelperStatics2<D>::FromSystemRelativeTargetTime(winrt::Windows::Foundation::TimeSpan const& targetTime) const
|
||||
{
|
||||
void* value{};
|
||||
check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Perception::IPerceptionTimestampHelperStatics2)->FromSystemRelativeTargetTime(impl::bind_in(targetTime), &value));
|
||||
if constexpr (!std::is_same_v<D, winrt::Windows::Perception::IPerceptionTimestampHelperStatics2>)
|
||||
{
|
||||
winrt::hresult _winrt_cast_result_code;
|
||||
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Perception::IPerceptionTimestampHelperStatics2, 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::Windows::Perception::IPerceptionTimestampHelperStatics2>**)&_winrt_casted_result;
|
||||
check_hresult(_winrt_abi_type->FromSystemRelativeTargetTime(impl::bind_in(targetTime), &value));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Perception::IPerceptionTimestampHelperStatics2>**)this;
|
||||
check_hresult(_winrt_abi_type->FromSystemRelativeTargetTime(impl::bind_in(targetTime), &value));
|
||||
}
|
||||
return winrt::Windows::Perception::PerceptionTimestamp{ value, take_ownership_from_abi };
|
||||
}
|
||||
#ifndef WINRT_LEAN_AND_MEAN
|
||||
|
||||
Reference in New Issue
Block a user