Function

CGBeginDisplayConfiguration

Begins a new set of display configuration changes.

Declaration

CGError CGBeginDisplayConfiguration(CGDisplayConfigRef  _Nullable *config);

Parameters

pConfigRef

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 object is successfully created, the result is kCGErrorSuccess. For other possible values, see Core Graphics Data Types and Constants.

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

Configuring Displays

CGCancelDisplayConfiguration

Cancels a set of display configuration changes.

CGCompleteDisplayConfiguration

Completes a set of display configuration changes.

CGConfigureDisplayMirrorOfDisplay

Changes the configuration of a mirroring set.

CGConfigureDisplayMode

Configures the display mode of a display.

Deprecated
CGConfigureDisplayOrigin

Configures the origin of a display in the global display coordinate space.

CGRestorePermanentDisplayConfiguration

Restores the permanent display configuration settings for the current user.

CGConfigureDisplayStereoOperation

Enables or disables stereo operation for a display, as part of a display configuration.

CGDisplaySetStereoOperation

Immediately enables or disables stereo operation for a display.

CGConfigureDisplayWithDisplayMode

Configures the display mode of a display.