///
/// onProgressData.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 `onProgressData`, backed by a C++ struct.
 */
public typealias onProgressData = margelo.nitro.video.onProgressData

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

  /**
   * Create a new instance of `onProgressData`.
   */
  init(currentTime: Double, bufferDuration: Double) {
    self.init(currentTime, bufferDuration)
  }

  var currentTime: Double {
    @inline(__always)
    get {
      return self.__currentTime
    }
    @inline(__always)
    set {
      self.__currentTime = newValue
    }
  }
  
  var bufferDuration: Double {
    @inline(__always)
    get {
      return self.__bufferDuration
    }
    @inline(__always)
    set {
      self.__bufferDuration = newValue
    }
  }
}
