Class Styles.TextTooltipStyle

java.lang.Object
com.github.tommyettinger.textra.Styles.TextTooltipStyle
Enclosing class:
Styles

public static class Styles.TextTooltipStyle extends Object
The style for a text tooltip, see TextraTooltip or TypingTooltip.
  • Field Details

    • label

      public Styles.LabelStyle label
    • background

      @Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable background
    • wrapWidth

      public float wrapWidth
      0 means don't wrap.
  • Constructor Details

    • TextTooltipStyle

      public TextTooltipStyle()
    • TextTooltipStyle

      public TextTooltipStyle(Styles.LabelStyle style, @Null com.badlogic.gdx.scenes.scene2d.utils.Drawable background)
    • TextTooltipStyle

      @Deprecated public TextTooltipStyle(com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style, @Null com.badlogic.gdx.scenes.scene2d.utils.Drawable background)
      Deprecated.
      Create a Font from your BitmapFont once and pass that to constructors instead.
      You should almost always avoid calling this constructor directly, because it allocates a new Font object every time (copying information from the given style), and it isn't easy to dispose the created Font.
      Parameters:
      style - a Label.LabelStyle that will have its data and BitmapFont copied into this and its Font
    • TextTooltipStyle

      public TextTooltipStyle(Styles.TextTooltipStyle style)
    • TextTooltipStyle

      @Deprecated public TextTooltipStyle(com.badlogic.gdx.scenes.scene2d.ui.TextTooltip.TextTooltipStyle style)
      Deprecated.
      Create a Font from your BitmapFont once and pass that to constructors instead.
      You should almost always avoid calling this constructor directly, because it allocates a new Font object every time (copying information from the given style), and it isn't easy to dispose the created Font.
      Parameters:
      style - a Label.LabelStyle that will have its data and BitmapFont copied into this and its Font