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

import NitroModules

/// See ``HybridMeteringPointSpec``
public protocol HybridMeteringPointSpec_protocol: HybridObject {
  // Properties
  var relativeX: Double { get }
  var relativeY: Double { get }
  var relativeSize: Double? { get }
  var normalizedX: Double { get }
  var normalizedY: Double { get }
  var normalizedSize: Double { get }

  // Methods
  
}

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

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

/**
 * A Swift base-protocol representing the MeteringPoint HybridObject.
 * Implement this protocol to create Swift-based instances of MeteringPoint.
 * ```swift
 * class HybridMeteringPoint : HybridMeteringPointSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridMeteringPointSpec = HybridMeteringPointSpec_protocol & HybridMeteringPointSpec_base
