public interface NSLayoutManagerDelegate
| Modifier and Type | Method and Description |
|---|---|
default CGRect |
layoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(NSLayoutManager layoutManager,
long glyphIndex,
NSTextContainer textContainer,
CGRect proposedRect,
CGPoint glyphPosition,
long charIndex)
Invoked for resolving the glyph metrics for NSControlCharacterWhitespaceAction control character.
|
default void |
layoutManagerDidCompleteLayoutForTextContainerAtEnd(NSLayoutManager layoutManager,
NSTextContainer textContainer,
boolean layoutFinishedFlag)
This is sent whenever a container has been filled.
|
default void |
layoutManagerDidInvalidateLayout(NSLayoutManager sender)
Layout processing ***********************
This is sent whenever layout or glyphs become invalidated in a layout manager which previously had all layout complete.
|
default double |
layoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(NSLayoutManager layoutManager,
long glyphIndex,
CGRect rect)
Returns the spacing after the line ending with glyphIndex.
|
default double |
layoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(NSLayoutManager layoutManager,
long glyphIndex,
CGRect rect)
Returns the paragraph spacing after the line ending with glyphIndex.
|
default double |
layoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(NSLayoutManager layoutManager,
long glyphIndex,
CGRect rect)
Returns the paragraph spacing before the line starting with glyphIndex.
|
default boolean |
layoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex(NSLayoutManager layoutManager,
long charIndex)
Invoked while determining the hyphenation point.
|
default boolean |
layoutManagerShouldBreakLineByWordBeforeCharacterAtIndex(NSLayoutManager layoutManager,
long charIndex)
Invoked while determining the soft line break point.
|
default long |
layoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange(NSLayoutManager layoutManager,
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)
Glyph generation ***********************
This is sent whenever layoutManager is about to store the initial glyph information via -setGlyphs:properties:characterIndexes:forGlyphRange:.
|
default boolean |
layoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange(NSLayoutManager layoutManager,
CGRect lineFragmentRect,
CGRect lineFragmentUsedRect,
org.moe.natj.general.ptr.NFloatPtr baselineOffset,
NSTextContainer textContainer,
NSRange glyphRange)
Allows NSLayoutManagerDelegate to customize the line fragment geometry before committing to the layout cache.
|
default long |
layoutManagerShouldUseActionForControlCharacterAtIndex(NSLayoutManager layoutManager,
long action,
long charIndex)
Returns the control character action for the control character at charIndex.
|
default void |
layoutManagerTextContainerDidChangeGeometryFromSize(NSLayoutManager layoutManager,
NSTextContainer textContainer,
CGSize oldSize)
This is sent right before layoutManager invalidates the layout due to textContainer changing geometry.
|
default CGRect layoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(NSLayoutManager layoutManager, long glyphIndex, NSTextContainer textContainer, CGRect proposedRect, CGPoint glyphPosition, long charIndex)
default void layoutManagerDidCompleteLayoutForTextContainerAtEnd(NSLayoutManager layoutManager, NSTextContainer textContainer, boolean layoutFinishedFlag)
default double layoutManagerLineSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(NSLayoutManager layoutManager, long glyphIndex, CGRect rect)
default double layoutManagerParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(NSLayoutManager layoutManager, long glyphIndex, CGRect rect)
default double layoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect(NSLayoutManager layoutManager, long glyphIndex, CGRect rect)
default boolean layoutManagerShouldBreakLineByHyphenatingBeforeCharacterAtIndex(NSLayoutManager layoutManager, long charIndex)
default boolean layoutManagerShouldBreakLineByWordBeforeCharacterAtIndex(NSLayoutManager layoutManager, long charIndex)
default long layoutManagerShouldGenerateGlyphsPropertiesCharacterIndexesFontForGlyphRange(NSLayoutManager layoutManager, 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)
default boolean layoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange(NSLayoutManager layoutManager, CGRect lineFragmentRect, CGRect lineFragmentUsedRect, org.moe.natj.general.ptr.NFloatPtr baselineOffset, NSTextContainer textContainer, NSRange glyphRange)
default long layoutManagerShouldUseActionForControlCharacterAtIndex(NSLayoutManager layoutManager, long action, long charIndex)
default void layoutManagerTextContainerDidChangeGeometryFromSize(NSLayoutManager layoutManager, NSTextContainer textContainer, CGSize oldSize)
default void layoutManagerDidInvalidateLayout(NSLayoutManager sender)