TextTextureImageSourceBuilder

A builder for a TextureImageSource containing text.

Since

v1.2.0

A builder for a TextureImageSource containing text.

Since

v1.2.0

A builder for a TextureImageSource containing text.

Since

v1.2.0

Constructors

Link copied to clipboard
constructor()
expect constructor()
constructor()

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

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

Will build a texture source containing given text.

Will build a texture source containing given text.

Will build a texture source containing given text.

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

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

Link copied to clipboard

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

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

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

Link copied to clipboard

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.

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.

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.