attachmentSize(forGlyphAt:)
Returns the size of the attachment glyph at the specified index.
Declaration
func attachmentSize(forGlyphAt glyphIndex: Int) -> NSSizeParameters
- glyphIndex:
The index of the attachment glyph.
Return Value
The layout manager calls this method for glyphs representing attachments, and returns the size that the attachment cell occupies. Returns {-1.0, -1.0} if there is no attachment laid for the specified glyph.
See Also
Getting layout information
drawsOutsideLineFragment(forGlyphAt:)extraLineFragmentRectextraLineFragmentTextContainerextraLineFragmentUsedRectfirstUnlaidCharacterIndex()firstUnlaidGlyphIndex()getFirstUnlaidCharacterIndex(_:glyphIndex:)lineFragmentRect(forGlyphAt:effectiveRange:)lineFragmentRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)lineFragmentUsedRect(forGlyphAt:effectiveRange:)lineFragmentUsedRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)location(forGlyphAt:)notShownAttribute(forGlyphAt:)truncatedGlyphRange(inLineFragmentForGlyphAt:)