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

Availability: OpenStep
Description forthcoming.

Instance Variables
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;
Availability: OpenStep
Description forthcoming.

### hyphenationFactor

- (float) hyphenationFactor;
Availability: OpenStep
Description forthcoming.

### invalidateDisplayForCharacterRange:

- (void) invalidateDisplayForCharacterRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### invalidateDisplayForGlyphRange:

- (void) invalidateDisplayForGlyphRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### layoutManagerOwnsFirstResponderInWindow:

- (BOOL) layoutManagerOwnsFirstResponderInWindow: (NSWindow*)window;
Availability: OpenStep
Description forthcoming.

### rulerAccessoryViewForTextView: paragraphStyle: ruler: enabled:

- (NSView*) rulerAccessoryViewForTextView: (NSTextView*)textView paragraphStyle: (NSParagraphStyle*)style ruler: (NSRulerView*)ruler enabled: (BOOL)isEnabled;
Availability: OpenStep
Description forthcoming.

### rulerMarkersForTextView: paragraphStyle: ruler:

- (NSArray*) rulerMarkersForTextView: (NSTextView*)textView paragraphStyle: (NSParagraphStyle*)paragraphStyle ruler: (NSRulerView*)aRulerView;
Availability: OpenStep
Description forthcoming.

### setHyphenationFactor:

- (void) setHyphenationFactor: (float)factor;
Availability: OpenStep
Description forthcoming.

### textViewForBeginningOfSelection

- (NSTextView*) textViewForBeginningOfSelection;
Availability: OpenStep
Description forthcoming.

## Instance Variables for NSLayoutManager Class

### _beganEditing

@public BOOL _beganEditing;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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;
Availability: OpenStep
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.

# Software documentation for the NSLayoutManager(drawing) category

## NSLayoutManager(drawing)

> Declared in:
>   AppKit/NSLayoutManager.h

Availability: OpenStep
Description forthcoming.
Method summary

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

### drawBackgroundForGlyphRange: atPoint:

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

### drawGlyphsForGlyphRange: atPoint:

- (void) drawGlyphsForGlyphRange: (NSRange)range atPoint: (NSPoint)containerOrigin;
Availability: OpenStep
Description forthcoming.

# Software documentation for the NSLayoutManager(layout) category

## NSLayoutManager(layout)

> Declared in:
>   AppKit/NSLayoutManager.h

Availability: OpenStep
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;
Availability: OpenStep
Description forthcoming.

### characterIndexMoving: fromCharacterIndex: originalCharacterIndex: distance:

- (unsigned int) characterIndexMoving: (GSInsertionPointMovementDirection)direction fromCharacterIndex: (unsigned int)from originalCharacterIndex: (unsigned int)original distance: (float)distance;
Availability: OpenStep
Description forthcoming.

### glyphIndexForPoint: inTextContainer:

- (unsigned int) glyphIndexForPoint: (NSPoint)aPoint inTextContainer: (NSTextContainer*)aTextContainer;
Availability: OpenStep
Description forthcoming.

### glyphIndexForPoint: inTextContainer: fractionOfDistanceThroughGlyph:

- (unsigned int) glyphIndexForPoint: (NSPoint)point inTextContainer: (NSTextContainer*)container fractionOfDistanceThroughGlyph: (float*)partialFraction;
Availability: OpenStep
Description forthcoming.

### glyphRangeForBoundingRect: inTextContainer:

- (NSRange) glyphRangeForBoundingRect: (NSRect)bounds inTextContainer: (NSTextContainer*)container;
Availability: OpenStep
Description forthcoming.

### glyphRangeForBoundingRectWithoutAdditionalLayout: inTextContainer:

- (NSRange) glyphRangeForBoundingRectWithoutAdditionalLayout: (NSRect)bounds inTextContainer: (NSTextContainer*)container;
Availability: OpenStep
Description forthcoming.

### insertionPointRectForCharacterIndex: inTextContainer:

- (NSRect) insertionPointRectForCharacterIndex: (unsigned int)cindex inTextContainer: (NSTextContainer*)textContainer;
Availability: OpenStep
Description forthcoming.

### locationForGlyphAtIndex:

- (NSPoint) locationForGlyphAtIndex: (unsigned int)glyphIndex;
Availability: OpenStep
Description forthcoming.

### rectArrayForCharacterRange: withinSelectedCharacterRange: inTextContainer: rectCount:

- (NSRect*) rectArrayForCharacterRange: (NSRange)charRange withinSelectedCharacterRange: (NSRange)selCharRange inTextContainer: (NSTextContainer*)container rectCount: (unsigned int*)rectCount;
Availability: OpenStep
Description forthcoming.

### rectArrayForGlyphRange: withinSelectedGlyphRange: inTextContainer: rectCount:

- (NSRect*) rectArrayForGlyphRange: (NSRange)glyphRange withinSelectedGlyphRange: (NSRange)selGlyphRange inTextContainer: (NSTextContainer*)container rectCount: (unsigned int*)rectCount;
Availability: OpenStep
Description forthcoming.

### textContainerChangedTextView:

- (void) textContainerChangedTextView: (NSTextContainer*)aContainer;
Availability: OpenStep
Description forthcoming.

Up