Structure

CGPatternCallbacks

A structure that holds a version and two callback functions for drawing a custom pattern.

Declaration

typedef struct CGPatternCallbacks {
    ...
} CGPatternCallbacks;

Overview

You supply a CGPatternCallbacks structure to the function CGPatternCreate to create a data provider for direct access. The functions specified by the CGPatternCallbacks structure are responsible for drawing the pattern and for handling the pattern’s memory management.

Topics

Instance Properties

drawPattern

A pointer to a custom function that draws the pattern. For information about this callback function, see CGPatternDrawPatternCallback.

releaseInfo

An optional pointer to a custom function that’s invoked when the pattern is released. CGPatternReleaseInfoCallback.

version

The version of the structure passed in as a parameter to the CGPatternCreate. For this version of the structure, you should set this value to zero.

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