Function

MACaptionAppearanceGetBackgroundOpacity

Returns the preferred opacity for the text highlight.

Declaration

CGFloat MACaptionAppearanceGetBackgroundOpacity(MACaptionAppearanceDomain domain, MACaptionAppearanceBehavior *behavior);

Parameters

domain

The domain to retrieve the preference value from. See MACaptionAppearanceDomain. Pass kMACaptionAppearanceDomainUser unless the system defaults are needed for comparison.

behavior

A pointer to memory. On return, this memory holds the caption appearance behavior for this preference setting. For possible values see MACaptionAppearanceBehavior. Pass NULL when you do not need the behavior setting.

Return Value

A float value, ranging from 0.0 to 1.0, representing the opacity of the color behind the text and above the window color.

See Also

Accessing Text Highlight Preferences

MACaptionAppearanceCopyBackgroundColor

Returns the color of the preference for the text highlight.