///
/// HybridFramePlaneSpec.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



#include <NitroModules/ArrayBuffer.hpp>

namespace margelo::nitro::camera {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridFramePlaneSpec() override = default;

    public:
      // Properties
      virtual double getWidth() = 0;
      virtual double getHeight() = 0;
      virtual double getBytesPerRow() = 0;
      virtual bool getIsValid() = 0;

    public:
      // Methods
      virtual std::shared_ptr<ArrayBuffer> getPixelBuffer() = 0;

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

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

} // namespace margelo::nitro::camera
