Package com.github.tommyettinger.textra
Contains the core of the library, such as the TypingLabel and Font classes.
-
Interface Summary Interface Description ColorLookup Allows looking up an RGBA8888 int color given a String key, returning either the color or 256 if none was found.TextraField.OnscreenKeyboard An interface for onscreen keyboards.TextraField.TextFieldFilter Interface for filtering characters entered into the text field.TextraField.TextFieldListener Interface for listening to typed characters.TypingListener Simple listener for label events. -
Class Summary Class Description ColorLookup.GdxColorLookup The default ColorLookup, this simply looks upkeyinColors, returning 256 (fully transparent, extremely dark blue) if no Color exists by that exact name (case-sensitive), or returning the RGBA8888 value of the color otherwise.Effect Abstract text effect.Font A replacement for libGDX's BitmapFont class, supporting additional markup to allow styling text with various effects.Font.FontFamily Holds up to 16 Font values, accessible by index or by name, that markup can switch between while rendering.Font.GlyphRegion Describes the region of a glyph in a larger TextureRegion, carrying a little more info about the offsets that apply to where the glyph is rendered.ImageTextraButton A button with a childImageandTextraLabel.ImageTypingButton A button with a childImageandTypingLabel.KnownFonts Preconfigured staticFontinstances, with any important metric adjustments already applied.Layout A replacement for libGDX's GlyphLayout, more or less; stores one or more (possibly empty)Lines of text, which can use color and style markup fromFont, and can be drawn withFont.drawGlyphs(Batch, Layout, float, float, int).Line One line of possibly-colorful, possibly-styled text, with a width and height set byFont.markup(String, Layout)on Lines in aLayout.TextraButton A button with a childTextraLabelto display text.TextraCheckBox A checkbox is a button that contains an image indicating the checked or unchecked state and aTextraLabel.TextraDialog Displays a dialog, which is a window with a title, a content table, and a button table.TextraField A single-line text input field.TextraField.DefaultOnscreenKeyboard The defaultTextraField.OnscreenKeyboardused by allTextraFieldinstances.TextraField.TextFieldFilter.DigitsOnlyFilter TextraLabel A scene2d.ui Widget that displays text using aFontrather than a libGDX BitmapFont.TextraTooltip A tooltip that shows a TextraLabel.TextraWindow A table that can be dragged and act as a modal window.TypingAdapter Simple listener for label events.TypingButton A button with a childTypingLabelto display text.TypingCheckBox A checkbox is a button that contains an image indicating the checked or unchecked state and aTypingLabel.TypingConfig Configuration class that easily allows the user to fine tune the library's functionality.TypingDialog Displays a dialog, which is aTypingWindowwith aTypingLabelfor a title, a content table, and a button table.TypingLabel An extension ofLabelthat progressively shows the text as if it was being typed in real time, and allows the use of tokens in the following format: {TOKEN=PARAMETER}.TypingTooltip A tooltip that shows a TypingLabel.TypingWindow A table that can be dragged and act as a modal window. -
Enum Summary Enum Description Font.DistanceFieldType Defines what types of distance field font this can use and render.TokenCategory