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

public extension RecorderCameraStyle {
  private typealias bridge = margelo.nitro.nitroscreenrecorder.bridge.swift

  /**
   * Create a new instance of `RecorderCameraStyle`.
   */
  init(top: Double?, left: Double?, width: Double?, height: Double?, borderRadius: Double?, borderWidth: Double?) {
    self.init({ () -> bridge.std__optional_double_ in
      if let __unwrappedValue = top {
        return bridge.create_std__optional_double_(__unwrappedValue)
      } else {
        return .init()
      }
    }(), { () -> bridge.std__optional_double_ in
      if let __unwrappedValue = left {
        return bridge.create_std__optional_double_(__unwrappedValue)
      } else {
        return .init()
      }
    }(), { () -> bridge.std__optional_double_ in
      if let __unwrappedValue = width {
        return bridge.create_std__optional_double_(__unwrappedValue)
      } else {
        return .init()
      }
    }(), { () -> bridge.std__optional_double_ in
      if let __unwrappedValue = height {
        return bridge.create_std__optional_double_(__unwrappedValue)
      } else {
        return .init()
      }
    }(), { () -> bridge.std__optional_double_ in
      if let __unwrappedValue = borderRadius {
        return bridge.create_std__optional_double_(__unwrappedValue)
      } else {
        return .init()
      }
    }(), { () -> bridge.std__optional_double_ in
      if let __unwrappedValue = borderWidth {
        return bridge.create_std__optional_double_(__unwrappedValue)
      } else {
        return .init()
      }
    }())
  }

  var top: Double? {
    @inline(__always)
    get {
      return self.__top.value
    }
    @inline(__always)
    set {
      self.__top = { () -> bridge.std__optional_double_ in
        if let __unwrappedValue = newValue {
          return bridge.create_std__optional_double_(__unwrappedValue)
        } else {
          return .init()
        }
      }()
    }
  }
  
  var left: Double? {
    @inline(__always)
    get {
      return self.__left.value
    }
    @inline(__always)
    set {
      self.__left = { () -> bridge.std__optional_double_ in
        if let __unwrappedValue = newValue {
          return bridge.create_std__optional_double_(__unwrappedValue)
        } else {
          return .init()
        }
      }()
    }
  }
  
  var width: Double? {
    @inline(__always)
    get {
      return self.__width.value
    }
    @inline(__always)
    set {
      self.__width = { () -> bridge.std__optional_double_ in
        if let __unwrappedValue = newValue {
          return bridge.create_std__optional_double_(__unwrappedValue)
        } else {
          return .init()
        }
      }()
    }
  }
  
  var height: Double? {
    @inline(__always)
    get {
      return self.__height.value
    }
    @inline(__always)
    set {
      self.__height = { () -> bridge.std__optional_double_ in
        if let __unwrappedValue = newValue {
          return bridge.create_std__optional_double_(__unwrappedValue)
        } else {
          return .init()
        }
      }()
    }
  }
  
  var borderRadius: Double? {
    @inline(__always)
    get {
      return self.__borderRadius.value
    }
    @inline(__always)
    set {
      self.__borderRadius = { () -> bridge.std__optional_double_ in
        if let __unwrappedValue = newValue {
          return bridge.create_std__optional_double_(__unwrappedValue)
        } else {
          return .init()
        }
      }()
    }
  }
  
  var borderWidth: Double? {
    @inline(__always)
    get {
      return self.__borderWidth.value
    }
    @inline(__always)
    set {
      self.__borderWidth = { () -> bridge.std__optional_double_ in
        if let __unwrappedValue = newValue {
          return bridge.create_std__optional_double_(__unwrappedValue)
        } else {
          return .init()
        }
      }()
    }
  }
}
