Package com.github.tommyettinger.textra
Class Styles.TextTooltipStyle
java.lang.Object
com.github.tommyettinger.textra.Styles.TextTooltipStyle
- Enclosing class:
- Styles
The style for a text tooltip, see
TextraTooltip
or TypingTooltip
.-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.scenes.scene2d.utils.Drawable
float
0 means don't wrap. -
Constructor Summary
ConstructorsConstructorDescriptionTextTooltipStyle
(com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style, com.badlogic.gdx.scenes.scene2d.utils.Drawable background) Deprecated.Create a Font from your BitmapFont once and pass that to constructors instead.TextTooltipStyle
(com.badlogic.gdx.scenes.scene2d.ui.TextTooltip.TextTooltipStyle style) Deprecated.Create a Font from your BitmapFont once and pass that to constructors instead.TextTooltipStyle
(Styles.LabelStyle style, com.badlogic.gdx.scenes.scene2d.utils.Drawable background) -
Method Summary
-
Field Details
-
label
-
background
@Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable background -
wrapWidth
public float wrapWidth0 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
-
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
-