HudElementsBuilder

interface HudElementsBuilder

Builder of HUD elements.

Functions

Link copied to clipboard
abstract fun column(    position: <Error class: unknown class> = Vec2.nullVector,     alignment: HorizontalAlignment = HorizontalAlignment.Center,     spacing: Float = 0.0f,     onInputEvent: (event: Any?) -> Boolean? = null,     init: HudElementsBuilder.() -> Unit): ColumnLayout

Creates a column layout.

Link copied to clipboard
abstract fun <T : HudElement> element(element: T): T

Adds a custom element.

Link copied to clipboard
abstract fun quad(    texture: <Error class: unknown class>,     position: <Error class: unknown class> = Vec2.nullVector,     onInputEvent: (event: Any?) -> Boolean? = null,     init: QuadBuilder.() -> Unit = {}): Quad

Creates a quad.

Link copied to clipboard
abstract fun row(    position: <Error class: unknown class> = Vec2.nullVector,     alignment: VerticalAlignment = VerticalAlignment.Center,     spacing: Float = 0.0f,     onInputEvent: (event: Any?) -> Boolean? = null,     init: HudElementsBuilder.() -> Unit): RowLayout

Creates a row layout.

Link copied to clipboard
abstract fun space(width: Number = 0, height: Number = 0): Space

Creates empty space.

Link copied to clipboard
abstract fun stack(    position: <Error class: unknown class> = Vec2.nullVector,     alignment: Alignment = Alignment.Center,     onInputEvent: (event: Any?) -> Boolean? = null,     init: HudElementsBuilder.() -> Unit): StackLayout

Creates a stack layout.

Link copied to clipboard
abstract fun table(    position: <Error class: unknown class> = Vec2.nullVector,     columns: List<TableLayout.Column>,     columnsSpacing: Float = 0.0f,     rowsSpacing: Float = 0.0f,     onInputEvent: (event: Any?) -> Boolean? = null,     init: HudElementsBuilder.() -> Unit): TableLayout

Creates a table layout

Link copied to clipboard
abstract fun text(    text: String,     font: Font = Font.DEFAULT,     color: <Error class: unknown class> = Vec4(x = 1f, y = 1f, z = 1f, w = 1f),     padding: Padding = Padding(),     width: Int = 0,     height: Int = 0,     position: <Error class: unknown class> = Vec2.nullVector,     onInputEvent: (event: Any?) -> Boolean? = null,     init: QuadBuilder.() -> Unit = {}): Quad

Creates a quad containing text.

Link copied to clipboard
abstract fun withTransformation(    translation: () -> <Error class: unknown class> = { Vec2.nullVector },     rotation: () -> <Error class: unknown class> = { Angle.nullAngle },     scale: () -> <Error class: unknown class> = { Vec2(x = 1f, y = 1f) },     init: HudElementsBuilder.() -> Unit): TransformationWrapper

Transforms an element defined in the init block.

Link copied to clipboard
abstract fun withVisibility(visibility: () -> Boolean, init: HudElementsBuilder.() -> Unit): VisibilityWrapper

Sets visibility of an element defined in the init block.

Properties

Link copied to clipboard
abstract val disposables: <Error class: unknown class>

Container for disposable Glimpse objects created by this builder.

Link copied to clipboard
abstract val gl: <Error class: unknown class>

Glimpse adapter associated with this builder.

Inheritors

Link copied to clipboard