Contents

attachmentSize(forGlyphAt:)

Returns the size of the attachment glyph at the specified index.

Declaration

func attachmentSize(forGlyphAt glyphIndex: Int) -> NSSize

Parameters

  • 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