CTRunDelegateCreate(_:_:)
Creates an immutable instance of a run delegate.
Declaration
func CTRunDelegateCreate(_ callbacks: UnsafePointer<CTRunDelegateCallbacks>, _ refCon: UnsafeMutableRawPointer?) -> CTRunDelegate?Parameters
- callbacks:
A structure holding pointers to the callbacks for this run delegate.
- refCon:
A constant value associated with the run delegate to identify it.
Return Value
If successful, a reference to an immutable CTRunDelegate object. Otherwise, returns NULL.
Discussion
The run-delegate object can be used for reserving space in a line or for eliding the glyphs for a range of text altogether.