Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class BitmapFont(val identifier: FontIdentifier, val texture: Texture, val glyphDataMap: Map<Char, BitmapGlyphData?>, val height: Float, val ascent: Float, val descent: Float, val top: Float, val bottom: Float, val italicInverseSlope: Float) : Font
Link copied to clipboard
Link copied to clipboard

The internal workhorse behind createBitmapFont.

Link copied to clipboard
data class BitmapGlyphData(val x: Float, val y: Float, val boundsTop: Float, val boundsRight: Float, val boundsBottom: Float, val boundsLeft: Float, val advance: Float)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Performs find/replace on a StyledTextArea.

Link copied to clipboard
class FindBar(val findAndReplace: FindAndReplace) : WrappedNode<ToolBar>
Link copied to clipboard
interface Font
Link copied to clipboard
object FontCache
Link copied to clipboard
data class FontIdentifier(val family: String, val size: Float, val style: FontStyle = FontStyle.PLAIN)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class GotoDialog(val textArea: TextAreaBase<*>) : Dialog
Link copied to clipboard
interface Highlight

Highlights a piece of Text within a StyledTextDocument.

Link copied to clipboard
open class HighlightRange(from: TextPosition, to: TextPosition, val highlight: Highlight, val owner: Any? = null)
Link copied to clipboard
interface Indentation

Determines how TextArea and StyledTextArea should display leading tab and space characters, and the behaviour when the tab key is pressed.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class PairedHighlightRange(start: TextPosition, end: TextPosition, val highlight: Highlight, val owner: Any? = null, other: PairedHighlightRange?) : HighlightRange

A HighlightRange, which is part of a matched pair, for example, an opening and closing bracket.

Link copied to clipboard
Link copied to clipboard
class ReplaceBar(val findAndReplace: FindAndReplace) : WrappedNode<ToolBar>
Link copied to clipboard
Link copied to clipboard
interface SkipWord

When you hold Ctrl and press the Left or Right arrow keys, it jumps by 1 word. However, what is considered a word isn't clear, and can depend on the context.

Link copied to clipboard
class SkipWordByCategory(val preSkipWhitespace: Boolean = true, val categories: List<(Char) -> Boolean>) : SkipWord

Each character is assigned a category. We skip over character which have the same category as the character at the start point.

Link copied to clipboard
class SpacesToTabsConverter(val columns: Int = 4) : Converter<String, String>
Link copied to clipboard
sealed interface StringChange : Change

A Change for the HistoryDocuments (used by TextFields).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class StyledTextDocument(initialText: String) : TextDocument
Link copied to clipboard
interface TextChange : Change

A Change for TextDocuments (used by TextAreas and StyledTextAreas).

Link copied to clipboard
open class TextDocument(initialText: String) : SealedTextDocument

A TextArea is a view of a TextDocument. Two or more TextAreas can share the same TextDocument. (e.g. a SplitPane with two views of the same documents side by side).

Link copied to clipboard
Link copied to clipboard
open class ThemedHighlight(val style: String) : Highlight

Applies a Theme rule (using Node.styles) to the highlighted Text.

Functions

Link copied to clipboard
expect fun createBitmapFont(identifier: FontIdentifier, block: BitmapFontBuilder.() -> Unit? = null): BitmapFont
actual fun createBitmapFont(identifier: FontIdentifier, block: BitmapFontBuilder.() -> Unit?): BitmapFont
actual fun createBitmapFont(identifier: FontIdentifier, block: BitmapFontBuilder.() -> Unit?): BitmapFont

Example :

Link copied to clipboard

To prevent fingerprinting, there is no API to list available fonts. Se instead, we return the so called "Web-Safe Fonts" which many websites assume exist on the client machine.