<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGFunctionCallbacks",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@S@CGFunctionCallbacks"
  },
  "title" : "CGFunctionCallbacks"
}
-->

# CGFunctionCallbacks

A structure that contains callbacks needed by a `CGFunctionRef` object.

```
struct CGFunctionCallbacks
```

## Topics

### Initializers

[`init()`](/documentation/CoreGraphics/CGFunctionCallbacks/init())

[`init(version:evaluate:releaseInfo:)`](/documentation/CoreGraphics/CGFunctionCallbacks/init(version:evaluate:releaseInfo:))

### Instance Properties

[`evaluate`](/documentation/CoreGraphics/CGFunctionCallbacks/evaluate)

The callback that evaluates the function.

[`releaseInfo`](/documentation/CoreGraphics/CGFunctionCallbacks/releaseInfo)

If non-`NULL`,the callback used to release the `info` parameterpassed to [`init(info:domainDimension:domain:rangeDimension:range:callbacks:)`](/documentation/CoreGraphics/CGFunction/init(info:domainDimension:domain:rangeDimension:range:callbacks:)).

[`version`](/documentation/CoreGraphics/CGFunctionCallbacks/version)

The structure version number. For this structure,the version should be `0`.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)