API  1.0.0
CPLayoutManager Class Reference

#import <CPLayoutManager.h>

+ Inheritance diagram for CPLayoutManager:

Instance Methods

(void) - addTemporaryAttributes:forCharacterRange: 
 
(void) - addTextContainer: 
 
(CGRect) - boundingRectForGlyphRange:inTextContainer: 
 
(unsigned) - characterIndexForGlyphAtIndex: 
 
(CPRange) - characterRangeForGlyphRange:actualGlyphRange: 
 
(void) - drawBackgroundForGlyphRange:atPoint: 
 
(void) - drawGlyphsForGlyphRange:atPoint: 
 
(void) - drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin: 
 
(void) - encodeWithCoder: 
 
(CGRect) - extraLineFragmentRect 
 
(CPTextContainer) - extraLineFragmentTextContainer 
 
(CGRect) - extraLineFragmentUsedRect 
 
(CPTextView) - firstTextView 
 
(unsigned) - glyphIndexForPoint:inTextContainer: 
 
(unsigned) - glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph: 
 
(CPRange) - glyphRangeForBoundingRect:inTextContainer: 
 
(CPRange) - glyphRangeForTextContainer: 
 
(id) - init 
 
(id) - initWithCoder: 
 
(void) - insertTextContainer:atIndex: 
 
(void) - invalidateDisplayForGlyphRange: 
 
(void) - invalidateLayoutForCharacterRange:isSoft:actualCharacterRange: 
 
(BOOL) - layoutManagerOwnsFirstResponderInWindow: 
 
(CGRect) - lineFragmentRectForGlyphAtIndex:effectiveRange: 
 
(CGRect) - lineFragmentUsedRectForGlyphAtIndex:effectiveRange: 
 
(CGPoint) - locationForGlyphAtIndex: 
 
(int) - numberOfCharacters 
 
(int) - numberOfGlyphs 
 
(CPArray) - rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount: 
 
(void) - removeTemporaryAttribute:forCharacterRange: 
 
(void) - removeTextContainerAtIndex: 
 
(void) - setExtraLineFragmentRect:usedRect:textContainer: 
 
(void) - setLineFragmentRect:forGlyphRange:usedRect: 
 
(void) - setLocation:forStartOfGlyphRange: 
 
(void) - setTemporaryAttributes:forCharacterRange: 
 
(void) - setTextContainer:forGlyphRange: 
 
(CPDictionary) - temporaryAttributesAtCharacterIndex:effectiveRange: 
 
(void) - textContainerChangedTextView: 
 
(CPTextContainer) - textContainerForGlyphAtIndex:effectiveRange: 
 
(CPTextContainer) - textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout: 
 
(void) - textStorage:edited:range:changeInLength:invalidatedRange: 
 
(CPTextView) - textViewForBeginningOfSelection 
 
(CGRect) - usedRectForTextContainer: 
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context: 
 
(void) - applyChange:toKeyPath: 
 
(id) - autorelease 
 
(id) - awakeAfterUsingCoder: 
 
(void) - awakeFromCib 
 
(void) - bind:toObject:withKeyPath:options: 
 
(Class) - classForCoder 
 
(Class) - classForKeyedArchiver 
 
(CPString) - className 
 
(id) - copy 
 
(void) - dealloc 
 
(CPString) - description 
 
(CPDictionary) - dictionaryWithValuesForKeys: 
 
(void) - didChange:valuesAtIndexes:forKey: 
 
(void) - didChangeValueForKey: 
 
(void) - didChangeValueForKey:withSetMutation:usingObjects: 
 
(void) - doesNotRecognizeSelector: 
 
(CPArray) - exposedBindings 
 
(id) - forwardingTargetForSelector: 
 
(void) - forwardInvocation: 
 
(unsigned) - hash 
 
(BOOL) - implementsSelector: 
 
(CPDictionary) - infoForBinding: 
 
(BOOL) - isEqual: 
 
(BOOL) - isKindOfClass: 
 
(BOOL) - isMemberOfClass: 
 
(BOOL) - isProxy 
 
(IMP) - methodForSelector: 
 
(CPMethodSignature) - methodSignatureForSelector: 
 
(id) - mutableArrayValueForKey: 
 
(id) - mutableArrayValueForKeyPath: 
 
(id) - mutableCopy 
 
(id) - mutableSetValueForKey: 
 
(id) - mutableSetValueForKeyPath: 
 
(id) - performSelector: 
 
(id) - performSelector:withObject: 
 
(void) - performSelector:withObject:afterDelay: 
 
(void) - performSelector:withObject:afterDelay:inModes: 
 
(id) - performSelector:withObject:withObject: 
 
(id) - performSelector:withObjects: 
 
(void) - release 
 
(void) - removeObserver:forKeyPath: 
 
(id) - replacementObjectForArchiver: 
 
(id) - replacementObjectForCoder: 
 
(id) - replacementObjectForKeyedArchiver: 
 
(BOOL) - respondsToSelector: 
 
(id) - retain 
 
(id) - self 
 
(void) - setValue:forKey: 
 
(void) - setValue:forKeyPath: 
 
(void) - setValue:forUndefinedKey: 
 
(void) - setValuesForKeysWithDictionary: 
 
(CPString) - UID 
 
(void) - unbind: 
 
(Class) - valueClassForBinding: 
 
(id) - valueForKey: 
 
(id) - valueForKeyPath: 
 
(id) - valueForUndefinedKey: 
 
(void) - willChange:valuesAtIndexes:forKey: 
 
(void) - willChangeValueForKey: 
 
(void) - willChangeValueForKey:withSetMutation:usingObjects: 
 

Additional Inherited Members

- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly 
 
(id) + alloc 
 
(id) + allocWithCoder: 
 
(BOOL) + automaticallyNotifiesObserversForKey: 
 
(void) + cancelPreviousPerformRequestsWithTarget: 
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object: 
 
(Class) + class 
 
(BOOL) + conformsToProtocol: 
 
(void) + exposeBinding: 
 
(void) + initialize 
 
(IMP) + instanceMethodForSelector: 
 
(BOOL) + instancesImplementSelector: 
 
(BOOL) + instancesRespondToSelector: 
 
(BOOL) + isBindingExclusive: 
 
(BOOL) + isSubclassOfClass: 
 
(CPSet) + keyPathsForValuesAffectingValueForKey: 
 
(void) + load 
 
(id) + new 
 
(void) + object:performSelector:withObject:afterDelay:inModes: 
 
(void) + setVersion: 
 
(Class) + superclass 
 
(int) + version 
 

Detailed Description

Definition at line 2 of file CPLayoutManager.h.

Method Documentation

◆ addTemporaryAttributes:forCharacterRange:()

- (void) addTemporaryAttributes: (CPDictionary)  attributes
forCharacterRange: (CPRange)  charRange 
implementation

Definition at line 611 of file CPLayoutManager.j.

◆ addTextContainer:()

- (void) addTextContainer: (CPTextContainer)  aContainer
implementation

Definition at line 105 of file CPLayoutManager.j.

◆ boundingRectForGlyphRange:inTextContainer:()

- (CGRect) boundingRectForGlyphRange: (CGRange)  aRange
inTextContainer: (CPTextContainer)  container 
implementation

Definition at line 154 of file CPLayoutManager.j.

◆ characterIndexForGlyphAtIndex:()

- (unsigned) characterIndexForGlyphAtIndex: (unsigned)  index
implementation

Definition at line 893 of file CPLayoutManager.j.

◆ characterRangeForGlyphRange:actualGlyphRange:()

- (CPRange) characterRangeForGlyphRange: (CPRange)  aRange
actualGlyphRange: (CPRangePointer)  actualRange 
implementation

Definition at line 887 of file CPLayoutManager.j.

◆ drawBackgroundForGlyphRange:atPoint:()

- (void) drawBackgroundForGlyphRange: (CPRange)  aRange
atPoint: (CGPoint)  aPoint 
implementation

Definition at line 485 of file CPLayoutManager.j.

◆ drawGlyphsForGlyphRange:atPoint:()

- (void) drawGlyphsForGlyphRange: (CPRange)  aRange
atPoint: (CGPoint)  aPoint 
implementation

Definition at line 500 of file CPLayoutManager.j.

◆ drawUnderlineForGlyphRange:underlineType:baselineOffset:lineFragmentRect:lineFragmentGlyphRange:containerOrigin:()

- (void) drawUnderlineForGlyphRange: (CPRange)  glyphRange
underlineType: (int)  underlineVal
baselineOffset: (float)  baselineOffset
lineFragmentRect: (CGRect)  lineFragmentRect
lineFragmentGlyphRange: (CPRange)  lineGlyphRange
containerOrigin: (CGPoint)  containerOrigin 
implementation

Definition at line 490 of file CPLayoutManager.j.

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder)  aCoder
implementation

Provided by category CPLayoutManager(CPCoding).

Definition at line 982 of file CPLayoutManager.j.

◆ extraLineFragmentRect()

- (CGRect) extraLineFragmentRect
implementation

Definition at line 748 of file CPLayoutManager.j.

◆ extraLineFragmentTextContainer()

- (CPTextContainer) extraLineFragmentTextContainer
implementation

Definition at line 756 of file CPLayoutManager.j.

◆ extraLineFragmentUsedRect()

- (CGRect) extraLineFragmentUsedRect
implementation

Definition at line 764 of file CPLayoutManager.j.

◆ firstTextView()

- (CPTextView) firstTextView
implementation

Definition at line 129 of file CPLayoutManager.j.

◆ glyphIndexForPoint:inTextContainer:()

- (unsigned) glyphIndexForPoint: (CGPoint)  point
inTextContainer: (CPTextContainer)  container 
implementation

Definition at line 586 of file CPLayoutManager.j.

◆ glyphIndexForPoint:inTextContainer:fractionOfDistanceThroughGlyph:()

- (unsigned) glyphIndexForPoint: (CGPoint)  point
inTextContainer: (CPTextContainer)  container
fractionOfDistanceThroughGlyph: (FloatArray)  partialFraction 
implementation

Definition at line 519 of file CPLayoutManager.j.

◆ glyphRangeForBoundingRect:inTextContainer:()

- (CPRange) glyphRangeForBoundingRect: (CGRect)  aRect
inTextContainer: (CPTextContainer)  container 
implementation

Definition at line 437 of file CPLayoutManager.j.

◆ glyphRangeForTextContainer:()

- (CPRange) glyphRangeForTextContainer: (CPTextContainer)  aTextContainer
implementation

Definition at line 191 of file CPLayoutManager.j.

◆ init()

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPObject.

Definition at line 73 of file CPLayoutManager.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder)  aCoder
implementation

Provided by category CPLayoutManager(CPCoding).

Definition at line 967 of file CPLayoutManager.j.

◆ insertTextContainer:atIndex:()

- (void) insertTextContainer: (CPTextContainer)  aContainer
atIndex: (int)  index 
implementation

Definition at line 99 of file CPLayoutManager.j.

◆ invalidateDisplayForGlyphRange:()

- (void) invalidateDisplayForGlyphRange: (CPRange)  range
implementation

Definition at line 371 of file CPLayoutManager.j.

◆ invalidateLayoutForCharacterRange:isSoft:actualCharacterRange:()

- (void) invalidateLayoutForCharacterRange: (CPRange)  aRange
isSoft: (BOOL)  flag
actualCharacterRange: (CPRangePointer)  actualCharRange 
implementation

Definition at line 379 of file CPLayoutManager.j.

◆ layoutManagerOwnsFirstResponderInWindow:()

- (BOOL) layoutManagerOwnsFirstResponderInWindow: (CPWindow)  aWindow
implementation

Definition at line 140 of file CPLayoutManager.j.

◆ lineFragmentRectForGlyphAtIndex:effectiveRange:()

- (CGRect) lineFragmentRectForGlyphAtIndex: (unsigned)  glyphIndex
effectiveRange: (CPRangePointer)  effectiveGlyphRange 
implementation

Definition at line 806 of file CPLayoutManager.j.

◆ lineFragmentUsedRectForGlyphAtIndex:effectiveRange:()

- (CGRect) lineFragmentUsedRectForGlyphAtIndex: (unsigned)  glyphIndex
effectiveRange: (CPRangePointer)  effectiveGlyphRange 
implementation

Definition at line 822 of file CPLayoutManager.j.

◆ locationForGlyphAtIndex:()

- (CGPoint) locationForGlyphAtIndex: (unsigned)  index
implementation

Definition at line 838 of file CPLayoutManager.j.

◆ numberOfCharacters()

- (int) numberOfCharacters
implementation

Definition at line 124 of file CPLayoutManager.j.

◆ numberOfGlyphs()

- (int) numberOfGlyphs
implementation

Definition at line 119 of file CPLayoutManager.j.

◆ rectArrayForCharacterRange:withinSelectedCharacterRange:inTextContainer:rectCount:()

- (CPArray) rectArrayForCharacterRange: (CPRange)  charRange
withinSelectedCharacterRange: (CPRange)  selectedCharRange
inTextContainer: (CPTextContainer)  container
rectCount: (CGRectPointer)  rectCount 
implementation

Definition at line 899 of file CPLayoutManager.j.

◆ removeTemporaryAttribute:forCharacterRange:()

- (void) removeTemporaryAttribute: (CPString)  attributeName
forCharacterRange: (CPRange)  charRange 
implementation

Definition at line 616 of file CPLayoutManager.j.

◆ removeTextContainerAtIndex:()

- (void) removeTextContainerAtIndex: (int)  index
implementation

Definition at line 111 of file CPLayoutManager.j.

◆ setExtraLineFragmentRect:usedRect:textContainer:()

- (void) setExtraLineFragmentRect: (CGRect)  rect
usedRect: (CGRect)  usedRect
textContainer: (CPTextContainer)  textContainer 
implementation

Definition at line 772 of file CPLayoutManager.j.

◆ setLineFragmentRect:forGlyphRange:usedRect:()

- (void) setLineFragmentRect: (CGRect)  fragmentRect
forGlyphRange: (CPRange)  glyphRange
usedRect: (CGRect)  usedRect 
implementation

Definition at line 721 of file CPLayoutManager.j.

◆ setLocation:forStartOfGlyphRange:()

- (void) setLocation: (CGPoint)  aPoint
forStartOfGlyphRange: (CPRange)  glyphRange 
implementation

Definition at line 740 of file CPLayoutManager.j.

◆ setTemporaryAttributes:forCharacterRange:()

- (void) setTemporaryAttributes: (CPDictionary)  attributes
forCharacterRange: (CPRange)  charRange 
implementation

Definition at line 606 of file CPLayoutManager.j.

◆ setTextContainer:forGlyphRange:()

- (void) setTextContainer: (CPTextContainer)  aTextContainer
forGlyphRange: (CPRange)  glyphRange 
implementation

Definition at line 636 of file CPLayoutManager.j.

◆ temporaryAttributesAtCharacterIndex:effectiveRange:()

- (CPDictionary) temporaryAttributesAtCharacterIndex: (unsigned)  index
effectiveRange: (CPRangePointer)  effectiveRange 
implementation

Definition at line 621 of file CPLayoutManager.j.

◆ textContainerChangedTextView:()

- (void) textContainerChangedTextView: (CPTextContainer)  aContainer
implementation

Definition at line 626 of file CPLayoutManager.j.

◆ textContainerForGlyphAtIndex:effectiveRange:()

- (CPTextContainer) textContainerForGlyphAtIndex: (unsigned)  index
effectiveRange: (CPRangePointer)  effectiveGlyphRange 
implementation

Definition at line 882 of file CPLayoutManager.j.

◆ textContainerForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:()

- (CPTextContainer) textContainerForGlyphAtIndex: (unsigned)  index
effectiveRange: (CPRangePointer)  effectiveGlyphRange
withoutAdditionalLayout: (BOOL)  flag 
implementation

Definition at line 864 of file CPLayoutManager.j.

◆ textStorage:edited:range:changeInLength:invalidatedRange:()

- (void) textStorage: (CPTextStorage)  textStorage
edited: (unsigned)  mask
range: (CPRange)  charRange
changeInLength: (int)  delta
invalidatedRange: (CPRange)  invalidatedRange 
implementation

Definition at line 427 of file CPLayoutManager.j.

◆ textViewForBeginningOfSelection()

- (CPTextView) textViewForBeginningOfSelection
implementation

Definition at line 135 of file CPLayoutManager.j.

◆ usedRectForTextContainer:()

- (CGRect) usedRectForTextContainer: (CPTextContainer)  textContainer
implementation

Definition at line 787 of file CPLayoutManager.j.


The documentation for this class was generated from the following files: