Package com.github.tommyettinger.textra
Class Styles.WindowStyle
java.lang.Object
com.github.tommyettinger.textra.Styles.WindowStyle
- Enclosing class:
- Styles
The style for a window, see
TextraWindow
or TypingWindow
.-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.scenes.scene2d.utils.Drawable
com.badlogic.gdx.scenes.scene2d.utils.Drawable
com.badlogic.gdx.graphics.Color
-
Constructor Summary
ConstructorsConstructorDescriptionWindowStyle
(com.badlogic.gdx.graphics.g2d.BitmapFont titleFont, com.badlogic.gdx.graphics.Color titleFontColor, com.badlogic.gdx.scenes.scene2d.utils.Drawable background) Deprecated.Create a Font from your BitmapFont once and pass that to constructors instead.WindowStyle
(com.badlogic.gdx.scenes.scene2d.ui.Window.WindowStyle style) Deprecated.Create a Font from your BitmapFont once and pass that to constructors instead.WindowStyle
(Font titleFont, com.badlogic.gdx.graphics.Color titleFontColor, com.badlogic.gdx.scenes.scene2d.utils.Drawable background) WindowStyle
(Font titleFont, com.badlogic.gdx.graphics.Color titleFontColor, com.badlogic.gdx.scenes.scene2d.utils.Drawable background, com.badlogic.gdx.scenes.scene2d.utils.Drawable stageBackground) WindowStyle
(Styles.WindowStyle style) -
Method Summary
-
Field Details
-
background
@Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable background -
titleFont
-
titleFontColor
@Null public com.badlogic.gdx.graphics.Color titleFontColor -
stageBackground
@Null public com.badlogic.gdx.scenes.scene2d.utils.Drawable stageBackground
-
-
Constructor Details
-
WindowStyle
public WindowStyle() -
WindowStyle
public WindowStyle(Font titleFont, com.badlogic.gdx.graphics.Color titleFontColor, @Null com.badlogic.gdx.scenes.scene2d.utils.Drawable background) -
WindowStyle
public WindowStyle(Font titleFont, com.badlogic.gdx.graphics.Color titleFontColor, @Null com.badlogic.gdx.scenes.scene2d.utils.Drawable background, @Null com.badlogic.gdx.scenes.scene2d.utils.Drawable stageBackground) -
WindowStyle
@Deprecated public WindowStyle(com.badlogic.gdx.graphics.g2d.BitmapFont titleFont, com.badlogic.gdx.graphics.Color titleFontColor, @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 BitmapFont), and it isn't easy to dispose the created Font.- Parameters:
titleFont
- a BitmapFont that will be copied into a new FonttitleFontColor
- the color to tint the given BitmapFontbackground
- may be null; otherwise, drawn in the back of the window
-
WindowStyle
-
WindowStyle
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
-