NSLayoutManager

Authors

Jonathan Gapen( jagapen@smithlab.chem.wisc.edu )
Michael Hanni( mhanni@sprintmail.com )
The text layout manager class

Copyright: (C) 1999 Free Software Foundation, Inc.

Software documentation for the NSLayoutManager class

NSLayoutManager : NSObject

Declared: AppKit/NSLayoutManager.h

addTextContainer:

- (void) addTextContainer: (NSTextContainer*)obj;


backgroundLayoutEnabled

- (BOOL) backgroundLayoutEnabled;


boundingRectForGlyphRange:inTextContainer:

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


characterIndexForGlyphAtIndex:

- (unsigned) characterIndexForGlyphAtIndex: (unsigned)glyphIndex;


characterRangeForGlyphRange:actualGlyphRange:

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


delegate

- (id) delegate;


deleteGlyphsInRange:

- (void) deleteGlyphsInRange: (NSRange)aRange;


drawsOutsideLineFragmentForGlyphAtIndex:

- (BOOL) drawsOutsideLineFragmentForGlyphAtIndex: (unsigned)glyphIndex;


extraLineFragmentRect

- (NSRect) extraLineFragmentRect;


extraLineFragmentTextContainer

- (NSTextContainer*) extraLineFragmentTextContainer;


extraLineFragmentUsedRect

- (NSRect) extraLineFragmentUsedRect;


firstUnlaidCharacterIndex

- (unsigned) firstUnlaidCharacterIndex;


firstUnlaidGlyphIndex

- (unsigned) firstUnlaidGlyphIndex;


getFirstUnlaidCharacterIndex:glyphIndex:

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


getGlyphs:range:

- (unsigned) getGlyphs: (NSGlyph*)glyphArray range: (NSRange)glyphRange;


glyphAtIndex:

- (NSGlyph) glyphAtIndex: (unsigned)index;


glyphAtIndex:isValidIndex:

- (NSGlyph) glyphAtIndex: (unsigned)index isValidIndex: (BOOL*)flag;


glyphIndexForPoint:inTextContainer:

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


glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:

- (unsigned) 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*)aTextContainer;


glyphRangeForCharacterRange:actualCharacterRange:

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


glyphRangeForTextContainer:

- (NSRange) glyphRangeForTextContainer: (NSTextContainer*)aTextContainer;


init

- (id) init;


insertGlyph:atGlyphIndex:characterIndex:

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


insertTextContainer:atIndex:

- (void) insertTextContainer: (NSTextContainer*)aTextContainer atIndex: (unsigned)index;


intAttribute:forGlyphAtIndex:

- (int) intAttribute: (int)attribute forGlyphAtIndex: (unsigned)glyphIndex;


invalidateDisplayForCharacterRange:

- (void) invalidateDisplayForCharacterRange: (NSRange)aRange;


invalidateDisplayForGlyphRange:

- (void) invalidateDisplayForGlyphRange: (NSRange)aRange;


invalidateGlyphsForCharacterRange:changeInLength:actualCharacterRange:

- (void) invalidateGlyphsForCharacterRange: (NSRange)aRange changeInLength: (int)lengthChange actualCharacterRange: (NSRange*)actualRange;


invalidateLayoutForCharacterRange:isSoft:actualCharacterRange:

- (void) invalidateLayoutForCharacterRange: (NSRange)aRange isSoft: (BOOL)flag actualCharacterRange: (NSRange*)actualRange;


lineFragmentRectForGlyphAtIndex:effectiveRange:

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


lineFragmentUsedRectForGlyphAtIndex:effectiveRange:

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


locationForGlyphAtIndex:

- (NSPoint) locationForGlyphAtIndex: (unsigned)glyphIndex;


notShownAttributeForGlyphAtIndex:

- (BOOL) notShownAttributeForGlyphAtIndex: (unsigned)glyphIndex;


numberOfGlyphs

- (unsigned) numberOfGlyphs;


rangeOfNominallySpacedGlyphsContainingIndex:

- (NSRange) rangeOfNominallySpacedGlyphsContainingIndex: (unsigned)glyphIndex;


rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:

- (NSRect*) rectArrayForCharacterRange: (NSRange)charRange withinSelectedCharacterRange: (NSRange)selChareRange inTextContainer: (NSTextContainer*)aTextContainer rectCount: (unsigned*)rectCount;


rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:

- (NSRect*) rectArrayForGlyphRange: (NSRange)glyphRange withinSelectedGlyphRange: (NSRange)selectedGlyphRange inTextContainer: (NSTextContainer*)aTextContainer rectCount: (unsigned*)rectCount;


removeTextContainerAtIndex:

- (void) removeTextContainerAtIndex: (unsigned)index;


replaceGlyphAtIndex:withGlyph:

- (void) replaceGlyphAtIndex: (unsigned)index withGlyph: (NSGlyph)newGlyph;


replaceTextStorage:

- (void) replaceTextStorage: (NSTextStorage*)newTextStorage;


setAttachmentSize:forGlyphRange:

- (void) setAttachmentSize: (NSSize)attachmentSize forGlyphRange: (NSRange)glyphRange;


setBackgroundLayoutEnabled:

- (void) setBackgroundLayoutEnabled: (BOOL)flag;


setCharacterIndex:forGlyphAtIndex:

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


setDelegate:

- (void) setDelegate: (id)aDelegate;


setDrawsOutsideLineFragment:forGlyphAtIndex:

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


setExtraLineFragmentRect:usedRect:textContainer:

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


setIntAttribute:value:forGlyphAtIndex:

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


setLineFragmentRect:forGlyphRange:usedRect:

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


setLocation:forStartOfGlyphRange:

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


setNotShownAttribute:forGlyphAtIndex:

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


setShowsControlCharacters:

- (void) setShowsControlCharacters: (BOOL)flag;


setShowsInvisibleCharacters:

- (void) setShowsInvisibleCharacters: (BOOL)flag;


setTextContainer:forGlyphRange:

- (void) setTextContainer: (NSTextContainer*)aTextContainer forGlyphRange: (NSRange)glyphRange;


setTextStorage:

- (void) setTextStorage: (NSTextStorage*)aTextStorage;


setUsesScreenFonts:

- (void) setUsesScreenFonts: (BOOL)flag;


showsControlCharacters

- (BOOL) showsControlCharacters;


showsInvisibleCharacters

- (BOOL) showsInvisibleCharacters;


substituteFontForFont:

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


textContainerChangedGeometry:

- (void) textContainerChangedGeometry: (NSTextContainer*)aContainer;


textContainerChangedTextView:

- (void) textContainerChangedTextView: (NSTextContainer*)aContainer;


textContainerForGlyphAtIndex:effectiveRange:

- (NSTextContainer*) textContainerForGlyphAtIndex: (unsigned)glyphIndex effectiveRange: (NSRange*)effectiveRange;


textContainers

- (NSArray*) textContainers;


textStorage

- (NSTextStorage*) textStorage;


textStorage:edited:range:changeInLength:invalidatedRange:

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


usedRectForTextContainer:

- (NSRect) usedRectForTextContainer: (NSTextContainer*)container;


usesScreenFonts

- (BOOL) usesScreenFonts;


Software documentation for the NSLayoutManager(NSTextViewSupport) category

NSLayoutManager(NSTextViewSupport)

Declared: AppKit/NSLayoutManager.h

_charIndexForInsertionPointMovingFromY:bestX:up:textContainer:

- (unsigned) _charIndexForInsertionPointMovingFromY: (float)position bestX: (float)wanted up: (BOOL)upFlag textContainer: (NSTextContainer*)tc;


drawBackgroundForGlyphRange:atPoint:

- (void) drawBackgroundForGlyphRange: (NSRange)glyphsToShow atPoint: (NSPoint)origin;


drawGlyphsForGlyphRange:atPoint:

- (void) drawGlyphsForGlyphRange: (NSRange)glyphsToShow atPoint: (NSPoint)origin;


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

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


firstTextView

- (NSTextView*) firstTextView;


hyphenationFactor

- (float) hyphenationFactor;


layoutManagerOwnsFirstResponderInWindow:

- (BOOL) layoutManagerOwnsFirstResponderInWindow: (NSWindow*)window;


rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:

- (NSView*) rulerAccessoryViewForTextView: (NSTextView*)view paragraphStyle: (NSParagraphStyle*)style ruler: (NSRulerView*)ruler enabled: (BOOL)isEnabled;


rulerMarkersForTextView:paragraphStyle:ruler:

- (NSArray*) rulerMarkersForTextView: (NSTextView*)view paragraphStyle: (NSParagraphStyle*)style ruler: (NSRulerView*)ruler;


setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor;


textViewForBeginningOfSelection

- (NSTextView*) textViewForBeginningOfSelection;


underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:

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


Software documentation for the NSObject(NSLayoutManagerDelegate) category

NSObject(NSLayoutManagerDelegate)

Declared: AppKit/NSLayoutManager.h

layoutManager:didCompleteLayoutForTextContainer:atEnd:

- (void) layoutManager: (NSLayoutManager*)layoutManager didCompleteLayoutForTextContainer: (NSTextContainer*)textContainer atEnd: (BOOL)layoutFinishedFlag;


layoutManagerDidInvalidateLayout:

- (void) layoutManagerDidInvalidateLayout: (NSLayoutManager*)sender;