Up

# NSLayoutManager class documentation

### Authors

Generated by root

### Contents -

1. Software documentation for the NSLayoutManager class
2. Software documentation for the NSLayoutManager(drawing) category
3. Software documentation for the NSLayoutManager(layout) category

# Software documentation for the NSLayoutManager class

## NSLayoutManager : GSLayoutManager

> Declared in:
>   AppKit/NSLayoutManager.h

> Standards:
> - MacOS-X
> - OpenStep
> - GNUstep

Description forthcoming.

### Instance variables

### _beganEditing

@public BOOL _beganEditing;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _isSynchronizingDelegates

@public BOOL _isSynchronizingDelegates;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _isSynchronizingFlags

@public BOOL _isSynchronizingFlags;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _original_selected_range

@public NSRange _original_selected_range;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _selected_range

@public NSRange _selected_range;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _selectionAffinity

@public NSSelectionAffinity _selectionAffinity;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _selectionGranularity

@public NSSelectionGranularity _selectionGranularity;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _typingAttributes

@public NSMutableDictionary* _typingAttributes;

Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

Method summary

- -drawBackgroundForGlyphRange:atPoint:
- -drawGlyphsForGlyphRange:atPoint:
- -boundingRectForGlyphRange:inTextContainer:
- -characterIndexMoving:fromCharacterIndex:originalCharacterIndex:distance:
- -glyphIndexForPoint:inTextContainer:
- -glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:
- -glyphRangeForBoundingRect:inTextContainer:
- -glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:
- -insertionPointRectForCharacterIndex:inTextContainer:
- -locationForGlyphAtIndex:
- -rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:
- -rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:
- -textContainerChangedTextView:
- -firstTextView
- -hyphenationFactor
- -invalidateDisplayForCharacterRange:
- -invalidateDisplayForGlyphRange:
- -layoutManagerOwnsFirstResponderInWindow:
- -rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:
- -rulerMarkersForTextView:paragraphStyle:ruler:
- -setHyphenationFactor:
- -textViewForBeginningOfSelection

### firstTextView

- (NSTextView*) firstTextView;

Description forthcoming.

### hyphenationFactor

- (float) hyphenationFactor;

Description forthcoming.

### invalidateDisplayForCharacterRange:

- (void) invalidateDisplayForCharacterRange: (NSRange)aRange;

Description forthcoming.

### invalidateDisplayForGlyphRange:

- (void) invalidateDisplayForGlyphRange: (NSRange)aRange;

Description forthcoming.

### layoutManagerOwnsFirstResponderInWindow:

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

Description forthcoming.

### rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:

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

Description forthcoming.

### rulerMarkersForTextView:paragraphStyle:ruler:

- (NSArray*) rulerMarkersForTextView: (NSTextView*)textView paragraphStyle: (NSParagraphStyle*)paragraphStyle ruler: (NSRulerView*)aRulerView;

Description forthcoming.

### setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor;

Description forthcoming.

### textViewForBeginningOfSelection

- (NSTextView*) textViewForBeginningOfSelection;

Description forthcoming.

# Software documentation for the NSLayoutManager(drawing) category

## NSLayoutManager(drawing)

> Declared in:
>   AppKit/NSLayoutManager.h

> Standards:
> - MacOS-X
> - OpenStep
> - GNUstep

Description forthcoming.

Method summary

- -drawBackgroundForGlyphRange:atPoint:
- -drawGlyphsForGlyphRange:atPoint:

### drawBackgroundForGlyphRange:atPoint:

- (void) drawBackgroundForGlyphRange: (NSRange)range atPoint: (NSPoint)containerOrigin;

Drawing

### drawGlyphsForGlyphRange:atPoint:

- (void) drawGlyphsForGlyphRange: (NSRange)range atPoint: (NSPoint)containerOrigin;

Description forthcoming.

# Software documentation for the NSLayoutManager(layout) category

## NSLayoutManager(layout)

> Declared in:
>   AppKit/NSLayoutManager.h

> Standards:
> - MacOS-X
> - OpenStep
> - GNUstep

Description forthcoming.

Method summary

- -boundingRectForGlyphRange:inTextContainer:
- -characterIndexMoving:fromCharacterIndex:originalCharacterIndex:distance:
- -glyphIndexForPoint:inTextContainer:
- -glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:
- -glyphRangeForBoundingRect:inTextContainer:
- -glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:
- -insertionPointRectForCharacterIndex:inTextContainer:
- -locationForGlyphAtIndex:
- -rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:
- -rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:
- -textContainerChangedTextView:

### boundingRectForGlyphRange:inTextContainer:

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

Description forthcoming.

### characterIndexMoving:fromCharacterIndex:originalCharacterIndex:distance:

- (unsigned int) characterIndexMoving: (GSInsertionPointMovementDirection)direction fromCharacterIndex: (unsigned int)from originalCharacterIndex: (unsigned int)original distance: (float)distance;

Description forthcoming.

### glyphIndexForPoint:inTextContainer:

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

Description forthcoming.

### glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:

- (unsigned int) glyphIndexForPoint: (NSPoint)point inTextContainer: (NSTextContainer*)container fractionOfDistanceThroughGlyph: (float*)partialFraction;

Description forthcoming.

### glyphRangeForBoundingRect:inTextContainer:

- (NSRange) glyphRangeForBoundingRect: (NSRect)bounds inTextContainer: (NSTextContainer*)container;

Description forthcoming.

### glyphRangeForBoundingRectWithoutAdditionalLayout:inTextContainer:

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

Description forthcoming.

### insertionPointRectForCharacterIndex:inTextContainer:

- (NSRect) insertionPointRectForCharacterIndex: (unsigned int)cindex inTextContainer: (NSTextContainer*)textContainer;

Description forthcoming.

### locationForGlyphAtIndex:

- (NSPoint) locationForGlyphAtIndex: (unsigned int)glyphIndex;

Description forthcoming.

### rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:

- (NSRect*) rectArrayForCharacterRange: (NSRange)charRange withinSelectedCharacterRange: (NSRange)selCharRange inTextContainer: (NSTextContainer*)container rectCount: (unsigned int*)rectCount;

Description forthcoming.

### rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount:

- (NSRect*) rectArrayForGlyphRange: (NSRange)glyphRange withinSelectedGlyphRange: (NSRange)selGlyphRange inTextContainer: (NSTextContainer*)container rectCount: (unsigned int*)rectCount;

Description forthcoming.

### textContainerChangedTextView:

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

Description forthcoming.

Up