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

import NitroModules

/**
 * Represents an instance of `Resolution`, backed by a C++ struct.
 */
public typealias Resolution = margelo.nitro.video.Resolution

public extension Resolution {
  private typealias bridge = margelo.nitro.video.bridge.swift

  /**
   * Create a new instance of `Resolution`.
   */
  init(width: Double, height: Double) {
    self.init(width, height)
  }

  var width: Double {
    @inline(__always)
    get {
      return self.__width
    }
    @inline(__always)
    set {
      self.__width = newValue
    }
  }
  
  var height: Double {
    @inline(__always)
    get {
      return self.__height
    }
    @inline(__always)
    set {
      self.__height = newValue
    }
  }
}
