public class Line
extends java.lang.Object
implements com.badlogic.gdx.utils.Pool.Poolable
Font.markup(String, Layout) on Lines in a Layout. This stores each (colorful, styled) char as a
long in a libGDX LongArray. This is a Poolable class, and you can obtain a
Line with Line.POOL.obtain(), or just using a constructor.| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.utils.LongArray |
glyphs |
float |
height |
static com.badlogic.gdx.utils.Pool<Line> |
POOL |
float |
width |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
appendTo(java.lang.StringBuilder sb) |
void |
reset()
Resets the object for reuse.
|
Line |
size(float width,
float height) |
java.lang.String |
toString() |
public static final com.badlogic.gdx.utils.Pool<Line> POOL
public final com.badlogic.gdx.utils.LongArray glyphs
public float width
public float height
public Line size(float width, float height)
public void reset()
glyphs, rather than nulling it. The sizes are set to 0.reset in interface com.badlogic.gdx.utils.Pool.Poolablepublic java.lang.StringBuilder appendTo(java.lang.StringBuilder sb)
public java.lang.String toString()
toString in class java.lang.Object