public class NSLayoutManager extends NSObject implements NSSecureCoding
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSLayoutManager.Block_enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock |
static interface |
NSLayoutManager.Block_enumerateLineFragmentsForGlyphRangeUsingBlock |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSLayoutManager(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
void |
addTextContainer(NSTextContainer container)
Add a container to the end of the array.
|
static NSLayoutManager |
alloc() |
static NSLayoutManager |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsNonContiguousLayout()
If YES, then the layout manager may perform glyph generation and layout for a given portion of the text, without having glyphs or layout for preceding portions.
|
CGSize |
attachmentSizeForGlyphAtIndex(long glyphIndex)
For a glyph corresponding to an attachment, this method returns the size the attachment cell will occupy.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
CGRect |
boundingRectForGlyphRangeInTextContainer(NSRange glyphRange,
NSTextContainer container)
Returns the smallest bounding rect which completely encloses the glyphs in the given glyphRange that are in the given container.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
char |
CGGlyphAtIndex(long glyphIndex) |
char |
CGGlyphAtIndexIsValidIndex(long glyphIndex,
org.moe.natj.general.ptr.BoolPtr isValidIndex)
If non-contiguous layout is not enabled, these will cause generation of all glyphs up to and including glyphIndex.
|
long |
characterIndexForGlyphAtIndex(long glyphIndex)
If non-contiguous layout is not enabled, this will cause generation of all glyphs up to and including glyphIndex.
|
long |
characterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(CGPoint point,
NSTextContainer container,
org.moe.natj.general.ptr.NFloatPtr partialFraction)
Returns the index of the character falling under the given point, expressed in the given container's coordinate system.
|
NSRange |
characterRangeForGlyphRangeActualGlyphRange(NSRange glyphRange,
NSRange actualGlyphRange)
Returns the range of characters that generated the glyphs in the given glyphRange.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
NSLayoutManagerDelegate |
delegate()
Delegate ***************************
|
static java.lang.String |
description_static() |
void |
drawBackgroundForGlyphRangeAtPoint(NSRange glyphsToShow,
CGPoint origin)
Drawing support ***********************
These methods are primitives for drawing.
|
void |
drawGlyphsForGlyphRangeAtPoint(NSRange glyphsToShow,
CGPoint origin) |
boolean |
drawsOutsideLineFragmentForGlyphAtIndex(long glyphIndex)
Returns whether the glyph will draw outside of its line fragment rect.
|
void |
drawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange,
long strikethroughVal,
double baselineOffset,
CGRect lineRect,
NSRange lineGlyphRange,
CGPoint containerOrigin)
These two methods parallel the two corresponding underline methods, but draw strikethroughs instead of underlines.
|
void |
drawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange,
long underlineVal,
double baselineOffset,
CGRect lineRect,
NSRange lineGlyphRange,
CGPoint containerOrigin)
The first of these methods actually draws an appropriate underline for the glyph range given.
|
void |
encodeWithCoder(NSCoder coder) |
void |
ensureGlyphsForCharacterRange(NSRange charRange)
These methods allow clients to specify exactly the portions of the document for which they wish to have glyphs or layout.
|
void |
ensureGlyphsForGlyphRange(NSRange glyphRange) |
void |
ensureLayoutForBoundingRectInTextContainer(CGRect bounds,
NSTextContainer container) |
void |
ensureLayoutForCharacterRange(NSRange charRange) |
void |
ensureLayoutForGlyphRange(NSRange glyphRange) |
void |
ensureLayoutForTextContainer(NSTextContainer container) |
void |
enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(NSRange glyphRange,
NSRange selectedRange,
NSTextContainer textContainer,
NSLayoutManager.Block_enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock block)
Enumerates enclosing rects for glyphRange in textContainer.
|
void |
enumerateLineFragmentsForGlyphRangeUsingBlock(NSRange glyphRange,
NSLayoutManager.Block_enumerateLineFragmentsForGlyphRangeUsingBlock block)
Enumerates line fragments intersecting with glyphRange.
|
CGRect |
extraLineFragmentRect()
Return info about the extra line fragment.
|
NSTextContainer |
extraLineFragmentTextContainer() |
CGRect |
extraLineFragmentUsedRect() |
void |
fillBackgroundRectArrayCountForCharacterRangeColor(org.moe.natj.general.ptr.ConstPtr<CGRect> rectArray,
long rectCount,
NSRange charRange,
UIColor color)
This is the primitive used by -drawBackgroundForGlyphRange:atPoint: for actually filling rects with a particular background color, whether due to a background color attribute, a selected or marked range highlight, a block decoration, or any other rect fill needed by that method.
|
long |
firstUnlaidCharacterIndex() |
long |
firstUnlaidGlyphIndex() |
double |
fractionOfDistanceThroughGlyphForPointInTextContainer(CGPoint point,
NSTextContainer container) |
void |
getFirstUnlaidCharacterIndexGlyphIndex(org.moe.natj.general.ptr.NUIntPtr charIndex,
org.moe.natj.general.ptr.NUIntPtr glyphIndex)
Returns (by reference for the "get" method) the character index or glyph index or both of the first unlaid character/glyph in the layout manager at this time.
|
long |
getGlyphsInRangeGlyphsPropertiesCharacterIndexesBidiLevels(NSRange glyphRange,
org.moe.natj.general.ptr.CharPtr glyphBuffer,
org.moe.natj.general.ptr.NIntPtr props,
org.moe.natj.general.ptr.NUIntPtr charIndexBuffer,
org.moe.natj.general.ptr.BytePtr bidiLevelBuffer)
Fills a passed-in buffer with a sequence of CGGlyphs.
|
long |
getLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(long charIndex,
boolean aFlag,
boolean dFlag,
org.moe.natj.general.ptr.NFloatPtr positions,
org.moe.natj.general.ptr.NUIntPtr charIndexes)
Allows clients to obtain all insertion points for a line fragment in one call.
|
char |
glyphAtIndex(long glyphIndex)
Use -CGGlyphAtIndex: instead
|
char |
glyphAtIndexIsValidIndex(long glyphIndex,
org.moe.natj.general.ptr.BoolPtr isValidIndex)
Use -CGGlyphAtIndex:isValidIndex: instead
|
long |
glyphIndexForCharacterAtIndex(long charIndex)
If non-contiguous layout is not enabled, this will cause generation of all glyphs up to and including those associated with the specified character.
|
long |
glyphIndexForPointInTextContainer(CGPoint point,
NSTextContainer container) |
long |
glyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(CGPoint point,
NSTextContainer container,
org.moe.natj.general.ptr.NFloatPtr partialFraction)
Returns the index of the glyph falling under the given point, expressed in the given container's coordinate system.
|
NSRange |
glyphRangeForBoundingRectInTextContainer(CGRect bounds,
NSTextContainer container)
Returns a contiguous glyph range containing all glyphs that would need to be displayed in order to draw all glyphs that fall (even partially) within the bounding rect given.
|
NSRange |
glyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(CGRect bounds,
NSTextContainer container) |
NSRange |
glyphRangeForCharacterRangeActualCharacterRange(NSRange charRange,
NSRange actualCharRange)
Returns the range of glyphs that are generated from the characters in the given charRange.
|
NSRange |
glyphRangeForTextContainer(NSTextContainer container)
Returns the range of characters which have been laid into the given container.
|
static long |
hash_static() |
boolean |
hasNonContiguousLayout()
Even if non-contiguous layout is allowed, it may not always be used, and there may not always be layout holes.
|
double |
hyphenationFactor()
0.0 - 1.0.
|
NSLayoutManager |
init()
Designated Initializer.
|
NSLayoutManager |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
void |
insertTextContainerAtIndex(NSTextContainer container,
long index)
Insert a container into the array before the container at index.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
void |
invalidateDisplayForCharacterRange(NSRange charRange)
These methods invalidate display for the glyph or character range given.
|
void |
invalidateDisplayForGlyphRange(NSRange glyphRange) |
void |
invalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(NSRange charRange,
long delta,
NSRange actualCharRange)
This removes all glyphs for the old character range, adjusts the character indices of all the subsequent glyphs by the change in length, and invalidates the new character range.
|
void |
invalidateLayoutForCharacterRangeActualCharacterRange(NSRange charRange,
NSRange actualCharRange)
This method invalidates the layout information for the given range of characters.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isValidGlyphIndex(long glyphIndex) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
boolean |
limitsLayoutForSuspiciousContents()
When YES, enables internal security analysis for malicious inputs and activates defensive behaviors.
|
CGRect |
lineFragmentRectForGlyphAtIndexEffectiveRange(long glyphIndex,
NSRange effectiveGlyphRange)
Returns the rect for the line fragment in which the given glyph is laid and (optionally) by reference the whole range of glyphs that are in that fragment.
|
CGRect |
lineFragmentRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(long glyphIndex,
NSRange effectiveGlyphRange,
boolean flag) |
CGRect |
lineFragmentUsedRectForGlyphAtIndexEffectiveRange(long glyphIndex,
NSRange effectiveGlyphRange)
Returns the usage rect for the line fragment in which the given glyph is laid and (optionally) by reference the whole range of glyphs that are in that fragment.
|
CGRect |
lineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(long glyphIndex,
NSRange effectiveGlyphRange,
boolean flag) |
CGPoint |
locationForGlyphAtIndex(long glyphIndex)
Returns the location for the given glyph within its line fragment.
|
static NSLayoutManager |
new_objc() |
boolean |
notShownAttributeForGlyphAtIndex(long glyphIndex)
Some glyphs are not shown.
|
long |
numberOfGlyphs()
Returns the total number of glyphs.
|
void |
processEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(NSTextStorage textStorage,
long editMask,
NSRange newCharRange,
long delta,
NSRange invalidatedCharRange)
Sent from processEditing in NSTextStorage.
|
long |
propertyForGlyphAtIndex(long glyphIndex)
If non-contiguous layout is not enabled, this will cause generation of all glyphs up to and including glyphIndex.
|
NSRange |
rangeOfNominallySpacedGlyphsContainingIndex(long glyphIndex)
Returns the range including the first glyph from glyphIndex on back that has a location set and up to, but not including the next glyph that has a location set.
|
void |
removeTextContainerAtIndex(long index)
Removes the container at index from the array.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAllowsNonContiguousLayout(boolean value)
If YES, then the layout manager may perform glyph generation and layout for a given portion of the text, without having glyphs or layout for preceding portions.
|
void |
setAttachmentSizeForGlyphRange(CGSize attachmentSize,
NSRange glyphRange)
For a glyph corresponding to an attachment, this method should be called to set the size the attachment cell will occupy.
|
void |
setDelegate_unsafe(NSLayoutManagerDelegate value)
Delegate ***************************
|
void |
setDelegate(NSLayoutManagerDelegate value)
Delegate ***************************
|
void |
setDrawsOutsideLineFragmentForGlyphAtIndex(boolean flag,
long glyphIndex)
Used to indicate that a particular glyph for some reason will draw outside of its line fragment rect.
|
void |
setExtraLineFragmentRectUsedRectTextContainer(CGRect fragmentRect,
CGRect usedRect,
NSTextContainer container)
Sets the bounds and container for the extra line fragment.
|
void |
setGlyphsPropertiesCharacterIndexesFontForGlyphRange(org.moe.natj.general.ptr.ConstCharPtr glyphs,
org.moe.natj.general.ptr.ConstNIntPtr props,
org.moe.natj.general.ptr.ConstNUIntPtr charIndexes,
UIFont aFont,
NSRange glyphRange)
Sets the initial glyphs and properties for a character range.
|
void |
setHyphenationFactor(double value)
0.0 - 1.0.
|
void |
setLimitsLayoutForSuspiciousContents(boolean value)
When YES, enables internal security analysis for malicious inputs and activates defensive behaviors.
|
void |
setLineFragmentRectForGlyphRangeUsedRect(CGRect fragmentRect,
NSRange glyphRange,
CGRect usedRect)
Associates the given line fragment bounds with the given range of glyphs.
|
void |
setLocationForStartOfGlyphRange(CGPoint location,
NSRange glyphRange)
Sets the location for the first glyph of the given range.
|
void |
setNotShownAttributeForGlyphAtIndex(boolean flag,
long glyphIndex)
Some glyphs are not shown.
|
void |
setShowsControlCharacters(boolean value)
If YES, then control characters will be rendered visibly (usually like "^M").
|
void |
setShowsInvisibleCharacters(boolean value)
If YES, then whitespace and other "invisible" characters will be shown with special glyphs or other drawing.
|
void |
setTextContainerForGlyphRange(NSTextContainer container,
NSRange glyphRange)
Associates the given container with the given range of glyphs.
|
void |
setTextStorage_unsafe(NSTextStorage value)
Accessor for the NSTextStorage object owning the receiver.
|
void |
setTextStorage(NSTextStorage value)
Accessor for the NSTextStorage object owning the receiver.
|
void |
setUsesDefaultHyphenation(boolean value)
When YES, NSLayoutManager will attempt to hyphenate when wrapping lines.
|
void |
setUsesFontLeading(boolean value)
By default, a layout manager will use leading as specified by the font.
|
static void |
setVersion_static(long aVersion) |
void |
showCGGlyphsPositionsCountFontMatrixAttributesInContext(org.moe.natj.general.ptr.ConstCharPtr glyphs,
org.moe.natj.general.ptr.ConstPtr<CGPoint> positions,
long glyphCount,
UIFont font,
CGAffineTransform textMatrix,
NSDictionary<java.lang.String,?> attributes,
CGContextRef graphicsContext)
This is the glyph rendering primitive method.
|
void |
showCGGlyphsPositionsCountFontTextMatrixAttributesInContext(org.moe.natj.general.ptr.ConstCharPtr glyphs,
CGPoint positions,
long glyphCount,
UIFont font,
CGAffineTransform textMatrix,
NSDictionary<java.lang.String,?> attributes,
CGContextRef CGContext)
This is the glyph rendering primitive method.
|
boolean |
showsControlCharacters()
If YES, then control characters will be rendered visibly (usually like "^M").
|
boolean |
showsInvisibleCharacters()
If YES, then whitespace and other "invisible" characters will be shown with special glyphs or other drawing.
|
void |
strikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange,
long strikethroughVal,
CGRect lineRect,
NSRange lineGlyphRange,
CGPoint containerOrigin) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
void |
textContainerChangedGeometry(NSTextContainer container)
Called by NSTextContainer whenever it changes size or shape.
|
NSTextContainer |
textContainerForGlyphAtIndexEffectiveRange(long glyphIndex,
NSRange effectiveGlyphRange)
Returns the container in which the given glyph is laid and (optionally) by reference the whole range of glyphs that are in that container.
|
NSTextContainer |
textContainerForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(long glyphIndex,
NSRange effectiveGlyphRange,
boolean flag) |
NSArray<? extends NSTextContainer> |
textContainers()
NSTextContainer objects owner by the receiver.
|
NSTextStorage |
textStorage()
Accessor for the NSTextStorage object owning the receiver.
|
NSRange |
truncatedGlyphRangeInLineFragmentForGlyphAtIndex(long glyphIndex)
Returns a range of truncated glyph range for a line fragment containing the specified index.
|
void |
underlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange,
long underlineVal,
CGRect lineRect,
NSRange lineGlyphRange,
CGPoint containerOrigin) |
CGRect |
usedRectForTextContainer(NSTextContainer container)
Returns the container's currently used area.
|
boolean |
usesDefaultHyphenation()
When YES, NSLayoutManager will attempt to hyphenate when wrapping lines.
|
boolean |
usesFontLeading()
By default, a layout manager will use leading as specified by the font.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSLayoutManager alloc()
public static NSLayoutManager allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSLayoutManager new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public char CGGlyphAtIndex(long glyphIndex)
public char CGGlyphAtIndexIsValidIndex(long glyphIndex,
org.moe.natj.general.ptr.BoolPtr isValidIndex)
public void addTextContainer(NSTextContainer container)
public boolean allowsNonContiguousLayout()
public CGSize attachmentSizeForGlyphAtIndex(long glyphIndex)
public CGRect boundingRectForGlyphRangeInTextContainer(NSRange glyphRange, NSTextContainer container)
public long characterIndexForGlyphAtIndex(long glyphIndex)
public long characterIndexForPointInTextContainerFractionOfDistanceBetweenInsertionPoints(CGPoint point, NSTextContainer container, org.moe.natj.general.ptr.NFloatPtr partialFraction)
public NSRange characterRangeForGlyphRangeActualGlyphRange(NSRange glyphRange, NSRange actualGlyphRange)
public NSLayoutManagerDelegate delegate()
public void drawBackgroundForGlyphRangeAtPoint(NSRange glyphsToShow, CGPoint origin)
public void drawGlyphsForGlyphRangeAtPoint(NSRange glyphsToShow, CGPoint origin)
public void drawStrikethroughForGlyphRangeStrikethroughTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange, long strikethroughVal, double baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
public void drawUnderlineForGlyphRangeUnderlineTypeBaselineOffsetLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange, long underlineVal, double baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
public boolean drawsOutsideLineFragmentForGlyphAtIndex(long glyphIndex)
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void ensureGlyphsForCharacterRange(NSRange charRange)
public void ensureGlyphsForGlyphRange(NSRange glyphRange)
public void ensureLayoutForBoundingRectInTextContainer(CGRect bounds, NSTextContainer container)
public void ensureLayoutForCharacterRange(NSRange charRange)
public void ensureLayoutForGlyphRange(NSRange glyphRange)
public void ensureLayoutForTextContainer(NSTextContainer container)
public void enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock(NSRange glyphRange, NSRange selectedRange, NSTextContainer textContainer, NSLayoutManager.Block_enumerateEnclosingRectsForGlyphRangeWithinSelectedGlyphRangeInTextContainerUsingBlock block)
public void enumerateLineFragmentsForGlyphRangeUsingBlock(NSRange glyphRange, NSLayoutManager.Block_enumerateLineFragmentsForGlyphRangeUsingBlock block)
public CGRect extraLineFragmentRect()
public NSTextContainer extraLineFragmentTextContainer()
public CGRect extraLineFragmentUsedRect()
public void fillBackgroundRectArrayCountForCharacterRangeColor(org.moe.natj.general.ptr.ConstPtr<CGRect> rectArray, long rectCount, NSRange charRange, UIColor color)
public long firstUnlaidCharacterIndex()
public long firstUnlaidGlyphIndex()
public double fractionOfDistanceThroughGlyphForPointInTextContainer(CGPoint point, NSTextContainer container)
public void getFirstUnlaidCharacterIndexGlyphIndex(org.moe.natj.general.ptr.NUIntPtr charIndex,
org.moe.natj.general.ptr.NUIntPtr glyphIndex)
public long getGlyphsInRangeGlyphsPropertiesCharacterIndexesBidiLevels(NSRange glyphRange, org.moe.natj.general.ptr.CharPtr glyphBuffer, org.moe.natj.general.ptr.NIntPtr props, org.moe.natj.general.ptr.NUIntPtr charIndexBuffer, org.moe.natj.general.ptr.BytePtr bidiLevelBuffer)
public long getLineFragmentInsertionPointsForCharacterAtIndexAlternatePositionsInDisplayOrderPositionsCharacterIndexes(long charIndex,
boolean aFlag,
boolean dFlag,
org.moe.natj.general.ptr.NFloatPtr positions,
org.moe.natj.general.ptr.NUIntPtr charIndexes)
public char glyphAtIndex(long glyphIndex)
public char glyphAtIndexIsValidIndex(long glyphIndex,
org.moe.natj.general.ptr.BoolPtr isValidIndex)
public long glyphIndexForCharacterAtIndex(long charIndex)
public long glyphIndexForPointInTextContainer(CGPoint point, NSTextContainer container)
public long glyphIndexForPointInTextContainerFractionOfDistanceThroughGlyph(CGPoint point, NSTextContainer container, org.moe.natj.general.ptr.NFloatPtr partialFraction)
public NSRange glyphRangeForBoundingRectInTextContainer(CGRect bounds, NSTextContainer container)
public NSRange glyphRangeForBoundingRectWithoutAdditionalLayoutInTextContainer(CGRect bounds, NSTextContainer container)
public NSRange glyphRangeForCharacterRangeActualCharacterRange(NSRange charRange, NSRange actualCharRange)
public NSRange glyphRangeForTextContainer(NSTextContainer container)
public boolean hasNonContiguousLayout()
public double hyphenationFactor()
public NSLayoutManager init()
public NSLayoutManager initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic void insertTextContainerAtIndex(NSTextContainer container, long index)
public void invalidateDisplayForCharacterRange(NSRange charRange)
public void invalidateDisplayForGlyphRange(NSRange glyphRange)
public void invalidateGlyphsForCharacterRangeChangeInLengthActualCharacterRange(NSRange charRange, long delta, NSRange actualCharRange)
public void invalidateLayoutForCharacterRangeActualCharacterRange(NSRange charRange, NSRange actualCharRange)
public boolean isValidGlyphIndex(long glyphIndex)
public CGRect lineFragmentRectForGlyphAtIndexEffectiveRange(long glyphIndex, NSRange effectiveGlyphRange)
public CGRect lineFragmentRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(long glyphIndex, NSRange effectiveGlyphRange, boolean flag)
public CGRect lineFragmentUsedRectForGlyphAtIndexEffectiveRange(long glyphIndex, NSRange effectiveGlyphRange)
public CGRect lineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(long glyphIndex, NSRange effectiveGlyphRange, boolean flag)
public CGPoint locationForGlyphAtIndex(long glyphIndex)
public boolean notShownAttributeForGlyphAtIndex(long glyphIndex)
public long numberOfGlyphs()
public void processEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(NSTextStorage textStorage, long editMask, NSRange newCharRange, long delta, NSRange invalidatedCharRange)
public long propertyForGlyphAtIndex(long glyphIndex)
public NSRange rangeOfNominallySpacedGlyphsContainingIndex(long glyphIndex)
public void removeTextContainerAtIndex(long index)
public void setAllowsNonContiguousLayout(boolean value)
public void setAttachmentSizeForGlyphRange(CGSize attachmentSize, NSRange glyphRange)
public void setDelegate_unsafe(NSLayoutManagerDelegate value)
public void setDelegate(NSLayoutManagerDelegate value)
public void setDrawsOutsideLineFragmentForGlyphAtIndex(boolean flag,
long glyphIndex)
public void setExtraLineFragmentRectUsedRectTextContainer(CGRect fragmentRect, CGRect usedRect, NSTextContainer container)
public void setGlyphsPropertiesCharacterIndexesFontForGlyphRange(org.moe.natj.general.ptr.ConstCharPtr glyphs,
org.moe.natj.general.ptr.ConstNIntPtr props,
org.moe.natj.general.ptr.ConstNUIntPtr charIndexes,
UIFont aFont,
NSRange glyphRange)
public void setHyphenationFactor(double value)
public void setLineFragmentRectForGlyphRangeUsedRect(CGRect fragmentRect, NSRange glyphRange, CGRect usedRect)
public void setLocationForStartOfGlyphRange(CGPoint location, NSRange glyphRange)
public void setNotShownAttributeForGlyphAtIndex(boolean flag,
long glyphIndex)
public void setShowsControlCharacters(boolean value)
public void setShowsInvisibleCharacters(boolean value)
public void setTextContainerForGlyphRange(NSTextContainer container, NSRange glyphRange)
public void setTextStorage_unsafe(NSTextStorage value)
public void setTextStorage(NSTextStorage value)
public void setUsesFontLeading(boolean value)
public void showCGGlyphsPositionsCountFontMatrixAttributesInContext(org.moe.natj.general.ptr.ConstCharPtr glyphs,
org.moe.natj.general.ptr.ConstPtr<CGPoint> positions,
long glyphCount,
UIFont font,
CGAffineTransform textMatrix,
NSDictionary<java.lang.String,?> attributes,
CGContextRef graphicsContext)
public boolean showsControlCharacters()
public boolean showsInvisibleCharacters()
public void strikethroughGlyphRangeStrikethroughTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange, long strikethroughVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
public void textContainerChangedGeometry(NSTextContainer container)
public NSTextContainer textContainerForGlyphAtIndexEffectiveRange(long glyphIndex, NSRange effectiveGlyphRange)
public NSTextContainer textContainerForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(long glyphIndex, NSRange effectiveGlyphRange, boolean flag)
public NSArray<? extends NSTextContainer> textContainers()
public NSTextStorage textStorage()
public NSRange truncatedGlyphRangeInLineFragmentForGlyphAtIndex(long glyphIndex)
public void underlineGlyphRangeUnderlineTypeLineFragmentRectLineFragmentGlyphRangeContainerOrigin(NSRange glyphRange, long underlineVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
public CGRect usedRectForTextContainer(NSTextContainer container)
public boolean usesFontLeading()
public boolean limitsLayoutForSuspiciousContents()
public void setLimitsLayoutForSuspiciousContents(boolean value)
public void setUsesDefaultHyphenation(boolean value)
public void showCGGlyphsPositionsCountFontTextMatrixAttributesInContext(org.moe.natj.general.ptr.ConstCharPtr glyphs,
CGPoint positions,
long glyphCount,
UIFont font,
CGAffineTransform textMatrix,
NSDictionary<java.lang.String,?> attributes,
CGContextRef CGContext)
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic boolean usesDefaultHyphenation()