Contents

CGShadingRetain

Increments the retain count of a shading object.

Declaration

extern CGShadingRef CGShadingRetain(CGShadingRef shading);

Parameters

  • shading:

    The shading object to retain.

Return Value

The same shading object you passed in as the shading parameter.

Discussion

This function is equivalent to CFRetain, except that it does not cause an error if the shading parameter is NULL.

See Also

Retaining and Releasing Shading Objects