mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 23:26:12 -04:00
Internal change
PiperOrigin-RevId: 380848866
This commit is contained in:
@@ -0,0 +1,154 @@
|
||||
// Copyright 2020 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// https://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
|
||||
|
||||
#ifndef WINRT_Windows_System_Preview_0_H
|
||||
#define WINRT_Windows_System_Preview_0_H
|
||||
WINRT_EXPORT namespace winrt::Windows::Devices::Sensors
|
||||
{
|
||||
enum class SimpleOrientation : int32_t;
|
||||
}
|
||||
WINRT_EXPORT namespace winrt::Windows::Foundation
|
||||
{
|
||||
struct EventRegistrationToken;
|
||||
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
|
||||
template <typename TSender, typename TResult> struct __declspec(empty_bases) TypedEventHandler;
|
||||
}
|
||||
WINRT_EXPORT namespace winrt::Windows::System::Preview
|
||||
{
|
||||
enum class HingeState : int32_t
|
||||
{
|
||||
Unknown = 0,
|
||||
Closed = 1,
|
||||
Concave = 2,
|
||||
Flat = 3,
|
||||
Convex = 4,
|
||||
Full = 5,
|
||||
};
|
||||
struct ITwoPanelHingedDevicePosturePreview;
|
||||
struct ITwoPanelHingedDevicePosturePreviewReading;
|
||||
struct ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs;
|
||||
struct ITwoPanelHingedDevicePosturePreviewStatics;
|
||||
struct TwoPanelHingedDevicePosturePreview;
|
||||
struct TwoPanelHingedDevicePosturePreviewReading;
|
||||
struct TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs;
|
||||
}
|
||||
namespace winrt::impl
|
||||
{
|
||||
template <> struct category<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview>{ using type = interface_category; };
|
||||
template <> struct category<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReading>{ using type = interface_category; };
|
||||
template <> struct category<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>{ using type = interface_category; };
|
||||
template <> struct category<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewStatics>{ using type = interface_category; };
|
||||
template <> struct category<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview>{ using type = class_category; };
|
||||
template <> struct category<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading>{ using type = class_category; };
|
||||
template <> struct category<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>{ using type = class_category; };
|
||||
template <> struct category<winrt::Windows::System::Preview::HingeState>{ using type = enum_category; };
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview> = L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview";
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading> = L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading";
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs> = L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs";
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::HingeState> = L"Windows.System.Preview.HingeState";
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview> = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreview";
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReading> = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreviewReading";
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs> = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs";
|
||||
template <> inline constexpr auto& name_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewStatics> = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreviewStatics";
|
||||
template <> inline constexpr guid guid_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview>{ 0x72245C31,0x4B39,0x42A6,{ 0x8E,0x73,0x72,0x35,0xAD,0xE1,0x68,0x53 } }; // 72245C31-4B39-42A6-8E73-7235ADE16853
|
||||
template <> inline constexpr guid guid_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReading>{ 0xA0251452,0x4AD6,0x4B38,{ 0x84,0x26,0xC5,0x9A,0x15,0x49,0x3A,0x7D } }; // A0251452-4AD6-4B38-8426-C59A15493A7D
|
||||
template <> inline constexpr guid guid_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>{ 0x2D2D1BC6,0x02CE,0x474A,{ 0xA5,0x56,0xA7,0x5B,0x1C,0xF9,0x3A,0x03 } }; // 2D2D1BC6-02CE-474A-A556-A75B1CF93A03
|
||||
template <> inline constexpr guid guid_v<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewStatics>{ 0x0C4733D2,0x57E0,0x4180,{ 0xBD,0x5E,0xF3,0x1A,0x21,0x38,0x42,0x3E } }; // 0C4733D2-57E0-4180-BD5E-F31A2138423E
|
||||
template <> struct default_interface<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview>{ using type = winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview; };
|
||||
template <> struct default_interface<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading>{ using type = winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReading; };
|
||||
template <> struct default_interface<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>{ using type = winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs; };
|
||||
template <> struct abi<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview>
|
||||
{
|
||||
struct __declspec(novtable) type : inspectable_abi
|
||||
{
|
||||
virtual int32_t __stdcall GetCurrentPostureAsync(void**) noexcept = 0;
|
||||
virtual int32_t __stdcall add_PostureChanged(void*, winrt::event_token*) noexcept = 0;
|
||||
virtual int32_t __stdcall remove_PostureChanged(winrt::event_token) noexcept = 0;
|
||||
};
|
||||
};
|
||||
template <> struct abi<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReading>
|
||||
{
|
||||
struct __declspec(novtable) type : inspectable_abi
|
||||
{
|
||||
virtual int32_t __stdcall get_Timestamp(int64_t*) noexcept = 0;
|
||||
virtual int32_t __stdcall get_HingeState(int32_t*) noexcept = 0;
|
||||
virtual int32_t __stdcall get_Panel1Orientation(int32_t*) noexcept = 0;
|
||||
virtual int32_t __stdcall get_Panel1Id(void**) noexcept = 0;
|
||||
virtual int32_t __stdcall get_Panel2Orientation(int32_t*) noexcept = 0;
|
||||
virtual int32_t __stdcall get_Panel2Id(void**) noexcept = 0;
|
||||
};
|
||||
};
|
||||
template <> struct abi<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>
|
||||
{
|
||||
struct __declspec(novtable) type : inspectable_abi
|
||||
{
|
||||
virtual int32_t __stdcall get_Reading(void**) noexcept = 0;
|
||||
};
|
||||
};
|
||||
template <> struct abi<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewStatics>
|
||||
{
|
||||
struct __declspec(novtable) type : inspectable_abi
|
||||
{
|
||||
virtual int32_t __stdcall GetDefaultAsync(void**) noexcept = 0;
|
||||
};
|
||||
};
|
||||
template <typename D>
|
||||
struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreview
|
||||
{
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading>) GetCurrentPostureAsync() const;
|
||||
WINRT_IMPL_AUTO(winrt::event_token) PostureChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview, winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs> const& handler) const;
|
||||
using PostureChanged_revoker = impl::event_revoker<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview, &impl::abi_t<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview>::remove_PostureChanged>;
|
||||
[[nodiscard]] PostureChanged_revoker PostureChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview, winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs> const& handler) const;
|
||||
WINRT_IMPL_AUTO(void) PostureChanged(winrt::event_token const& token) const noexcept;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview>
|
||||
{
|
||||
template <typename D> using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreview<D>;
|
||||
};
|
||||
template <typename D>
|
||||
struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReading
|
||||
{
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::DateTime) Timestamp() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Preview::HingeState) HingeState() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Sensors::SimpleOrientation) Panel1Orientation() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Panel1Id() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Devices::Sensors::SimpleOrientation) Panel2Orientation() const;
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Panel2Id() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReading>
|
||||
{
|
||||
template <typename D> using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReading<D>;
|
||||
};
|
||||
template <typename D>
|
||||
struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs
|
||||
{
|
||||
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreviewReading) Reading() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs>
|
||||
{
|
||||
template <typename D> using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs<D>;
|
||||
};
|
||||
template <typename D>
|
||||
struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewStatics
|
||||
{
|
||||
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::System::Preview::TwoPanelHingedDevicePosturePreview>) GetDefaultAsync() const;
|
||||
};
|
||||
template <> struct consume<winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewStatics>
|
||||
{
|
||||
template <typename D> using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewStatics<D>;
|
||||
};
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user