Function

MACaptionAppearanceGetForegroundOpacity

Returns the preference for text opacity.

Declaration

CGFloat MACaptionAppearanceGetForegroundOpacity(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

The float value, ranging from 0.0 to 1.0, representing the opacity of the color for text opacity.

See Also

Accessing Text Rendering Preferences

MACaptionAppearanceCopyFontDescriptorForStyle

Returns the preferred font for the specified style of type.

MACaptionAppearanceCopyForegroundColor

Returns the preference for text color.

MACaptionAppearanceGetRelativeCharacterSize

Returns the preference for font scaling.

MACaptionAppearanceGetTextEdgeStyle

Returns the preference for text edge style.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software