Class Styles.SelectBoxStyle

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

public static class Styles.SelectBoxStyle extends Object
The style for a select box, see TextraSelectBox or TypingSelectBox.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.badlogic.gdx.scenes.scene2d.utils.Drawable
     
    com.badlogic.gdx.scenes.scene2d.utils.Drawable
     
    com.badlogic.gdx.scenes.scene2d.utils.Drawable
     
    com.badlogic.gdx.scenes.scene2d.utils.Drawable
     
    com.badlogic.gdx.graphics.Color
     
     
    com.badlogic.gdx.graphics.Color
     
     
    com.badlogic.gdx.graphics.Color
     
    com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SelectBoxStyle(com.badlogic.gdx.graphics.g2d.BitmapFont font, com.badlogic.gdx.graphics.Color fontColor, com.badlogic.gdx.scenes.scene2d.utils.Drawable background, com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle scrollStyle, com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle listStyle)
    Deprecated.
    Create a Font from your BitmapFont once and pass that to constructors instead.
    SelectBoxStyle(com.badlogic.gdx.scenes.scene2d.ui.SelectBox.SelectBoxStyle style)
    Deprecated.
    Create a Font from your BitmapFont once and pass that to constructors instead.
    SelectBoxStyle(Font font, com.badlogic.gdx.graphics.Color fontColor, com.badlogic.gdx.scenes.scene2d.utils.Drawable background, com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle scrollStyle, Styles.ListStyle listStyle)
     
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • font

      public Font font
    • fontColor

      public com.badlogic.gdx.graphics.Color fontColor
    • overFontColor

      @Null public com.badlogic.gdx.graphics.Color overFontColor
    • disabledFontColor

      @Null public com.badlogic.gdx.graphics.Color disabledFontColor
    • background

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

      public com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle scrollStyle
    • listStyle

      public Styles.ListStyle listStyle
    • backgroundOver

      @Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable backgroundOver
    • backgroundOpen

      @Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable backgroundOpen
    • backgroundDisabled

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

    • SelectBoxStyle

      public SelectBoxStyle()
    • SelectBoxStyle

      public SelectBoxStyle(Font font, com.badlogic.gdx.graphics.Color fontColor, @Null com.badlogic.gdx.scenes.scene2d.utils.Drawable background, com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle scrollStyle, Styles.ListStyle listStyle)
    • SelectBoxStyle

      @Deprecated public SelectBoxStyle(com.badlogic.gdx.graphics.g2d.BitmapFont font, com.badlogic.gdx.graphics.Color fontColor, @Null com.badlogic.gdx.scenes.scene2d.utils.Drawable background, com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle scrollStyle, com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle listStyle)
      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:
      font - a BitmapFont that will be copied into a new Font
      fontColor - the color to tint the given BitmapFont
      background - may be null; otherwise, drawn behind the widget as its background
      scrollStyle - will not be copied, and will be referenced directly
      listStyle - will be copied into a new Styles.ListStyle
    • SelectBoxStyle

      public SelectBoxStyle(Styles.SelectBoxStyle style)
    • SelectBoxStyle

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