Class GuiTextLayout

java.lang.Object
com.render.api.gui.GuiTextLayout

public final class GuiTextLayout extends Object
Immutable positioned-glyph layout with source-aware caret and selection geometry.
  • Method Details

    • sourceText

      public String sourceText()
    • metrics

      public GuiTextMetrics metrics()
    • resourceGeneration

      public long resourceGeneration()
    • nativeShaped

      public boolean nativeShaped()
    • caretRect

      public GuiRect caretRect(int utf16Offset)
    • hitTest

      public GuiTextHit hitTest(float x, float y)
    • selectionRects

      public List<GuiRect> selectionRects(int startUtf16, int endUtf16)
    • moveVisual

      public int moveVisual(int utf16Offset, boolean right)
    • moveVertical

      public int moveVertical(int utf16Offset, boolean down)