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

import Foundation
import NitroModules

/// See ``HybridNitroDpiMetricSpec``
public protocol HybridNitroDpiMetricSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func isTablet() throws -> Bool
  func getNavBarHeight() throws -> Double
  func getDpi() throws -> Double
  func deviceInch() throws -> Double
}

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

/**
 * A Swift base-protocol representing the NitroDpiMetric HybridObject.
 * Implement this protocol to create Swift-based instances of NitroDpiMetric.
 * ```swift
 * class HybridNitroDpiMetric : HybridNitroDpiMetricSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNitroDpiMetricSpec = HybridNitroDpiMetricSpec_protocol & HybridNitroDpiMetricSpec_base
