Package com.github.tommyettinger.textra
package com.github.tommyettinger.textra
Contains the core of the library, such as the TypingLabel and Font classes.
-
ClassDescriptionAllows looking up an RGBA8888 int color given a String key, returning either the color or 256 if none was found.The default ColorLookup, this simply looks up
keyinColors, 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.Abstract text effect.A functional interface that is meant to be used with the 2-parameter constructor available for all Effects here, using a method reference such asWaveEffect::new.A replacement for libGDX's BitmapFont class, supporting additional markup to allow styling text with various effects.Defines what types of distance field font this can use and render.Holds up to 16 Font values, accessible by index or by name, that markup can switch between while rendering.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.A button with a childImageandTextraLabel.A button with a childImageandTypingLabel.Preconfigured staticFontinstances, with any important metric adjustments already applied.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).One line of possibly-colorful, possibly-styled text, with a width and height set byFont.markup(String, Layout)on Lines in aLayout.Utility class to parse tokens from aTypingLabel; not intended for external use in most situations.A button with a childTextraLabelto display text.A checkbox is a button that contains an image indicating the checked or unchecked state and aTextraLabel.Displays a dialog, which is a window with a title, a content table, and a button table.A single-line text input field.The defaultTextraField.OnscreenKeyboardused by allTextraFieldinstances.An interface for onscreen keyboards.Interface for filtering characters entered into the text field.Interface for listening to typed characters.A scene2d.ui Widget that displays text using aFontrather than a libGDX BitmapFont.A tooltip that shows a TextraLabel.A table that can be dragged and act as a modal window.Simple listener for label events.A button with a childTypingLabelto display text.A checkbox is a button that contains an image indicating the checked or unchecked state and aTypingLabel.Configuration class that easily allows the user to fine tune the library's functionality.Displays a dialog, which is aTypingWindowwith aTypingLabelfor a title, a content table, and a button table.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}.Simple listener for label events.A tooltip that shows a TypingLabel.A table that can be dragged and act as a modal window.