Uses of Class
playn.core.TextLayout
-
Uses of TextLayout in playn.core
Fields in playn.core declared as TextLayoutModifier and TypeFieldDescriptionfinal TextLayout[]
TextBlock.lines
The individual lines of text in this block.Methods in playn.core that return TextLayoutModifier and TypeMethodDescriptionabstract TextLayout
Graphics.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 Canvas
Canvas.fillText
(TextLayout text, float x, float y) Fills the text at the specified location.static Rectangle
TextBlock.getBounds
(TextLayout[] lines, Rectangle into) Computes the bounds of a block of text.abstract Canvas
Canvas.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
.