---
title: CTRunDelegateCallbacks
framework: coretext
role: symbol
role_heading: Structure
path: coretext/ctrundelegatecallbacks
---

# CTRunDelegateCallbacks

A structure holding pointers to callbacks implemented by the run delegate.

## Declaration

```swift
struct CTRunDelegateCallbacks
```

## Overview

Overview You pass in a pointer to this structure when you create a CTRunDelegate object with the CTRunDelegateCreate(_:_:) function. The callbacks defined in this structure are provided by the owner of a run delegate and are used to modify glyph metrics during layout. The values returned by the delegate are applied to each glyph in the run or runs corresponding to the attribute containing that delegate. See CTRunDelegate for a discussion of the function-pointer types associated with these callbacks.

## Topics

### Initializers

- [init(version:dealloc:getAscent:getDescent:getWidth:)](coretext/ctrundelegatecallbacks/init(version:dealloc:getascent:getdescent:getwidth:).md)

### Instance Properties

- [dealloc](coretext/ctrundelegatecallbacks/dealloc.md)
- [getAscent](coretext/ctrundelegatecallbacks/getascent.md)
- [getDescent](coretext/ctrundelegatecallbacks/getdescent.md)
- [getWidth](coretext/ctrundelegatecallbacks/getwidth.md)
- [version](coretext/ctrundelegatecallbacks/version.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Sendable](swift/sendable.md)
