// C++/WinRT v2.0.190620.2

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#ifndef WINRT_Windows_Perception_Spatial_Preview_0_H
#define WINRT_Windows_Perception_Spatial_Preview_0_H
namespace winrt::Windows::Foundation::Numerics
{
}
namespace winrt::Windows::Perception::Spatial
{
    struct SpatialCoordinateSystem;
    struct SpatialLocator;
}
namespace winrt::Windows::Perception::Spatial::Preview
{
    struct ISpatialGraphInteropFrameOfReferencePreview;
    struct ISpatialGraphInteropPreviewStatics;
    struct ISpatialGraphInteropPreviewStatics2;
    struct SpatialGraphInteropFrameOfReferencePreview;
    struct SpatialGraphInteropPreview;
}
namespace winrt::impl
{
    template <> struct category<Windows::Perception::Spatial::Preview::ISpatialGraphInteropFrameOfReferencePreview>
    {
        using type = interface_category;
    };
    template <> struct category<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics>
    {
        using type = interface_category;
    };
    template <> struct category<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics2>
    {
        using type = interface_category;
    };
    template <> struct category<Windows::Perception::Spatial::Preview::SpatialGraphInteropFrameOfReferencePreview>
    {
        using type = class_category;
    };
    template <> struct category<Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview>
    {
        using type = class_category;
    };
    template <> struct name<Windows::Perception::Spatial::Preview::ISpatialGraphInteropFrameOfReferencePreview>
    {
        static constexpr auto & value{ L"Windows.Perception.Spatial.Preview.ISpatialGraphInteropFrameOfReferencePreview" };
    };
    template <> struct name<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics>
    {
        static constexpr auto & value{ L"Windows.Perception.Spatial.Preview.ISpatialGraphInteropPreviewStatics" };
    };
    template <> struct name<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics2>
    {
        static constexpr auto & value{ L"Windows.Perception.Spatial.Preview.ISpatialGraphInteropPreviewStatics2" };
    };
    template <> struct name<Windows::Perception::Spatial::Preview::SpatialGraphInteropFrameOfReferencePreview>
    {
        static constexpr auto & value{ L"Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview" };
    };
    template <> struct name<Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview>
    {
        static constexpr auto & value{ L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview" };
    };
    template <> struct guid_storage<Windows::Perception::Spatial::Preview::ISpatialGraphInteropFrameOfReferencePreview>
    {
        static constexpr guid value{ 0xA8271B23,0x735F,0x5729,{ 0xA9,0x8E,0xE6,0x4E,0xD1,0x89,0xAB,0xC5 } };
    };
    template <> struct guid_storage<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics>
    {
        static constexpr guid value{ 0xC042644C,0x20D8,0x4ED0,{ 0xAE,0xF7,0x68,0x05,0xB8,0xE5,0x3F,0x55 } };
    };
    template <> struct guid_storage<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics2>
    {
        static constexpr guid value{ 0x2490B15F,0x6CBD,0x4B1E,{ 0xB7,0x65,0x31,0xE4,0x62,0xA3,0x2D,0xF2 } };
    };
    template <> struct default_interface<Windows::Perception::Spatial::Preview::SpatialGraphInteropFrameOfReferencePreview>
    {
        using type = Windows::Perception::Spatial::Preview::ISpatialGraphInteropFrameOfReferencePreview;
    };
    template <> struct abi<Windows::Perception::Spatial::Preview::ISpatialGraphInteropFrameOfReferencePreview>
    {
        struct __declspec(novtable) type : inspectable_abi
        {
            virtual int32_t __stdcall get_CoordinateSystem(void**) noexcept = 0;
            virtual int32_t __stdcall get_NodeId(winrt::guid*) noexcept = 0;
            virtual int32_t __stdcall get_CoordinateSystemToNodeTransform(Windows::Foundation::Numerics::float4x4*) noexcept = 0;
        };
    };
    template <> struct abi<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics>
    {
        struct __declspec(novtable) type : inspectable_abi
        {
            virtual int32_t __stdcall CreateCoordinateSystemForNode(winrt::guid, void**) noexcept = 0;
            virtual int32_t __stdcall CreateCoordinateSystemForNodeWithPosition(winrt::guid, Windows::Foundation::Numerics::float3, void**) noexcept = 0;
            virtual int32_t __stdcall CreateCoordinateSystemForNodeWithPositionAndOrientation(winrt::guid, Windows::Foundation::Numerics::float3, Windows::Foundation::Numerics::quaternion, void**) noexcept = 0;
            virtual int32_t __stdcall CreateLocatorForNode(winrt::guid, void**) noexcept = 0;
        };
    };
    template <> struct abi<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics2>
    {
        struct __declspec(novtable) type : inspectable_abi
        {
            virtual int32_t __stdcall TryCreateFrameOfReference(void*, void**) noexcept = 0;
            virtual int32_t __stdcall TryCreateFrameOfReferenceWithPosition(void*, Windows::Foundation::Numerics::float3, void**) noexcept = 0;
            virtual int32_t __stdcall TryCreateFrameOfReferenceWithPositionAndOrientation(void*, Windows::Foundation::Numerics::float3, Windows::Foundation::Numerics::quaternion, void**) noexcept = 0;
        };
    };
    template <typename D>
    struct consume_Windows_Perception_Spatial_Preview_ISpatialGraphInteropFrameOfReferencePreview
    {
        [[nodiscard]] auto CoordinateSystem() const;
        [[nodiscard]] auto NodeId() const;
        [[nodiscard]] auto CoordinateSystemToNodeTransform() const;
    };
    template <> struct consume<Windows::Perception::Spatial::Preview::ISpatialGraphInteropFrameOfReferencePreview>
    {
        template <typename D> using type = consume_Windows_Perception_Spatial_Preview_ISpatialGraphInteropFrameOfReferencePreview<D>;
    };
    template <typename D>
    struct consume_Windows_Perception_Spatial_Preview_ISpatialGraphInteropPreviewStatics
    {
        auto CreateCoordinateSystemForNode(winrt::guid const& nodeId) const;
        auto CreateCoordinateSystemForNode(winrt::guid const& nodeId, Windows::Foundation::Numerics::float3 const& relativePosition) const;
        auto CreateCoordinateSystemForNode(winrt::guid const& nodeId, Windows::Foundation::Numerics::float3 const& relativePosition, Windows::Foundation::Numerics::quaternion const& relativeOrientation) const;
        auto CreateLocatorForNode(winrt::guid const& nodeId) const;
    };
    template <> struct consume<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics>
    {
        template <typename D> using type = consume_Windows_Perception_Spatial_Preview_ISpatialGraphInteropPreviewStatics<D>;
    };
    template <typename D>
    struct consume_Windows_Perception_Spatial_Preview_ISpatialGraphInteropPreviewStatics2
    {
        auto TryCreateFrameOfReference(Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem) const;
        auto TryCreateFrameOfReference(Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem, Windows::Foundation::Numerics::float3 const& relativePosition) const;
        auto TryCreateFrameOfReference(Windows::Perception::Spatial::SpatialCoordinateSystem const& coordinateSystem, Windows::Foundation::Numerics::float3 const& relativePosition, Windows::Foundation::Numerics::quaternion const& relativeOrientation) const;
    };
    template <> struct consume<Windows::Perception::Spatial::Preview::ISpatialGraphInteropPreviewStatics2>
    {
        template <typename D> using type = consume_Windows_Perception_Spatial_Preview_ISpatialGraphInteropPreviewStatics2<D>;
    };
}
#endif
