Package apple.uikit.protocol
Interface NSTextLayoutManagerDelegate
-
public interface NSTextLayoutManagerDelegateAPI-Since: 15.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @Nullable NSDictionary<java.lang.String,?>textLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes(@NotNull NSTextLayoutManager textLayoutManager, @NotNull java.lang.Object link, @NotNull NSTextLocation location, @NotNull NSDictionary<java.lang.String,?> renderingAttributes)Rendering attributes Returns a dictionary of rendering attributes for rendering NSLinkAttributeName.default booleantextLayoutManagerShouldBreakLineBeforeLocationHyphenating(@NotNull NSTextLayoutManager textLayoutManager, @NotNull NSTextLocation location, boolean hyphenating)Layout behavior Invoked while determining the soft line break point.default @NotNull NSTextLayoutFragmenttextLayoutManagerTextLayoutFragmentForLocationInTextElement(@NotNull NSTextLayoutManager textLayoutManager, @NotNull NSTextLocation location, @NotNull NSTextElement textElement)NSTextLayoutFragment management Returns NSTextLayoutFragment for location in textElement.
-
-
-
Method Detail
-
textLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes
@Nullable default @Nullable NSDictionary<java.lang.String,?> textLayoutManagerRenderingAttributesForLinkAtLocationDefaultAttributes(@NotNull @NotNull NSTextLayoutManager textLayoutManager, @NotNull @NotNull java.lang.Object link, @NotNull @NotNull NSTextLocation location, @NotNull @NotNull NSDictionary<java.lang.String,?> renderingAttributes)
Rendering attributes Returns a dictionary of rendering attributes for rendering NSLinkAttributeName. Just as other rendering attributes, specifying NSNull removes the attribute from the final attributes used for rendering. It has priority over the general rendering attributes.
-
textLayoutManagerShouldBreakLineBeforeLocationHyphenating
default boolean textLayoutManagerShouldBreakLineBeforeLocationHyphenating(@NotNull @NotNull NSTextLayoutManager textLayoutManager, @NotNull @NotNull NSTextLocation location, boolean hyphenating)Layout behavior Invoked while determining the soft line break point. When hyphenating=NO, NSTextLayoutManager tries to find the next line break opportunity before location. When hyphenating=YES, it is an auto-hyphenation point.
-
textLayoutManagerTextLayoutFragmentForLocationInTextElement
@NotNull default @NotNull NSTextLayoutFragment textLayoutManagerTextLayoutFragmentForLocationInTextElement(@NotNull @NotNull NSTextLayoutManager textLayoutManager, @NotNull @NotNull NSTextLocation location, @NotNull @NotNull NSTextElement textElement)
NSTextLayoutFragment management Returns NSTextLayoutFragment for location in textElement. NSTextLayoutManagerDelegate could provide an NSTextLayoutFragment specialized for an NSTextElement subclass targeted for the rendering surface.
-
-