Class Styles.WindowStyle

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

public static class Styles.WindowStyle extends Object
The style for a window, see TextraWindow or TypingWindow.
  • 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.graphics.Color
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    WindowStyle(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)
     
     
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • background

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

      public Font 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 Font
      titleFontColor - the color to tint the given BitmapFont
      background - may be null; otherwise, drawn in the back of the window
    • WindowStyle

      public WindowStyle(Styles.WindowStyle style)
    • WindowStyle

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