cellFrame(for:proposedLineFragment:glyphPosition:characterIndex:)
Returns the frame of the cell to draw at the specified position in a text container.
Declaration
nonisolated func cellFrame(for textContainer: NSTextContainer, proposedLineFragment lineFrag: NSRect, glyphPosition position: NSPoint, characterIndex charIndex: Int) -> NSRectParameters
- textContainer:
The text container that contains the glyph.
- lineFrag:
The line fragment that contains the glyph.
- position:
The position of the glyph in the text container.
- charIndex:
The index of the character.
Discussion
The proposed line fragment is specified by lineFrag.