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

import NitroModules

/// See ``HybridFaceSpec``
public protocol HybridFaceSpec_protocol: HybridObject {
  // Properties
  var landmarks: Landmarks? { get }
  var contours: Contours? { get }
  var bounds: Bounds { get }
  var leftEyeOpenProbability: Double? { get }
  var rightEyeOpenProbability: Double? { get }
  var smilingProbability: Double? { get }
  var trackingId: Double? { get }
  var pitchAngle: Double { get }
  var rollAngle: Double { get }
  var yawAngle: Double { get }

  // Methods
  
}

public extension HybridFaceSpec_protocol {
  /// Default implementation of ``HybridObject.toString``
  func toString() -> String {
    return "[HybridObject Face]"
  }
}

/// See ``HybridFaceSpec``
open class HybridFaceSpec_base {
  private weak var cxxWrapper: HybridFaceSpec_cxx? = nil
  public init() { }
  public func getCxxWrapper() -> HybridFaceSpec_cxx {
  #if DEBUG
    guard self is any HybridFaceSpec else {
      fatalError("`self` is not a `HybridFaceSpec`! Did you accidentally inherit from `HybridFaceSpec_base` instead of `HybridFaceSpec`?")
    }
  #endif
    if let cxxWrapper = self.cxxWrapper {
      return cxxWrapper
    } else {
      let cxxWrapper = HybridFaceSpec_cxx(self as! any HybridFaceSpec)
      self.cxxWrapper = cxxWrapper
      return cxxWrapper
    }
  }
}

/**
 * A Swift base-protocol representing the Face HybridObject.
 * Implement this protocol to create Swift-based instances of Face.
 * ```swift
 * class HybridFace : HybridFaceSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridFaceSpec = HybridFaceSpec_protocol & HybridFaceSpec_base
