CGBeginDisplayConfiguration(_:)
Begins a new set of display configuration changes.
Declaration
func CGBeginDisplayConfiguration(_ config: UnsafeMutablePointer<CGDisplayConfigRef?>?) -> CGErrorParameters
- config:
A pointer to storage you provide for a display configuration. On return, your storage contains a new display configuration.
Return Value
A result code. If the request to create a new display configuration is successful, the result is kCGErrorSuccess. For other possible values, see CGError.
Discussion
This function creates a display configuration object that provides a context for a set of display configuration changes. After you specify the desired changes, you use CGCompleteDisplayConfiguration(_:_:) to apply them in a single transaction.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()CGDirectDisplayCopyCurrentMetalDevice(_:)