///
/// HybridFrameRendererViewSpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif

// Forward declaration of `HybridFrameRendererSpec` to properly resolve imports.
namespace margelo::nitro::camera { class HybridFrameRendererSpec; }

#include <memory>
#include "HybridFrameRendererSpec.hpp"
#include <optional>

namespace margelo::nitro::camera {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `FrameRendererView`
   * Inherit this class to create instances of `HybridFrameRendererViewSpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridFrameRendererView: public HybridFrameRendererViewSpec {
   * public:
   *   HybridFrameRendererView(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridFrameRendererViewSpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridFrameRendererViewSpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridFrameRendererViewSpec() override = default;

    public:
      // Properties
      virtual std::optional<std::shared_ptr<HybridFrameRendererSpec>> getRenderer() = 0;
      virtual void setRenderer(const std::optional<std::shared_ptr<HybridFrameRendererSpec>>& renderer) = 0;

    public:
      // Methods
      

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "FrameRendererView";
  };

} // namespace margelo::nitro::camera
