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

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

  /**
   * Create a new instance of `NativeExternalSubtitle`.
   */
  init(uri: String, label: String, type: SubtitleType, language: String) {
    self.init(std.string(uri), std.string(label), type, std.string(language))
  }

  var uri: String {
    @inline(__always)
    get {
      return String(self.__uri)
    }
    @inline(__always)
    set {
      self.__uri = std.string(newValue)
    }
  }
  
  var label: String {
    @inline(__always)
    get {
      return String(self.__label)
    }
    @inline(__always)
    set {
      self.__label = std.string(newValue)
    }
  }
  
  var type: SubtitleType {
    @inline(__always)
    get {
      return self.__type
    }
    @inline(__always)
    set {
      self.__type = newValue
    }
  }
  
  var language: String {
    @inline(__always)
    get {
      return String(self.__language)
    }
    @inline(__always)
    set {
      self.__language = std.string(newValue)
    }
  }
}
