Interface NSTextViewportLayoutControllerDelegate


  • public interface NSTextViewportLayoutControllerDelegate
    API-Since: 15.0
    • 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.