Class GlyphLayout.GlyphRun

  • All Implemented Interfaces:
    com.badlogic.gdx.utils.Pool.Poolable
    Enclosing class:
    GlyphLayout

    public static class GlyphLayout.GlyphRun
    extends java.lang.Object
    implements com.badlogic.gdx.utils.Pool.Poolable
    Stores glyphs and positions for a piece of text which is a single color and does not span multiple lines.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      com.badlogic.gdx.graphics.Color color  
      com.badlogic.gdx.utils.Array<BitmapFont.Glyph> glyphs  
      float width  
      float x  
      com.badlogic.gdx.utils.FloatArray xAdvances
      Contains glyphs.size+1 entries: First entry is X offset relative to the drawing position.
      float y  
    • Constructor Summary

      Constructors 
      Constructor Description
      GlyphRun()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void reset()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • xAdvances

        public com.badlogic.gdx.utils.FloatArray 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
      • color

        public final com.badlogic.gdx.graphics.Color color
    • Constructor Detail

      • GlyphRun

        public GlyphRun()
    • Method Detail

      • reset

        public void reset()
        Specified by:
        reset in interface com.badlogic.gdx.utils.Pool.Poolable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object