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,NSSecureCoding,ObjCProtocol
public class NSLayoutManager extends NSObject implements NSSecureCoding
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSLayoutManager.NSLayoutManagerPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description NSLayoutManager()NSLayoutManager(NSCoder coder)protectedNSLayoutManager(NSObject.Handle h, long handle)protectedNSLayoutManager(NSObject.SkipInit skipInit) -
Method Summary
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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
NSLayoutManager
public NSLayoutManager() -
NSLayoutManager
-
NSLayoutManager
-
NSLayoutManager
-
-
Method Details
-
getTextStorage
-
setTextStorage
-
getTextContainers
-
getDelegate
-
setDelegate
-
showsInvisibleCharacters
public boolean showsInvisibleCharacters() -
setShowsInvisibleCharacters
public void setShowsInvisibleCharacters(boolean v) -
showsControlCharacters
public boolean showsControlCharacters() -
setShowsControlCharacters
public void setShowsControlCharacters(boolean v) -
usesFontLeading
public boolean usesFontLeading() -
setUsesFontLeading
public void setUsesFontLeading(boolean v) -
allowsNonContiguousLayout
public boolean allowsNonContiguousLayout() -
setAllowsNonContiguousLayout
public void setAllowsNonContiguousLayout(boolean v) -
hasNonContiguousLayout
public boolean hasNonContiguousLayout() -
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.
-
usesDefaultHyphenation
public boolean usesDefaultHyphenation()- Since:
- Available in iOS 13.0 and later.
-
setUsesDefaultHyphenation
public void setUsesDefaultHyphenation(boolean v)- Since:
- Available in iOS 13.0 and later.
-
getNumberOfGlyphs
public long getNumberOfGlyphs() -
getExtraLineFragmentRect
-
getExtraLineFragmentUsedRect
-
getExtraLineFragmentTextContainer
-
getHyphenationFactor
Deprecated.Deprecated in iOS 13.0. Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead. -
setHyphenationFactor
Deprecated.Deprecated in iOS 13.0. Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead. -
supportsSecureCoding
public static boolean supportsSecureCoding() -
showCGGlyphs
public void showCGGlyphs(short[] glyphs, CGPoint[] positions, UIFont font, CGAffineTransform textMatrix, NSDictionary<NSString,?> attributes, CGContext graphicsContext) -
fillBackground
-
init
-
addTextContainer
-
insertTextContainer
-
removeTextContainer
public void removeTextContainer(long index) -
textContainerChangedGeometry
-
invalidateGlyphs
-
invalidateLayout
-
invalidateDisplayForCharacterRange
-
invalidateDisplayForGlyphRange
-
processEditing
public void processEditing(NSTextStorage textStorage, NSTextStorageEditActions editMask, NSRange newCharRange, long delta, NSRange invalidatedCharRange) -
ensureGlyphsForCharacterRange
-
ensureGlyphsForGlyphRange
-
ensureLayoutForCharacterRange
-
ensureLayoutForGlyphRange
-
ensureLayoutForTextContainer
-
ensureLayoutForBoundingRect
-
setGlyphs
public void setGlyphs(ShortPtr glyphs, MachineSizedSIntPtr props, MachineSizedUIntPtr charIndexes, UIFont aFont, NSRange glyphRange) -
isValidGlyphIndex
public boolean isValidGlyphIndex(long glyphIndex) -
getPropertyForGlyph
-
getCharacterIndexForGlyph
public long getCharacterIndexForGlyph(long glyphIndex) -
getGlyphIndexForCharacter
public long getGlyphIndexForCharacter(long charIndex) -
getGlyphs
public long getGlyphs(NSRange glyphRange, ShortPtr glyphBuffer, MachineSizedSIntPtr props, MachineSizedUIntPtr charIndexBuffer, BytePtr bidiLevelBuffer) -
setTextContainer
-
setLineFragmentRect
-
setExtraLineFragmentRect
public void setExtraLineFragmentRect(CGRect fragmentRect, CGRect usedRect, NSTextContainer container) -
setLocation
-
setNotShownAttribute
public void setNotShownAttribute(boolean flag, long glyphIndex) -
setDrawsOutsideLineFragment
public void setDrawsOutsideLineFragment(boolean flag, long glyphIndex) -
setAttachmentSize
-
getFirstUnlaidCharacterIndex
public void getFirstUnlaidCharacterIndex(MachineSizedUIntPtr charIndex, MachineSizedUIntPtr glyphIndex) -
firstUnlaidCharacterIndex
public long firstUnlaidCharacterIndex() -
firstUnlaidGlyphIndex
public long firstUnlaidGlyphIndex() -
getTextContainer
-
getTextContainer
public NSTextContainer getTextContainer(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)- Since:
- Available in iOS 9.0 and later.
-
getUsedRectForTextContainer
-
getLineFragmentRect
-
getLineFragmentRect
public CGRect getLineFragmentRect(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)- Since:
- Available in iOS 9.0 and later.
-
getLineFragmentUsedRect
-
getLineFragmentUsedRect
public CGRect getLineFragmentUsedRect(long glyphIndex, NSRange effectiveGlyphRange, boolean withoutAdditionalLayout)- Since:
- Available in iOS 9.0 and later.
-
getLocation
-
getNotShownAttribute
public boolean getNotShownAttribute(long glyphIndex) -
getDrawsOutsideLineFragment
public boolean getDrawsOutsideLineFragment(long glyphIndex) -
getAttachmentSize
-
getTruncatedGlyphRangeInLineFragment
-
getGlyphRangeForCharacterRange
-
getCharacterRangeForGlyphRange
-
glyphRangeForTextContainer
-
getRangeOfNominallySpacedGlyphsContainingIndex
-
getBoundingRectForGlyphRange
-
getGlyphRangeForBoundingRect
-
getGlyphRangeForBoundingRectWithoutAdditionalLayout
public NSRange getGlyphRangeForBoundingRectWithoutAdditionalLayout(CGRect bounds, NSTextContainer container) -
getSlyphIndexForPoint
public long getSlyphIndexForPoint(CGPoint point, NSTextContainer container, MachineSizedFloatPtr partialFraction) -
getSlyphIndexForPoint
-
getFractionOfDistanceThroughGlyphForPoint
-
getCharacterIndexForPoint
public long getCharacterIndexForPoint(CGPoint point, NSTextContainer container, MachineSizedFloatPtr partialFraction) -
getLineFragmentInsertionPoints
public long getLineFragmentInsertionPoints(long charIndex, boolean aFlag, boolean dFlag, MachineSizedFloatPtr positions, MachineSizedUIntPtr charIndexes) -
enumerateLineFragments
public void enumerateLineFragments(NSRange glyphRange, VoidBlock5<CGRect,CGRect,NSTextContainer,NSRange,BooleanPtr> block) -
enumerateEnclosingRects
public void enumerateEnclosingRects(NSRange glyphRange, NSRange selectedRange, NSTextContainer textContainer, VoidBlock2<CGRect,BooleanPtr> block) -
drawBackground
-
drawGlyphs
-
showCGGlyphs
public void showCGGlyphs(ShortPtr glyphs, CGPoint positions, long glyphCount, UIFont font, CGAffineTransform textMatrix, NSDictionary<NSString,?> attributes, CGContext CGContext)- Since:
- Available in iOS 13.0 and later.
-
fillBackground
-
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
-
getGlyph
public short getGlyph(long glyphIndex) -
showCGGlyphs
@Deprecated protected void showCGGlyphs(long glyphs, CGPoint positions, long glyphCount, UIFont font, CGAffineTransform textMatrix, NSDictionary<NSString,?> attributes, CGContext graphicsContext)Deprecated.Deprecated in iOS 13.0. Use showCGGlyphs:positions:count:font:textMatrix:attributes:inContext: -
encode
-