Package com.github.tommyettinger.textra
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
The style for a select box, see
TextraCheckBox or TypingCheckBox.-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.scenes.scene2d.utils.Drawablecom.badlogic.gdx.scenes.scene2d.utils.Drawablecom.badlogic.gdx.scenes.scene2d.utils.Drawablecom.badlogic.gdx.scenes.scene2d.utils.Drawablecom.badlogic.gdx.scenes.scene2d.utils.Drawablecom.badlogic.gdx.scenes.scene2d.utils.DrawableFields inherited from class com.github.tommyettinger.textra.Styles.TextButtonStyle
checkedDownFontColor, checkedFocusedFontColor, checkedFontColor, checkedOverFontColor, disabledFontColor, downFontColor, focusedFontColor, font, fontColor, overFontColorFields inherited from class com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle
checked, checkedDown, checkedFocused, checkedOffsetX, checkedOffsetY, checkedOver, disabled, down, focused, over, pressedOffsetX, pressedOffsetY, unpressedOffsetX, unpressedOffsetY, up -
Constructor Summary
ConstructorsConstructorDescriptionCheckBoxStyle(com.badlogic.gdx.scenes.scene2d.ui.CheckBox.CheckBoxStyle style) Deprecated.Create a Font from your BitmapFont once and pass that to constructors instead.CheckBoxStyle(com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOff, com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOn, com.badlogic.gdx.graphics.g2d.BitmapFont font, com.badlogic.gdx.graphics.Color fontColor) Deprecated.Create a Font from your BitmapFont once and pass that to constructors instead.CheckBoxStyle(com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOff, com.badlogic.gdx.scenes.scene2d.utils.Drawable checkboxOn, Font font, com.badlogic.gdx.graphics.Color fontColor) -
Method Summary
-
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 FontfontColor- the color to tint the given BitmapFont
-
CheckBoxStyle
-
CheckBoxStyle
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
-