Package org.robovm.apple.uikit
Class NSLayoutManager
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.NSLayoutManager
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSLayoutManager extends NSObject implements NSCoding
- Since:
- Available in iOS 7.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSLayoutManager.NSLayoutManagerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSLayoutManager()
NSLayoutManager(NSCoder coder)
protected
NSLayoutManager(NSObject.Handle h, long handle)
protected
NSLayoutManager(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTextContainer(NSTextContainer container)
boolean
allowsNonContiguousLayout()
void
drawBackground(NSRange glyphsToShow, CGPoint origin)
void
drawGlyphs(NSRange glyphsToShow, CGPoint origin)
void
drawStrikethrough(NSRange glyphRange, NSUnderlineStyle strikethroughVal, double baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
void
drawUnderline(NSRange glyphRange, NSUnderlineStyle underlineVal, double baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
void
encode(NSCoder coder)
void
ensureGlyphsForCharacterRange(NSRange charRange)
void
ensureGlyphsForGlyphRange(NSRange glyphRange)
void
ensureLayoutForBoundingRect(CGRect bounds, NSTextContainer container)
void
ensureLayoutForCharacterRange(NSRange charRange)
void
ensureLayoutForGlyphRange(NSRange glyphRange)
void
ensureLayoutForTextContainer(NSTextContainer container)
void
enumerateEnclosingRects(NSRange glyphRange, NSRange selectedRange, NSTextContainer textContainer, org.robovm.objc.block.VoidBlock2<CGRect,org.robovm.rt.bro.ptr.BooleanPtr> block)
void
enumerateLineFragments(NSRange glyphRange, org.robovm.objc.block.VoidBlock5<CGRect,CGRect,NSTextContainer,NSRange,org.robovm.rt.bro.ptr.BooleanPtr> block)
void
fillBackground(CGRect[] rectArray, NSRange charRange, UIColor color)
protected void
fillBackground(CGRect rectArray, long rectCount, NSRange charRange, UIColor color)
long
firstUnlaidCharacterIndex()
long
firstUnlaidGlyphIndex()
CGSize
getAttachmentSize(long glyphIndex)
CGRect
getBoundingRectForGlyphRange(NSRange glyphRange, NSTextContainer container)
long
getCharacterIndexForGlyph(long glyphIndex)
long
getCharacterIndexForPoint(CGPoint point, NSTextContainer container, org.robovm.rt.bro.ptr.MachineSizedFloatPtr partialFraction)
NSRange
getCharacterRangeForGlyphRange(NSRange glyphRange, NSRange actualGlyphRange)
NSLayoutManagerDelegate
getDelegate()
boolean
getDrawsOutsideLineFragment(long glyphIndex)
CGRect
getExtraLineFragmentRect()
NSTextContainer
getExtraLineFragmentTextContainer()
CGRect
getExtraLineFragmentUsedRect()
void
getFirstUnlaidCharacterIndex(org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndex, org.robovm.rt.bro.ptr.MachineSizedUIntPtr glyphIndex)
double
getFractionOfDistanceThroughGlyphForPoint(CGPoint point, NSTextContainer container)
short
getGlyph(long glyphIndex)
short
getGlyph(long glyphIndex, org.robovm.rt.bro.ptr.BooleanPtr isValidIndex)
long
getGlyphIndexForCharacter(long charIndex)
NSRange
getGlyphRangeForBoundingRect(CGRect bounds, NSTextContainer container)
NSRange
getGlyphRangeForBoundingRectWithoutAdditionalLayout(CGRect bounds, NSTextContainer container)
NSRange
getGlyphRangeForCharacterRange(NSRange charRange, NSRange actualCharRange)
long
getGlyphs(NSRange glyphRange, org.robovm.rt.bro.ptr.ShortPtr glyphBuffer, org.robovm.rt.bro.ptr.MachineSizedSIntPtr props, org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexBuffer, org.robovm.rt.bro.ptr.BytePtr bidiLevelBuffer)
double
getHyphenationFactor()
long
getLineFragmentInsertionPoints(long charIndex, boolean aFlag, boolean dFlag, org.robovm.rt.bro.ptr.MachineSizedFloatPtr positions, org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexes)
CGRect
getLineFragmentRect(long glyphIndex, NSRange effectiveGlyphRange)
CGRect
getLineFragmentRect(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)
CGRect
getLineFragmentUsedRect(long glyphIndex, NSRange effectiveGlyphRange)
CGRect
getLineFragmentUsedRect(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)
CGPoint
getLocation(long glyphIndex)
boolean
getNotShownAttribute(long glyphIndex)
long
getNumberOfGlyphs()
NSGlyphProperty
getPropertyForGlyph(long glyphIndex)
NSRange
getRangeOfNominallySpacedGlyphsContainingIndex(long glyphIndex)
long
getSlyphIndexForPoint(CGPoint point, NSTextContainer container)
long
getSlyphIndexForPoint(CGPoint point, NSTextContainer container, org.robovm.rt.bro.ptr.MachineSizedFloatPtr partialFraction)
NSTextContainer
getTextContainer(long glyphIndex, NSRange effectiveGlyphRange)
NSTextContainer
getTextContainer(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)
NSArray<NSTextContainer>
getTextContainers()
NSTextStorage
getTextStorage()
NSRange
getTruncatedGlyphRangeInLineFragment(long glyphIndex)
CGRect
getUsedRectForTextContainer(NSTextContainer container)
NSRange
glyphRangeForTextContainer(NSTextContainer container)
boolean
hasNonContiguousLayout()
protected long
init(NSCoder coder)
void
insertTextContainer(NSTextContainer container, long index)
void
invalidateDisplayForCharacterRange(NSRange charRange)
void
invalidateDisplayForGlyphRange(NSRange glyphRange)
void
invalidateGlyphs(NSRange charRange, long delta, NSRange actualCharRange)
void
invalidateLayout(NSRange charRange, NSRange actualCharRange)
boolean
isLimitsLayoutForSuspiciousContents()
boolean
isValidGlyphIndex(long glyphIndex)
void
processEditing(NSTextStorage textStorage, NSTextStorageEditActions editMask, NSRange newCharRange, long delta, NSRange invalidatedCharRange)
void
removeTextContainer(long index)
void
setAllowsNonContiguousLayout(boolean v)
void
setAttachmentSize(CGSize attachmentSize, NSRange glyphRange)
void
setDelegate(NSLayoutManagerDelegate v)
void
setDrawsOutsideLineFragment(boolean flag, long glyphIndex)
void
setExtraLineFragmentRect(CGRect fragmentRect, CGRect usedRect, NSTextContainer container)
void
setGlyphs(org.robovm.rt.bro.ptr.ShortPtr glyphs, org.robovm.rt.bro.ptr.MachineSizedSIntPtr props, org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexes, UIFont aFont, NSRange glyphRange)
void
setHyphenationFactor(double v)
void
setLimitsLayoutForSuspiciousContents(boolean v)
void
setLineFragmentRect(CGRect fragmentRect, NSRange glyphRange, CGRect usedRect)
void
setLocation(CGPoint location, NSRange glyphRange)
void
setNotShownAttribute(boolean flag, long glyphIndex)
void
setShowsControlCharacters(boolean v)
void
setShowsInvisibleCharacters(boolean v)
void
setTextContainer(NSTextContainer container, NSRange glyphRange)
void
setTextStorage(NSTextStorage v)
void
setUsesFontLeading(boolean v)
protected void
showCGGlyphs(long glyphs, CGPoint positions, long glyphCount, UIFont font, CGAffineTransform textMatrix, NSDictionary<NSString,?> attributes, CGContext graphicsContext)
void
showCGGlyphs(short[] glyphs, CGPoint[] positions, UIFont font, CGAffineTransform textMatrix, NSDictionary<NSString,?> attributes, CGContext graphicsContext)
boolean
showsControlCharacters()
boolean
showsInvisibleCharacters()
void
strikethrough(NSRange glyphRange, NSUnderlineStyle strikethroughVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
void
textContainerChangedGeometry(NSTextContainer container)
void
underline(NSRange glyphRange, NSUnderlineStyle underlineVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
boolean
usesFontLeading()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSLayoutManager
public NSLayoutManager()
-
NSLayoutManager
protected NSLayoutManager(NSObject.Handle h, long handle)
-
NSLayoutManager
protected NSLayoutManager(NSObject.SkipInit skipInit)
-
NSLayoutManager
public NSLayoutManager(NSCoder coder)
-
-
Method Detail
-
getTextStorage
public NSTextStorage getTextStorage()
-
setTextStorage
public void setTextStorage(NSTextStorage v)
-
getTextContainers
public NSArray<NSTextContainer> getTextContainers()
-
getDelegate
public NSLayoutManagerDelegate getDelegate()
-
setDelegate
public void setDelegate(NSLayoutManagerDelegate v)
-
showsInvisibleCharacters
public boolean showsInvisibleCharacters()
-
setShowsInvisibleCharacters
public void setShowsInvisibleCharacters(boolean v)
-
showsControlCharacters
public boolean showsControlCharacters()
-
setShowsControlCharacters
public void setShowsControlCharacters(boolean v)
-
getHyphenationFactor
public double getHyphenationFactor()
-
setHyphenationFactor
public void setHyphenationFactor(double v)
-
usesFontLeading
public boolean usesFontLeading()
-
setUsesFontLeading
public void setUsesFontLeading(boolean v)
-
allowsNonContiguousLayout
public boolean allowsNonContiguousLayout()
- Since:
- Available in iOS 7.0 and later.
-
setAllowsNonContiguousLayout
public void setAllowsNonContiguousLayout(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
hasNonContiguousLayout
public boolean hasNonContiguousLayout()
- Since:
- Available in iOS 7.0 and later.
-
isLimitsLayoutForSuspiciousContents
public boolean isLimitsLayoutForSuspiciousContents()
- Since:
- Available in iOS 12.0 and later.
-
setLimitsLayoutForSuspiciousContents
public void setLimitsLayoutForSuspiciousContents(boolean v)
- Since:
- Available in iOS 12.0 and later.
-
getNumberOfGlyphs
public long getNumberOfGlyphs()
-
getExtraLineFragmentRect
public CGRect getExtraLineFragmentRect()
-
getExtraLineFragmentUsedRect
public CGRect getExtraLineFragmentUsedRect()
-
getExtraLineFragmentTextContainer
public NSTextContainer getExtraLineFragmentTextContainer()
-
showCGGlyphs
public void showCGGlyphs(short[] glyphs, CGPoint[] positions, UIFont font, CGAffineTransform textMatrix, NSDictionary<NSString,?> attributes, CGContext graphicsContext)
-
init
protected long init(NSCoder coder)
-
addTextContainer
public void addTextContainer(NSTextContainer container)
-
insertTextContainer
public void insertTextContainer(NSTextContainer container, long index)
-
removeTextContainer
public void removeTextContainer(long index)
-
textContainerChangedGeometry
public void textContainerChangedGeometry(NSTextContainer container)
-
invalidateGlyphs
public void invalidateGlyphs(NSRange charRange, long delta, NSRange actualCharRange)
-
invalidateLayout
public void invalidateLayout(NSRange charRange, NSRange actualCharRange)
- Since:
- Available in iOS 7.0 and later.
-
invalidateDisplayForCharacterRange
public void invalidateDisplayForCharacterRange(NSRange charRange)
-
invalidateDisplayForGlyphRange
public void invalidateDisplayForGlyphRange(NSRange glyphRange)
-
processEditing
public void processEditing(NSTextStorage textStorage, NSTextStorageEditActions editMask, NSRange newCharRange, long delta, NSRange invalidatedCharRange)
- Since:
- Available in iOS 7.0 and later.
-
ensureGlyphsForCharacterRange
public void ensureGlyphsForCharacterRange(NSRange charRange)
-
ensureGlyphsForGlyphRange
public void ensureGlyphsForGlyphRange(NSRange glyphRange)
-
ensureLayoutForCharacterRange
public void ensureLayoutForCharacterRange(NSRange charRange)
-
ensureLayoutForGlyphRange
public void ensureLayoutForGlyphRange(NSRange glyphRange)
-
ensureLayoutForTextContainer
public void ensureLayoutForTextContainer(NSTextContainer container)
-
ensureLayoutForBoundingRect
public void ensureLayoutForBoundingRect(CGRect bounds, NSTextContainer container)
-
setGlyphs
public void setGlyphs(org.robovm.rt.bro.ptr.ShortPtr glyphs, org.robovm.rt.bro.ptr.MachineSizedSIntPtr props, org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexes, UIFont aFont, NSRange glyphRange)
- Since:
- Available in iOS 7.0 and later.
-
isValidGlyphIndex
public boolean isValidGlyphIndex(long glyphIndex)
- Since:
- Available in iOS 7.0 and later.
-
getPropertyForGlyph
public NSGlyphProperty getPropertyForGlyph(long glyphIndex)
- Since:
- Available in iOS 7.0 and later.
-
getCharacterIndexForGlyph
public long getCharacterIndexForGlyph(long glyphIndex)
-
getGlyphIndexForCharacter
public long getGlyphIndexForCharacter(long charIndex)
-
getGlyphs
public long getGlyphs(NSRange glyphRange, org.robovm.rt.bro.ptr.ShortPtr glyphBuffer, org.robovm.rt.bro.ptr.MachineSizedSIntPtr props, org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexBuffer, org.robovm.rt.bro.ptr.BytePtr bidiLevelBuffer)
- Since:
- Available in iOS 7.0 and later.
-
setTextContainer
public void setTextContainer(NSTextContainer container, NSRange glyphRange)
-
setLineFragmentRect
public void setLineFragmentRect(CGRect fragmentRect, NSRange glyphRange, CGRect usedRect)
-
setExtraLineFragmentRect
public void setExtraLineFragmentRect(CGRect fragmentRect, CGRect usedRect, NSTextContainer container)
-
setNotShownAttribute
public void setNotShownAttribute(boolean flag, long glyphIndex)
-
setDrawsOutsideLineFragment
public void setDrawsOutsideLineFragment(boolean flag, long glyphIndex)
-
getFirstUnlaidCharacterIndex
public void getFirstUnlaidCharacterIndex(org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndex, org.robovm.rt.bro.ptr.MachineSizedUIntPtr glyphIndex)
-
firstUnlaidCharacterIndex
public long firstUnlaidCharacterIndex()
-
firstUnlaidGlyphIndex
public long firstUnlaidGlyphIndex()
-
getTextContainer
public NSTextContainer getTextContainer(long glyphIndex, NSRange effectiveGlyphRange)
-
getTextContainer
public NSTextContainer getTextContainer(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)
- Since:
- Available in iOS 9.0 and later.
-
getUsedRectForTextContainer
public CGRect getUsedRectForTextContainer(NSTextContainer container)
-
getLineFragmentRect
public CGRect getLineFragmentRect(long glyphIndex, NSRange effectiveGlyphRange)
-
getLineFragmentRect
public CGRect getLineFragmentRect(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)
- Since:
- Available in iOS 9.0 and later.
-
getLineFragmentUsedRect
public CGRect getLineFragmentUsedRect(long glyphIndex, NSRange effectiveGlyphRange)
-
getLineFragmentUsedRect
public CGRect getLineFragmentUsedRect(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)
- Since:
- Available in iOS 9.0 and later.
-
getLocation
public CGPoint getLocation(long glyphIndex)
-
getNotShownAttribute
public boolean getNotShownAttribute(long glyphIndex)
-
getDrawsOutsideLineFragment
public boolean getDrawsOutsideLineFragment(long glyphIndex)
-
getAttachmentSize
public CGSize getAttachmentSize(long glyphIndex)
-
getTruncatedGlyphRangeInLineFragment
public NSRange getTruncatedGlyphRangeInLineFragment(long glyphIndex)
- Since:
- Available in iOS 7.0 and later.
-
getGlyphRangeForCharacterRange
public NSRange getGlyphRangeForCharacterRange(NSRange charRange, NSRange actualCharRange)
-
getCharacterRangeForGlyphRange
public NSRange getCharacterRangeForGlyphRange(NSRange glyphRange, NSRange actualGlyphRange)
-
glyphRangeForTextContainer
public NSRange glyphRangeForTextContainer(NSTextContainer container)
-
getRangeOfNominallySpacedGlyphsContainingIndex
public NSRange getRangeOfNominallySpacedGlyphsContainingIndex(long glyphIndex)
-
getBoundingRectForGlyphRange
public CGRect getBoundingRectForGlyphRange(NSRange glyphRange, NSTextContainer container)
-
getGlyphRangeForBoundingRect
public NSRange getGlyphRangeForBoundingRect(CGRect bounds, NSTextContainer container)
-
getGlyphRangeForBoundingRectWithoutAdditionalLayout
public NSRange getGlyphRangeForBoundingRectWithoutAdditionalLayout(CGRect bounds, NSTextContainer container)
-
getSlyphIndexForPoint
public long getSlyphIndexForPoint(CGPoint point, NSTextContainer container, org.robovm.rt.bro.ptr.MachineSizedFloatPtr partialFraction)
-
getSlyphIndexForPoint
public long getSlyphIndexForPoint(CGPoint point, NSTextContainer container)
-
getFractionOfDistanceThroughGlyphForPoint
public double getFractionOfDistanceThroughGlyphForPoint(CGPoint point, NSTextContainer container)
-
getCharacterIndexForPoint
public long getCharacterIndexForPoint(CGPoint point, NSTextContainer container, org.robovm.rt.bro.ptr.MachineSizedFloatPtr partialFraction)
-
getLineFragmentInsertionPoints
public long getLineFragmentInsertionPoints(long charIndex, boolean aFlag, boolean dFlag, org.robovm.rt.bro.ptr.MachineSizedFloatPtr positions, org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexes)
-
enumerateLineFragments
public void enumerateLineFragments(NSRange glyphRange, org.robovm.objc.block.VoidBlock5<CGRect,CGRect,NSTextContainer,NSRange,org.robovm.rt.bro.ptr.BooleanPtr> block)
- Since:
- Available in iOS 7.0 and later.
-
enumerateEnclosingRects
public void enumerateEnclosingRects(NSRange glyphRange, NSRange selectedRange, NSTextContainer textContainer, org.robovm.objc.block.VoidBlock2<CGRect,org.robovm.rt.bro.ptr.BooleanPtr> block)
- Since:
- Available in iOS 7.0 and later.
-
showCGGlyphs
protected void showCGGlyphs(long glyphs, CGPoint positions, long glyphCount, UIFont font, CGAffineTransform textMatrix, NSDictionary<NSString,?> attributes, CGContext graphicsContext)
- Since:
- Available in iOS 7.0 and later.
-
fillBackground
protected void fillBackground(CGRect rectArray, long rectCount, NSRange charRange, UIColor color)
- Since:
- Available in iOS 7.0 and later.
-
drawUnderline
public void drawUnderline(NSRange glyphRange, NSUnderlineStyle underlineVal, double baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
-
underline
public void underline(NSRange glyphRange, NSUnderlineStyle underlineVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
-
drawStrikethrough
public void drawStrikethrough(NSRange glyphRange, NSUnderlineStyle strikethroughVal, double baselineOffset, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
-
strikethrough
public void strikethrough(NSRange glyphRange, NSUnderlineStyle strikethroughVal, CGRect lineRect, NSRange lineGlyphRange, CGPoint containerOrigin)
-
getGlyph
public short getGlyph(long glyphIndex, org.robovm.rt.bro.ptr.BooleanPtr isValidIndex)
-
getGlyph
public short getGlyph(long glyphIndex)
-
-