Uses of Class
playn.core.TextLayout
-
Uses of TextLayout in playn.core
Fields in playn.core declared as TextLayoutModifier and TypeFieldDescriptionfinal TextLayout[]TextBlock.linesThe individual lines of text in this block.Methods in playn.core that return TextLayoutModifier and TypeMethodDescriptionabstract TextLayoutGraphics.layoutText(String text, TextFormat format) Lays out a single line of text using the specified format.abstract TextLayout[]Graphics.layoutText(String text, TextFormat format, TextWrap wrap) Lays out multiple lines of text using the specified format and wrap configuration.Methods in playn.core with parameters of type TextLayoutModifier and TypeMethodDescriptionabstract CanvasCanvas.fillText(TextLayout text, float x, float y) Fills the text at the specified location.static RectangleTextBlock.getBounds(TextLayout[] lines, Rectangle into) Computes the bounds of a block of text.abstract CanvasCanvas.strokeText(TextLayout text, float x, float y) Strokes the text at the specified location.Constructors in playn.core with parameters of type TextLayoutModifierConstructorDescriptionTextBlock(TextLayout[] lines) Creates a text block with the suppliedlines.