Class Styles.CheckBoxStyle

java.lang.Object
com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle
com.github.tommyettinger.textra.Styles.TextButtonStyle
com.github.tommyettinger.textra.Styles.CheckBoxStyle
Enclosing class:
Styles

public static class Styles.CheckBoxStyle extends Styles.TextButtonStyle
The style for a select box, see TextraCheckBox or TypingCheckBox.
  • Field Details

    • checkboxOn

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOn
    • checkboxOff

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOff
    • checkboxOnOver

      @Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOnOver
    • checkboxOver

      @Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOver
    • checkboxOnDisabled

      @Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOnDisabled
    • checkboxOffDisabled

      @Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOffDisabled
  • Constructor Details

    • CheckBoxStyle

      public CheckBoxStyle()
    • CheckBoxStyle

      public CheckBoxStyle(com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOff, com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOn, Font font, @Null com.badlogic.gdx.graphics.Color fontColor)
    • CheckBoxStyle

      @Deprecated public CheckBoxStyle(com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOff, com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOn, com.badlogic.gdx.graphics.g2d.BitmapFont font, @Null com.badlogic.gdx.graphics.Color fontColor)
      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 BitmapFont), and it isn't easy to dispose the created Font.
      Parameters:
      checkboxOff - drawn when the checkbox state is "off"
      checkboxOn - drawn when the checkbox state is "on"
      font - a BitmapFont that will be copied into a new Font
      fontColor - the color to tint the given BitmapFont
    • CheckBoxStyle

      public CheckBoxStyle(Styles.CheckBoxStyle style)
    • CheckBoxStyle

      @Deprecated public CheckBoxStyle(com.badlogic.gdx.scenes.scene2d.ui.CheckBox.CheckBoxStyle 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