Package apple.uikit.protocol
Interface NSTextViewportLayoutControllerDelegate
-
public interface NSTextViewportLayoutControllerDelegateAPI-Since: 15.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidtextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(@NotNull NSTextViewportLayoutController textViewportLayoutController, @NotNull NSTextLayoutFragment textLayoutFragment)Called when textViewportLayoutController lays out a given textLayoutFragment.default voidtextViewportLayoutControllerDidLayout(@NotNull NSTextViewportLayoutController textViewportLayoutController)Called when textViewportLayoutController is about to layout.default voidtextViewportLayoutControllerWillLayout(@NotNull NSTextViewportLayoutController textViewportLayoutController)Called when textViewportLayoutController is about to layout.CGRectviewportBoundsForTextViewportLayoutController(@NotNull NSTextViewportLayoutController textViewportLayoutController)The current viewport, typically the view visible bounds with overdraw.
-
-
-
Method Detail
-
textViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment
void textViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(@NotNull @NotNull NSTextViewportLayoutController textViewportLayoutController, @NotNull @NotNull NSTextLayoutFragment textLayoutFragment)Called when textViewportLayoutController lays out a given textLayoutFragment. The delegate should arrange to present the text layout fragment in the UI, e.g. a sublayer/subview. Layout information such as viewportBounds on textViewportLayoutController is not up-to-date at the point of this call.
-
textViewportLayoutControllerDidLayout
default void textViewportLayoutControllerDidLayout(@NotNull @NotNull NSTextViewportLayoutController textViewportLayoutController)Called when textViewportLayoutController is about to layout. Layout information on textViewportLayoutController is up-to-date at the point of this call.
-
textViewportLayoutControllerWillLayout
default void textViewportLayoutControllerWillLayout(@NotNull @NotNull NSTextViewportLayoutController textViewportLayoutController)Called when textViewportLayoutController is about to layout. Layout information on textViewportLayoutController is up-to-date at the point of this call.
-
viewportBoundsForTextViewportLayoutController
CGRect viewportBoundsForTextViewportLayoutController(@NotNull @NotNull NSTextViewportLayoutController textViewportLayoutController)
The current viewport, typically the view visible bounds with overdraw.
-
-