Package com.github.tommyettinger.textra
Class Styles.SelectBoxStyle
java.lang.Object
com.github.tommyettinger.textra.Styles.SelectBoxStyle
- Enclosing class:
- Styles
The style for a select box, see
TextraSelectBox
or TypingSelectBox
.-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.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
ConstructorsConstructorDescriptionSelectBoxStyle
(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
-
Field Details
-
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
-
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 FontfontColor
- the color to tint the given BitmapFontbackground
- may be null; otherwise, drawn behind the widget as its backgroundscrollStyle
- will not be copied, and will be referenced directlylistStyle
- will be copied into a newStyles.ListStyle
-
SelectBoxStyle
-
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
-