Up

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.


Contents -

  1. Software documentation for the NSLayoutManager class
  2. Software documentation for the NSLayoutManager(NSTextViewSupport) category
  3. Software documentation for the NSObject(NSLayoutManagerDelegate) category

Software documentation for the NSLayoutManager class

NSLayoutManager : NSObject

Declared in:
AppKit/NSLayoutManager.h
Standards:

Description forthcoming.

Method summary

addTextContainer:

- (void) addTextContainer: (NSTextContainer*)obj;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


backgroundLayoutEnabled

- (BOOL) backgroundLayoutEnabled;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


boundingRectForGlyphRange:inTextContainer:

- (NSRect) boundingRectForGlyphRange: (NSRange)glyphRange inTextContainer: (NSTextContainer*)aTextContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


characterIndexForGlyphAtIndex:

- (unsigned) characterIndexForGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


characterRangeForGlyphRange:actualGlyphRange:

- (NSRange) characterRangeForGlyphRange: (NSRange)glyphRange actualGlyphRange: (NSRange*)actualGlyphRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


delegate

- (id) delegate;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


deleteGlyphsInRange:

- (void) deleteGlyphsInRange: (NSRange)aRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


drawsOutsideLineFragmentForGlyphAtIndex:

- (BOOL) drawsOutsideLineFragmentForGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


extraLineFragmentRect

- (NSRect) extraLineFragmentRect;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


extraLineFragmentTextContainer

- (NSTextContainer*) extraLineFragmentTextContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


extraLineFragmentUsedRect

- (NSRect) extraLineFragmentUsedRect;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


firstUnlaidCharacterIndex

- (unsigned) firstUnlaidCharacterIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


firstUnlaidGlyphIndex

- (unsigned) firstUnlaidGlyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


getFirstUnlaidCharacterIndex:glyphIndex:

- (void) getFirstUnlaidCharacterIndex: (unsigned*)charIndex glyphIndex: (unsigned*)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


getGlyphs:range:

- (unsigned) getGlyphs: (NSGlyph*)glyphArray range: (NSRange)glyphRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphAtIndex:

- (NSGlyph) glyphAtIndex: (unsigned)index;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphAtIndex:isValidIndex:

- (NSGlyph) glyphAtIndex: (unsigned)index isValidIndex: (BOOL*)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphIndexForPoint:inTextContainer:

- (unsigned) glyphIndexForPoint: (NSPoint)aPoint inTextContainer: (NSTextContainer*)aTextContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:

- (unsigned) glyphIndexForPoint: (NSPoint)aPoint inTextContainer: (NSTextContainer*)aTextContainer fractionOfDistanceThroughGlyph: (float*)partialFraction;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphRangeForBoundingRect:inTextContainer:

- (NSRange) glyphRangeForBoundingRect: (NSRect)aRect inTextContainer: (NSTextContainer*)aTextContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:

- (NSRange) glyphRangeForBoundingRectWithoutAdditionalLayout: (NSRect)bounds inTextContainer: (NSTextContainer*)aTextContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphRangeForCharacterRange:actualCharacterRange:

- (NSRange) glyphRangeForCharacterRange: (NSRange)charRange actualCharacterRange: (NSRange*)actualCharRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


glyphRangeForTextContainer:

- (NSRange) glyphRangeForTextContainer: (NSTextContainer*)aTextContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


init

- (id) init;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


insertGlyph:atGlyphIndex:characterIndex:

- (void) insertGlyph: (NSGlyph)aGlyph atGlyphIndex: (unsigned)glyphIndex characterIndex: (unsigned)charIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


insertTextContainer:atIndex:

- (void) insertTextContainer: (NSTextContainer*)aTextContainer atIndex: (unsigned)index;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


intAttribute:forGlyphAtIndex:

- (int) intAttribute: (int)attribute forGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


invalidateDisplayForCharacterRange:

- (void) invalidateDisplayForCharacterRange: (NSRange)aRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


invalidateDisplayForGlyphRange:

- (void) invalidateDisplayForGlyphRange: (NSRange)aRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


invalidateGlyphsForCharacterRange:changeInLength:actualCharacterRange:

- (void) invalidateGlyphsForCharacterRange: (NSRange)aRange changeInLength: (int)lengthChange actualCharacterRange: (NSRange*)actualRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


invalidateLayoutForCharacterRange:isSoft:actualCharacterRange:

- (void) invalidateLayoutForCharacterRange: (NSRange)aRange isSoft: (BOOL)flag actualCharacterRange: (NSRange*)actualRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


lineFragmentRectForGlyphAtIndex:effectiveRange:

- (NSRect) lineFragmentRectForGlyphAtIndex: (unsigned)glyphIndex effectiveRange: (NSRange*)lineFragmentRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


lineFragmentUsedRectForGlyphAtIndex:effectiveRange:

- (NSRect) lineFragmentUsedRectForGlyphAtIndex: (unsigned)glyphIndex effectiveRange: (NSRange*)lineFragmentRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


locationForGlyphAtIndex:

- (NSPoint) locationForGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


notShownAttributeForGlyphAtIndex:

- (BOOL) notShownAttributeForGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


numberOfGlyphs

- (unsigned) numberOfGlyphs;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


rangeOfNominallySpacedGlyphsContainingIndex:

- (NSRange) rangeOfNominallySpacedGlyphsContainingIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:

- (NSRect*) rectArrayForCharacterRange: (NSRange)charRange withinSelectedCharacterRange: (NSRange)selChareRange inTextContainer: (NSTextContainer*)aTextContainer rectCount: (unsigned*)rectCount;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:

- (NSRect*) rectArrayForGlyphRange: (NSRange)glyphRange withinSelectedGlyphRange: (NSRange)selectedGlyphRange inTextContainer: (NSTextContainer*)aTextContainer rectCount: (unsigned*)rectCount;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


removeTextContainerAtIndex:

- (void) removeTextContainerAtIndex: (unsigned)index;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


replaceGlyphAtIndex:withGlyph:

- (void) replaceGlyphAtIndex: (unsigned)index withGlyph: (NSGlyph)newGlyph;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


replaceTextStorage:

- (void) replaceTextStorage: (NSTextStorage*)newTextStorage;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setAttachmentSize:forGlyphRange:

- (void) setAttachmentSize: (NSSize)attachmentSize forGlyphRange: (NSRange)glyphRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setBackgroundLayoutEnabled:

- (void) setBackgroundLayoutEnabled: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setCharacterIndex:forGlyphAtIndex:

- (void) setCharacterIndex: (unsigned)charIndex forGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setDelegate:

- (void) setDelegate: (id)aDelegate;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setDrawsOutsideLineFragment:forGlyphAtIndex:

- (void) setDrawsOutsideLineFragment: (BOOL)flag forGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setExtraLineFragmentRect:usedRect:textContainer:

- (void) setExtraLineFragmentRect: (NSRect)aRect usedRect: (NSRect)usedRect textContainer: (NSTextContainer*)aTextContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setIntAttribute:value:forGlyphAtIndex:

- (void) setIntAttribute: (int)attribute value: (int)anInt forGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setLineFragmentRect:forGlyphRange:usedRect:

- (void) setLineFragmentRect: (NSRect)fragmentRect forGlyphRange: (NSRange)glyphRange usedRect: (NSRect)usedRect;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setLocation:forStartOfGlyphRange:

- (void) setLocation: (NSPoint)aPoint forStartOfGlyphRange: (NSRange)glyphRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setNotShownAttribute:forGlyphAtIndex:

- (void) setNotShownAttribute: (BOOL)flag forGlyphAtIndex: (unsigned)glyphIndex;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setShowsControlCharacters:

- (void) setShowsControlCharacters: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setShowsInvisibleCharacters:

- (void) setShowsInvisibleCharacters: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setTextContainer:forGlyphRange:

- (void) setTextContainer: (NSTextContainer*)aTextContainer forGlyphRange: (NSRange)glyphRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setTextStorage:

- (void) setTextStorage: (NSTextStorage*)aTextStorage;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setUsesScreenFonts:

- (void) setUsesScreenFonts: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


showsControlCharacters

- (BOOL) showsControlCharacters;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


showsInvisibleCharacters

- (BOOL) showsInvisibleCharacters;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


substituteFontForFont:

- (NSFont*) substituteFontForFont: (NSFont*)originalFont;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


textContainerChangedGeometry:

- (void) textContainerChangedGeometry: (NSTextContainer*)aContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


textContainerChangedTextView:

- (void) textContainerChangedTextView: (NSTextContainer*)aContainer;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


textContainerForGlyphAtIndex:effectiveRange:

- (NSTextContainer*) textContainerForGlyphAtIndex: (unsigned)glyphIndex effectiveRange: (NSRange*)effectiveRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


textContainers

- (NSArray*) textContainers;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


textStorage

- (NSTextStorage*) textStorage;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


textStorage:edited:range:changeInLength:invalidatedRange:

- (void) textStorage: (NSTextStorage*)aTextStorage edited: (unsigned)mask range: (NSRange)range changeInLength: (int)lengthChange invalidatedRange: (NSRange)invalidatedRange;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


usedRectForTextContainer:

- (NSRect) usedRectForTextContainer: (NSTextContainer*)container;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


usesScreenFonts

- (BOOL) usesScreenFonts;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


Software documentation for the NSLayoutManager(NSTextViewSupport) category

NSLayoutManager(NSTextViewSupport)

Declared in:
AppKit/NSLayoutManager.h
Standards:

Description forthcoming.

Method summary

_charIndexForInsertionPointMovingFromY:bestX:up:textContainer:

- (unsigned) _charIndexForInsertionPointMovingFromY: (float)position bestX: (float)wanted up: (BOOL)upFlag textContainer: (NSTextContainer*)tc;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


drawBackgroundForGlyphRange:atPoint:

- (void) drawBackgroundForGlyphRange: (NSRange)glyphsToShow atPoint: (NSPoint)origin;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


drawGlyphsForGlyphRange:atPoint:

- (void) drawGlyphsForGlyphRange: (NSRange)glyphsToShow atPoint: (NSPoint)origin;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


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;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


firstTextView

- (NSTextView*) firstTextView;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


hyphenationFactor

- (float) hyphenationFactor;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


layoutManagerOwnsFirstResponderInWindow:

- (BOOL) layoutManagerOwnsFirstResponderInWindow: (NSWindow*)window;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:

- (NSView*) rulerAccessoryViewForTextView: (NSTextView*)view paragraphStyle: (NSParagraphStyle*)style ruler: (NSRulerView*)ruler enabled: (BOOL)isEnabled;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


rulerMarkersForTextView:paragraphStyle:ruler:

- (NSArray*) rulerMarkersForTextView: (NSTextView*)view paragraphStyle: (NSParagraphStyle*)style ruler: (NSRulerView*)ruler;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


textViewForBeginningOfSelection

- (NSTextView*) textViewForBeginningOfSelection;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


underlineGlyphRange:underlineType:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:

- (void) underlineGlyphRange: (NSRange)glyphRange underlineType: (int)underlineVal lineFragmentRect: (NSRect)lineRect lineFragmentGlyphRange: (NSRange)lineGlyphRange containerOrigin: (NSPoint)containerOrigin;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


Software documentation for the NSObject(NSLayoutManagerDelegate) category

NSObject(NSLayoutManagerDelegate)

Declared in:
AppKit/NSLayoutManager.h
Standards:

Description forthcoming.

Method summary

layoutManager:didCompleteLayoutForTextContainer:atEnd:

- (void) layoutManager: (NSLayoutManager*)layoutManager didCompleteLayoutForTextContainer: (NSTextContainer*)textContainer atEnd: (BOOL)layoutFinishedFlag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


layoutManagerDidInvalidateLayout:

- (void) layoutManagerDidInvalidateLayout: (NSLayoutManager*)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.



Up