IDisplayInfo.gen.h#

Fully qualified name: omni/platforminfo/IDisplayInfo.gen.h

File members: omni/platforminfo/IDisplayInfo.gen.h

// Copyright (c) 2021-2024, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
// --------- Warning: This is a build system generated file. ----------
//

#include <omni/core/OmniAttr.h>
#include <omni/core/Interface.h>
#include <omni/core/ResultError.h>

#include <functional>
#include <utility>
#include <type_traits>

#ifndef OMNI_BIND_INCLUDE_INTERFACE_IMPL

template <>
class omni::core::Generated<omni::platforminfo::IDisplayInfo_abi> : public omni::platforminfo::IDisplayInfo_abi
{
public:
    OMNI_PLUGIN_INTERFACE("omni::platforminfo::IDisplayInfo")

    size_t getDisplayCount() noexcept;

    bool getDisplayInfo(size_t displayIndex, omni::platforminfo::DisplayInfo* infoOut) noexcept;

    size_t getModeCount(const omni::platforminfo::DisplayInfo* display) noexcept;

    bool getModeInfo(const omni::platforminfo::DisplayInfo* display,
                     omni::platforminfo::ModeIndex modeIndex,
                     omni::platforminfo::ModeInfo* infoOut) noexcept;

    bool getTotalDisplaySize(carb::Int2* origin, carb::Int2* size) noexcept;
};

#endif

#ifndef OMNI_BIND_INCLUDE_INTERFACE_DECL

inline size_t omni::core::Generated<omni::platforminfo::IDisplayInfo_abi>::getDisplayCount() noexcept
{
    return getDisplayCount_abi();
}

inline bool omni::core::Generated<omni::platforminfo::IDisplayInfo_abi>::getDisplayInfo(
    size_t displayIndex, omni::platforminfo::DisplayInfo* infoOut) noexcept
{
    return getDisplayInfo_abi(displayIndex, infoOut);
}

inline size_t omni::core::Generated<omni::platforminfo::IDisplayInfo_abi>::getModeCount(
    const omni::platforminfo::DisplayInfo* display) noexcept
{
    return getModeCount_abi(display);
}

inline bool omni::core::Generated<omni::platforminfo::IDisplayInfo_abi>::getModeInfo(
    const omni::platforminfo::DisplayInfo* display,
    omni::platforminfo::ModeIndex modeIndex,
    omni::platforminfo::ModeInfo* infoOut) noexcept
{
    return getModeInfo_abi(display, modeIndex, infoOut);
}

inline bool omni::core::Generated<omni::platforminfo::IDisplayInfo_abi>::getTotalDisplaySize(carb::Int2* origin,
                                                                                             carb::Int2* size) noexcept
{
    return getTotalDisplaySize_abi(origin, size);
}

#endif

#undef OMNI_BIND_INCLUDE_INTERFACE_DECL
#undef OMNI_BIND_INCLUDE_INTERFACE_IMPL
static_assert(std::is_standard_layout<omni::platforminfo::ModeInfo>::value,
              "omni::platforminfo::ModeInfo must be standard layout to be used in ONI ABI");
static_assert(std::is_standard_layout<omni::platforminfo::DisplayInfo>::value,
              "omni::platforminfo::DisplayInfo must be standard layout to be used in ONI ABI");