Package com.github.tommyettinger.textra
Class Styles
java.lang.Object
com.github.tommyettinger.textra.Styles
An outer class that holds all styles for TextraTypist widgets. These are each named to match a scene2d.ui style,
such as
Since TextraTypist version 2.1.0, any style constructors that take and copy
Styles.LabelStyle matching Label.LabelStyle. These styles are typically loaded from a skin
JSON file using FWSkin or one of its subclasses, but can also be created on their own. When reading in a
skin JSON file, no changes need to be made for TextraTypist styles if using FWSkin to load in the JSON.
Since TextraTypist version 2.1.0, any style constructors that take and copy
BitmapFont or scene2d.ui styles
that contain one or more BitmapFonts are deprecated and are intended to be removed. These constructors have a
tendency to be called many times (often once per label, which can happen many times in some widgets), allocating a
Font every time by copying data from the given BitmapFont. It is not at all easy to dispose these Font
objects, especially if they share information with a currently-used BitmapFont, and the Font instances can overwhelm
the memory available to an app over not very much time.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe style for a select box, seeTextraCheckBoxorTypingCheckBox.static classThe style for an image text button, seeImageTextraButton.static classThe style for aTextraLabelorTypingLabel.static classThe style for a ListBox, seeTextraListBox.static classThe style for a select box, seeTextraSelectBoxorTypingSelectBox.static classThe style for a text button, seeTextraButtonorTypingButton.static classThe style for a text field, seeTextraField.static classThe style for a text tooltip, seeTextraTooltiporTypingTooltip.static classThe style for a window, seeTextraWindoworTypingWindow. -
Method Summary