SwiftclassProDisplayLibrary

class ProDisplayLibrary.ProDisplayController

Members 22

  1. deinitdeinit
  2. fieldvar data: ProDisplayLibrary.ProData
  3. fieldvar dataStore: ProDisplayLibrary.FileDataStore
  4. fieldlet logger: os.Logger
  5. fieldlet stateQueue: OS_dispatch_queue_serial
  6. funcaddPreset(ProDisplayLibrary.Preset) throws -> ()
  7. funcaddUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, hiddenLuminanceBoosts: Double) throws -> ()
  8. funcaddUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, headroom: Double) throws -> ()
  9. funccalculateNewUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, hiddenLuminanceBoosts: Double) throws -> ProDisplayLibrary.UserAdjustment
  10. funcpreset(with: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> ProDisplayLibrary.Preset
  11. funcpresetList() throws -> [ProDisplayLibrary.Preset.Info]
  12. funcremoveAllPresets() throws -> ()
  13. funcremovePreset(id: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> ()
  14. funcremoveUserAdjustment(for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> ()
  15. funcupdateActivePreset(id: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> ()
  16. funcuserAdjustment(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) -> ProDisplayLibrary.UserAdjustment?
  17. funcuserAdjustmentRange(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, with: ProDisplayLibrary.UserAdjustment.Inputs, hiddenLuminanceBoosts: Double) throws -> ProDisplayLibrary.UserAdjustment.Ranges
  18. funcuserAdjustmentRange(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, with: ProDisplayLibrary.UserAdjustment.Inputs, headroom: Double) throws -> ProDisplayLibrary.UserAdjustment.Ranges
  19. initProDisplayLibrary.ProDisplayController.__allocating_init() throws -> ProDisplayLibrary.ProDisplayController<A>
  20. varfinal var activePresetId: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset> { get }
  21. varfinal var availableCustomPresetSlots: Int { get }
  22. varfinal var defaultPresetId: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset> { get }
class ProDisplayController<A> where A: ProDisplayLibrary.PlatformPresetAttributes, A: ProDisplayLibrary.ProDisplayHardware {
    enum Error {
        case InvalidOperation(Swift.String)
        case InvalidPresetID(ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>)
        case InvalidUAID(ProDisplayLibrary.Identifier<ProDisplayLibrary.UserAdjustment>)
        case FeatureUnsupported(ProDisplayLibrary.ProDisplayFeature)
        case UserAdjustmentOutOfBounds(ProDisplayLibrary.Identifier<ProDisplayLibrary.UserAdjustment>)
        case PresetSlotsFull
    }
    var data: ProDisplayLibrary.ProData
    var dataStore: ProDisplayLibrary.FileDataStore
    let stateQueue: __C.OS_dispatch_queue_serial
    let logger: os.Logger

    init() throws

    final var activePresetId: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset> {
        get
    }
    final var availableCustomPresetSlots: Swift.Int {
        get
    }
    final var defaultPresetId: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset> {
        get
    }

    final func presetList() throws -> [ProDisplayLibrary.Preset.Info]
    final func removePreset(id: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws
    final func userAdjustment(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) -> ProDisplayLibrary.UserAdjustment?
    final func removeAllPresets() throws
    final func addUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, hiddenLuminanceBoosts: Swift.Double) throws
    final func addUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, headroom: Swift.Double) throws
    final func updateActivePreset(id: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws
    final func userAdjustmentRange(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, with: ProDisplayLibrary.UserAdjustment.Inputs, hiddenLuminanceBoosts: Swift.Double) throws -> ProDisplayLibrary.UserAdjustment.Ranges
    final func userAdjustmentRange(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, with: ProDisplayLibrary.UserAdjustment.Inputs, headroom: Swift.Double) throws -> ProDisplayLibrary.UserAdjustment.Ranges
    final func removeUserAdjustment(for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws
    final func calculateNewUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, hiddenLuminanceBoosts: Swift.Double) throws -> ProDisplayLibrary.UserAdjustment
    final func preset(with: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> ProDisplayLibrary.Preset
    final func addPreset(_: ProDisplayLibrary.Preset) throws

    deinit
}