Class

CGFunction

A general facility for defining and using callback functions.

Declaration

class CGFunction

Topics

Creating Function Objects

struct CGFunctionCallbacks

A structure that contains callbacks needed by a CGFunctionRef object.

typealias CGFunctionEvaluateCallback

Performs custom operations on the supplied input data to produce output data.

typealias CGFunctionReleaseInfoCallback

Performs custom clean-up tasks when Core Graphics deallocates a CGFunctionRef object.

Working with Core Foundation Types

class var typeID: CFTypeID

Returns the type identifier for Core Graphics function objects.

See Also

Utility and Support Classes

class CGDataConsumer

An abstraction for data-writing tasks that eliminates the need to manage a raw memory buffer.

class CGDataProvider

An abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer.

class CGShading

A definition for a smooth transition between colors, controlled by a custom function you provide, for drawing radial and axial gradient fills.

class CGGradient

A definition for a smooth transition between colors for drawing radial and axial gradient fills.

class CGPattern

A 2D pattern to be used for drawing graphics paths.