[Previous] [Up] [Next]

NSLayoutManager

Authors

Richard Frith-Macdonald

Version: 0.1

Date: 28 February, 2000

NSLayoutManager

NSLayoutManager

Declared in: Gui/NSLayoutManager.h

Inherits from: NSObject

Conforms to: NSObject



addTextContainer:

- (void) addTextContainer: (NSTextContainer*)aTextContainer

backgroundLayoutEnabled

- (BOOL) backgroundLayoutEnabled

boundingRectForGlyphRange:inTextContainer:

- (NSRect) boundingRectForGlyphRange: (NSRange)glyphRange inTextContainer: (NSTextContainer*)aTextContainer

characterIndexForGlyphAtIndex:

- (unsigned int) characterIndexForGlyphAtIndex: (unsigned int)glyphIndex

characterRangeForGlyphRange:actualGlyphRange:

- (NSRange) characterRangeForGlyphRange: (NSRange)glyphRange actualGlyphRange: (NSRange*)actualGlyphRange

delegate

- (id) delegate

deleteGlyphsInRange:

- (void) deleteGlyphsInRange: (NSRange)glyphRange

drawBackgroundForGlyphRange:

- (void) drawBackgroundForGlyphRange: (NSRange)glyphRange

drawGlyphsForGlyphRange:

- (void) drawGlyphsForGlyphRange: (NSRange)glyphRange

drawsOutsideLineFragmentForGlyphAtIndex:

- (BOOL) drawsOutsideLineFragmentForGlyphAtIndex: (unsigned int)glyphIndex

drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:

- (void) drawUnderlineForGlyphRange: (NSRange)glyphRange underlineType: (int)underlineType baselineOffset: (float)baselineOffset lineFragmentRect: (NSRect)lineRect lineFragmentGlyphRange: (NSRange)lineGlyphRange containerOrigin: (NSPoint)containerOrigin

extraLineFragmentRect

- (NSRect) extraLineFragmentRect

extraLineFragmentTextContainer

- (NSTextContainer*) extraLineFragmentTextContainer

extraLineFragmentUsedRect

- (NSRect) extraLineFragmentUsedRect

firstTextView

- (NSTextView*) firstTextView

firstUnlaidCharacterIndex

- (unsigned int) firstUnlaidCharacterIndex

firstUnlaidGlyphIndex

- (unsigned int) firstUnlaidGlyphIndex

fractionOfDistanceThroughGlyphForPoint:inTextContainer:

- (float) fractionOfDistanceThroughGlyphForPoint: (NSPoint)aPoint inTextContainer: (NSTextContainer*)aTextContainer

getFirstUnlaidCharacterIndex:glyphIndex:

- (void) getFirstUnlaidCharacterIndex: (unsigned int*)charIndex glyphIndex: (unsigned int*)glyphIndex

getGlyphs:

- (unsigned int) getGlyphs: (NSGlyph*)glyphArray

glyphAtIndex:

- (NSGlyph) glyphAtIndex: (unsigned int)glyphIndex

glyphAtIndex:isValidIndex:

- (NSGlyph) glyphAtIndex: (unsigned int)glyphIndex isValidIndex: (BOOL*)flag

glyphIndexForPoint:inTextContainer:

- (unsigned int) glyphIndexForPoint: (NSPoint)aPoint inTextContainer: (NSTextContainer*)aTextContainer

glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:

- (unsigned int) glyphIndexForPoint: (NSPoint)aPoint inTextContainer: (NSTextContainer*)aTextContainer fractionOfDistanceThroughGlyph: (float*)partialFraction

glyphRangeForBoundingRect:inTextContainer:

- (NSRange) glyphRangeForBoundingRect: (NSRect)aRect inTextContainer: (NSTextContainer*)aTextContainer

glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:

- (NSRange) glyphRangeForBoundingRectWithoutAdditionalLayout: (NSRect)bounds inTextContainer: (NSTextContainer*)container

glyphRangeForCharacterRange:actualCharacterRange:

- (NSRange) glyphRangeForCharacterRange: (NSRange)charRange actualCharacterRange: (NSRange*)actualCharRange

glyphRangeForTextContainer:

- (NSRange) glyphRangeForTextContainer: (NSTextContainer*)aTextContainer

hyphenationFactor

- (float) hyphenationFactor

init

- (id) init

insertGlyph:atGlyphIndex:characterIndex:

- (void) insertGlyph: (NSGlyph)aGlyph atGlyphIndex: (unsigned int)glyphIndex characterIndex: (unsigned int)charIndex

insertTextContainer:

- (void) insertTextContainer: (NSTextContainer*)aTextContainer

intAttribute:forGlyphAtIndex:

- (int) intAttribute: (int)attributeTag forGlyphAtIndex: (unsigned int)glyphIndex

invalidateDisplayForCharacterRange:

- (void) invalidateDisplayForCharacterRange: (NSRange)charRange

invalidateDisplayForGlyphRange:

- (void) invalidateDisplayForGlyphRange: (NSRange)glyphRange

invalidateGlyphsForCharacterRange:changeInLength:actualCharacterRange:

- (void) invalidateGlyphsForCharacterRange: (NSRange)charRange changeInLength: (int)lengthChange actualCharacterRange: (NSRange*)actualCharRange

invalidateLayoutForCharacterRange:isSoft:actualCharacterRange:

- (void) invalidateLayoutForCharacterRange: (NSRange)charRange isSoft: (BOOL)flag actualCharacterRange: (NSRange*)actualCharRange

isValidGlyphIndex:

- (BOOL) isValidGlyphIndex: (unsigned int)glyphIndex

layoutManagerOwnsFirstResponderInWindow:

- (BOOL) layoutManagerOwnsFirstResponderInWindow: (NSWindow*)aWindow

lineFragmentRectForGlyphAtIndex:effectiveRange:

- (NSRect) lineFragmentRectForGlyphAtIndex: (unsigned int)glyphIndex effectiveRange: (NSRange*)lineFragmentRange

lineFragmentUsedRectForGlyphAtIndex:effectiveRange:

- (NSRect) lineFragmentUsedRectForGlyphAtIndex: (unsigned int)glyphIndex effectiveRange: (NSRange*)lineFragmentRange

locationForGlyphAtIndex:

- (NSPoint) locationForGlyphAtIndex: (unsigned int)glyphIndex

notShownAttributeForGlyphAtIndex:

- (BOOL) notShownAttributeForGlyphAtIndex: (unsigned int)glyphIndex

numberOfGlyphs

- (unsigned int) numberOfGlyphs

rangeOfNominallySpacedGlyphsContainingIndex:

- (NSRange) rangeOfNominallySpacedGlyphsContainingIndex: (unsigned int)glyphIndex

rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:

- (NSRect*) rectArrayForCharacterRange: (NSRange)charRange withinSelectedCharacterRange: (NSRange)selCharRange inTextContainer: (NSTextContainer*)aTextContainer

rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:

- (NSRect*) rectArrayForGlyphRange: (NSRange)glyphRange withinSelectedGlyphRange: (NSRange)selGlyphRange inTextContainer: (NSTextContainer*)aTextContainer

removeTextContainerAtIndex:

- (void) removeTextContainerAtIndex: (unsigned int)index

replaceGlyphAtIndex:

- (void) replaceGlyphAtIndex: (unsigned int)glyphIndex

replaceTextStorage:

- (void) replaceTextStorage: (NSTextStorage*)newTextStorage

rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:

- (NSView*) rulerAccessoryViewForTextView: (NSTextView*)aTextView paragraphStyle: (NSParagraphStyle*)paraStyle ruler: (NSRulerView *)aRulerView enabled: (BOOL)flag

rulerMarkersForTextView:paragraphStyle:

- (NSArray*) rulerMarkersForTextView: (NSTextView*)aTextView paragraphStyle: (NSParagraphStyle*)paraStyle

setBackgroundLayoutEnabled:

- (void) setBackgroundLayoutEnabled: (BOOL)flag

setCharacterIndex:forGlyphAtIndex:

- (void) setCharacterIndex: (unsigned int)charIndex forGlyphAtIndex: (unsigned int)glyphIndex

setDelegate:

- (void) setDelegate: (id)anObject

setDrawsOutsideLineFragment:forGlyphAtIndex:

- (void) setDrawsOutsideLineFragment: (BOOL)flag forGlyphAtIndex: (unsigned int)glyphIndex

setExtraLineFragmentRect:usedRect:textContainer:

- (void) setExtraLineFragmentRect: (NSRect)aRect usedRect: (NSRect)usedRect textContainer: (NSTextContainer*)aTextContainer

setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor

setIntAttribute:value:forGlyphAtIndex:

- (void) setIntAttribute: (int)attributeTag value: (int)anInt forGlyphAtIndex: (unsigned int)glyphIndex

setLineFragmentRect:forGlyphRange:

- (void) setLineFragmentRect: (NSRect)fragmentRect forGlyphRange: (NSRange)glyphRange

setLocation:forStartOfGlyphRange:

- (void) setLocation: (NSPoint)aPoint forStartOfGlyphRange: (NSRange)glyphRange

setNotShownAttribute:forGlyphAtIndex:

- (void) setNotShownAttribute: (BOOL)flag forGlyphAtIndex: (unsigned int)glyphIndex

setShowsControlCharacters:

- (void) setShowsControlCharacters: (BOOL)flag

setShowsInvisibleCharacters:

- (void) setShowsInvisibleCharacters: (BOOL)flag

setTextContainer:

- (void) setTextContainer: (NSTextContainer*)aTextContainer

setTextStorage:

- (void) setTextStorage: (NSTextStorage*)textStorage

setUsesScreenFonts:

- (void) setUsesScreenFonts: (BOOL)flag

showAttachmentCell:inRect:characterIndex:

- (void) showAttachmentCell: (NSCell*)cell inRect: (NSRect)rect characterIndex: (unsigned int)attachmentIndex;

showsControlCharacters

- (BOOL) showsControlCharacters

showsInvisibleCharacters

- (BOOL) showsInvisibleCharacters

substituteFontForFont:

- (NSFont*) substituteFontForFont: (NSFont*)originalFont

textContainerChangedGeometry:

- (void) textContainerChangedGeometry: (NSTextContainer*)aTextContainer

textContainerChangedTextView:

- (void) textContainerChangedTextView: (NSTextContainer*)aTextContainer

textContainerForGlyphAtIndex:effectiveRange:

- (NSTextContainer*) textContainerForGlyphAtIndex: (unsigned int)glyphIndex effectiveRange: (NSRange*)effectiveGlyphRange

textContainers

- (NSArray*) textContainers

textStorage

- (NSTextStorage*) textStorage

textStorage:edited:range:changeInLength:invalidatedRange:

- (void) textStorage: (NSTextStorage*)aTextStorage edited: (unsigned int)mask range: (NSRange)range changeInLength: (int)lengthChange invalidatedRange: (NSRange)invalidatedCharRange

textViewForBeginningOfSelection

- (NSTextView*) textViewForBeginningOfSelection

underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:

- (void) underlineGlyphRange: (NSRange)glyphRange underlineType: (int)underlineType lineFragmentRect: (NSRect)lineRect lineFragmentGlyphRange: (NSRange)lineGlyphRange containerOrigin: (NSPoint)containerOrigin

usedRectForTextContainer:

- (NSRect) usedRectForTextContainer: (NSTextContainer*)aTextContainer

usesScreenFonts

- (BOOL) usesScreenFonts

layoutManager:didCompleteLayoutForTextContainer:

- (void) layoutManager: (NSLayoutManager*)aLayoutManager didCompleteLayoutForTextContainer: (NSTextContainer*)aTextContainer

layoutManagerDidInvalidateLayout:

- (void) layoutManagerDidInvalidateLayout: (NSLayoutManager*)aLayoutManager