// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #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 struct WINRT_IMPL_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{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> inline constexpr auto& name_v = L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview"; template <> inline constexpr auto& name_v = L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading"; template <> inline constexpr auto& name_v = L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.System.Preview.HingeState"; template <> inline constexpr auto& name_v = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreview"; template <> inline constexpr auto& name_v = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreviewReading"; template <> inline constexpr auto& name_v = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.System.Preview.ITwoPanelHingedDevicePosturePreviewStatics"; template <> inline constexpr guid guid_v{ 0x72245C31,0x4B39,0x42A6,{ 0x8E,0x73,0x72,0x35,0xAD,0xE1,0x68,0x53 } }; // 72245C31-4B39-42A6-8E73-7235ADE16853 template <> inline constexpr guid guid_v{ 0xA0251452,0x4AD6,0x4B38,{ 0x84,0x26,0xC5,0x9A,0x15,0x49,0x3A,0x7D } }; // A0251452-4AD6-4B38-8426-C59A15493A7D template <> inline constexpr guid guid_v{ 0x2D2D1BC6,0x02CE,0x474A,{ 0xA5,0x56,0xA7,0x5B,0x1C,0xF9,0x3A,0x03 } }; // 2D2D1BC6-02CE-474A-A556-A75B1CF93A03 template <> inline constexpr guid guid_v{ 0x0C4733D2,0x57E0,0x4180,{ 0xBD,0x5E,0xF3,0x1A,0x21,0x38,0x42,0x3E } }; // 0C4733D2-57E0-4180-BD5E-F31A2138423E template <> struct default_interface{ using type = winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreview; }; template <> struct default_interface{ using type = winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReading; }; template <> struct default_interface{ using type = winrt::Windows::System::Preview::ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs; }; template <> struct abi { struct WINRT_IMPL_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 { struct WINRT_IMPL_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 { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Reading(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetDefaultAsync(void**) noexcept = 0; }; }; template struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreview { auto GetCurrentPostureAsync() const; auto PostureChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using PostureChanged_revoker = impl::event_revoker::remove_PostureChanged>; [[nodiscard]] auto PostureChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto PostureChanged(winrt::event_token const& token) const noexcept; }; template <> struct consume { template using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreview; }; template struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReading { [[nodiscard]] auto Timestamp() const; [[nodiscard]] auto HingeState() const; [[nodiscard]] auto Panel1Orientation() const; [[nodiscard]] auto Panel1Id() const; [[nodiscard]] auto Panel2Orientation() const; [[nodiscard]] auto Panel2Id() const; }; template <> struct consume { template using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReading; }; template struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs { [[nodiscard]] auto Reading() const; }; template <> struct consume { template using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewReadingChangedEventArgs; }; template struct consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewStatics { auto GetDefaultAsync() const; }; template <> struct consume { template using type = consume_Windows_System_Preview_ITwoPanelHingedDevicePosturePreviewStatics; }; } #endif