Class GlyphLayout.GlyphRun

java.lang.Object
arc.graphics.g2d.GlyphLayout.GlyphRun
All Implemented Interfaces:
Pool.Poolable
Enclosing class:
GlyphLayout

public static class GlyphLayout.GlyphRun extends Object implements Pool.Poolable
Stores glyphs and positions for a piece of text which is a single color and does not span multiple lines.
  • Field Details

    • color

      public final Color color
    • glyphs

      public Seq<Font.Glyph> glyphs
    • xAdvances

      public FloatSeq xAdvances
      Contains glyphs.size+1 entries: First entry is X offset relative to the drawing position. Subsequent entries are the X advance relative to previous glyph position. Last entry is the width of the last glyph.
    • x

      public float x
    • y

      public float y
    • width

      public float width
  • Constructor Details

    • GlyphRun

      public GlyphRun()
  • Method Details

    • reset

      public void reset()
      Description copied from interface: Pool.Poolable
      Resets the object for reuse. Object references should be nulled and fields may be set to default values.
      Specified by:
      reset in interface Pool.Poolable
    • toString

      public String toString()
      Overrides:
      toString in class Object