Class GuiTextLayout
java.lang.Object
com.render.api.gui.GuiTextLayout
Immutable positioned-glyph layout with source-aware caret and selection geometry.
-
Method Summary
Modifier and TypeMethodDescriptioncaretRect(int utf16Offset) caretRect(int utf16Offset, GuiTextAffinity affinity) Returns the selected logical edge at a bidirectional boundary.Optional authored clip rectangle; ink and effect metrics remain available outside this rectangle.hitTest(float x, float y) metrics()intmoveVertical(int utf16Offset, boolean down) intmoveVisual(int utf16Offset, boolean right) moveVisual(int utf16Offset, GuiTextAffinity affinity, boolean right) Moves to the next distinct visual position while preserving the logical edge at bidi boundaries.booleanbooleanWhether the retained layout can be submitted, including per-cluster Minecraft fallback glyphs.longselectionRects(int startUtf16, int endUtf16)
-
Method Details
-
sourceText
-
metrics
-
resourceGeneration
public long resourceGeneration() -
nativeShaped
public boolean nativeShaped() -
renderable
public boolean renderable()Whether the retained layout can be submitted, including per-cluster Minecraft fallback glyphs. -
clipBounds
-
caretRect
-
caretRect
Returns the selected logical edge at a bidirectional boundary. -
hitTest
-
selectionRects
-
moveVisual
public int moveVisual(int utf16Offset, boolean right) -
moveVisual
Moves to the next distinct visual position while preserving the logical edge at bidi boundaries. Use the returnedGuiTextHit.trailing()value as the next call's affinity. -
moveVertical
public int moveVertical(int utf16Offset, boolean down)
-