TextTextureImageSourceBuilder

actual class TextTextureImageSourceBuilder

A builder for a TextureImageSource containing text.

Since

v1.2.0

expect class TextTextureImageSourceBuilder

A builder for a TextureImageSource containing text.

Since

v1.2.0

actual class TextTextureImageSourceBuilder

A builder for a TextureImageSource containing text.

Since

v1.2.0

Constructors

Link copied to clipboard
fun TextTextureImageSourceBuilder()
expect fun TextTextureImageSourceBuilder()
fun TextTextureImageSourceBuilder()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
actual fun build(): <Error class: unknown class>

Builds a TextureImageSource with the provided parameters.

expect fun build(): <Error class: unknown class>

Builds a TextureImageSource with the provided parameters.

actual fun build(): <Error class: unknown class>

Builds a TextureImageSource containing text, with the provided parameters.

Link copied to clipboard
fun buildPrepared(): TextureImageSource

Builds a prepared TextureImageSource containing text, with the provided parameters.

fun buildPrepared(profile: GLProfile): TextureImageSource

Builds a prepared TextureImageSource containing text, with the provided parameters and a given OpenGL profile.

Link copied to clipboard
actual fun fromText(text: String): TextTextureImageSourceBuilder

Will build a texture source containing given text.

expect fun fromText(text: String): TextTextureImageSourceBuilder

Will build a texture source containing given text.

actual fun fromText(text: String): TextTextureImageSourceBuilder

Will build a texture source containing given text.

Link copied to clipboard
expect fun withColor(color: <Error class: unknown class>): TextTextureImageSourceBuilder

Will build a texture source containing text drawn with given color.

Link copied to clipboard
actual fun withFont(font: Font): TextTextureImageSourceBuilder

Will build a texture source containing text drawn with given font.

expect fun withFont(font: Font): TextTextureImageSourceBuilder

Will build a texture source containing text drawn with given font.

actual fun withFont(font: Font): TextTextureImageSourceBuilder

Will build a texture source containing text drawn with given font.

Link copied to clipboard
actual fun withPadding(all: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given padding, equal on all sides.

actual fun withPadding(horizontal: Int, vertical: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given horizontal and vertical padding.

actual fun withPadding(    left: Int,     top: Int,     right: Int,     bottom: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given left, top, right and bottom padding.

expect fun withPadding(all: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given padding, equal on all sides.

expect fun withPadding(horizontal: Int = 0, vertical: Int = 0): TextTextureImageSourceBuilder

Will build a texture source containing text with given horizontal and vertical padding.

expect fun withPadding(    left: Int = 0,     top: Int = 0,     right: Int = 0,     bottom: Int = 0): TextTextureImageSourceBuilder

Will build a texture source containing text with given left, top, right and bottom padding.

actual fun withPadding(all: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given padding, equal on all sides.

actual fun withPadding(horizontal: Int, vertical: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given horizontal and vertical padding.

actual fun withPadding(    left: Int,     top: Int,     right: Int,     bottom: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given left, top, right and bottom padding.

Link copied to clipboard
actual fun withSize(width: Int, height: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given width and height.

expect fun withSize(width: Int = 0, height: Int = 0): TextTextureImageSourceBuilder

Will build a texture source containing text with given width and height.

actual fun withSize(width: Int, height: Int): TextTextureImageSourceBuilder

Will build a texture source containing text with given width and height.