SwiftclassProDisplayLibrary
ProDisplayController
class ProDisplayLibrary.ProDisplayController
Members 22
- deinit
deinit - field
var data: ProDisplayLibrary.ProData - field
var dataStore: ProDisplayLibrary.FileDataStore - field
let logger: os.Logger - field
let stateQueue: OS_dispatch_queue_serial - func
addPreset(ProDisplayLibrary.Preset) throws -> () - func
addUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, hiddenLuminanceBoosts: Double) throws -> () - func
addUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, headroom: Double) throws -> () - func
calculateNewUserAdjustment(_: ProDisplayLibrary.UserAdjustment, for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, hiddenLuminanceBoosts: Double) throws -> ProDisplayLibrary.UserAdjustment - func
preset(with: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> ProDisplayLibrary.Preset - func
presetList() throws -> [ProDisplayLibrary.Preset.Info] - func
removeAllPresets() throws -> () - func
removePreset(id: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> () - func
removeUserAdjustment(for: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> () - func
updateActivePreset(id: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) throws -> () - func
userAdjustment(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>) -> ProDisplayLibrary.UserAdjustment? - func
userAdjustmentRange(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, with: ProDisplayLibrary.UserAdjustment.Inputs, hiddenLuminanceBoosts: Double) throws -> ProDisplayLibrary.UserAdjustment.Ranges - func
userAdjustmentRange(of: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset>, with: ProDisplayLibrary.UserAdjustment.Inputs, headroom: Double) throws -> ProDisplayLibrary.UserAdjustment.Ranges - init
ProDisplayLibrary.ProDisplayController.__allocating_init() throws -> ProDisplayLibrary.ProDisplayController<A> - var
final var activePresetId: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset> { get } - var
final var availableCustomPresetSlots: Int { get } - var
final var defaultPresetId: ProDisplayLibrary.Identifier<ProDisplayLibrary.Preset> { get }
Header
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 }