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

import NitroModules

/// See ``HybridScannedObjectSpec``
public protocol HybridScannedObjectSpec_protocol: HybridObject {
  // Properties
  var type: ScannedObjectType { get }
  var boundingBox: BoundingBox { get }

  // Methods
  
}

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

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

/**
 * A Swift base-protocol representing the ScannedObject HybridObject.
 * Implement this protocol to create Swift-based instances of ScannedObject.
 * ```swift
 * class HybridScannedObject : HybridScannedObjectSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridScannedObjectSpec = HybridScannedObjectSpec_protocol & HybridScannedObjectSpec_base
