HudElementsBuilderDelegate

class HudElementsBuilderDelegate(val gl: <Error class: unknown class>, val disposables: <Error class: unknown class>) : HudElementsBuilder

Concrete builder of HUD elements to be used as a delegate by other builders.

Constructors

Link copied to clipboard
fun HudElementsBuilderDelegate(parent: HudElementsBuilder)

Creates a new HUD elements builder delegate from given parent HUD elements builder.

Link copied to clipboard
fun HudElementsBuilderDelegate(gl: <Error class: unknown class>, disposables: <Error class: unknown class>)

Functions

Link copied to clipboard
open override fun column(    position: <Error class: unknown class>,     alignment: HorizontalAlignment,     spacing: Float,     onInputEvent: (event: Any?) -> Boolean?,     init: HudElementsBuilder.() -> Unit): ColumnLayout

Creates a column layout.

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

Adds a custom element.

Link copied to clipboard
open override fun quad(    texture: <Error class: unknown class>,     position: <Error class: unknown class>,     onInputEvent: (event: Any?) -> Boolean?,     init: QuadBuilder.() -> Unit): Quad

Creates a quad.

Link copied to clipboard
open override fun row(    position: <Error class: unknown class>,     alignment: VerticalAlignment,     spacing: Float,     onInputEvent: (event: Any?) -> Boolean?,     init: HudElementsBuilder.() -> Unit): RowLayout

Creates a row layout.

Link copied to clipboard
open override fun space(width: Number, height: Number): Space

Creates empty space.

Link copied to clipboard
open override fun stack(    position: <Error class: unknown class>,     alignment: Alignment,     onInputEvent: (event: Any?) -> Boolean?,     init: HudElementsBuilder.() -> Unit): StackLayout

Creates a stack layout.

Link copied to clipboard
open override fun table(    position: <Error class: unknown class>,     columns: List<TableLayout.Column>,     columnsSpacing: Float,     rowsSpacing: Float,     onInputEvent: (event: Any?) -> Boolean?,     init: HudElementsBuilder.() -> Unit): TableLayout

Creates a table layout

Link copied to clipboard
open override fun text(    text: String,     font: Font,     color: <Error class: unknown class>,     padding: Padding,     width: Int,     height: Int,     position: <Error class: unknown class>,     onInputEvent: (event: Any?) -> Boolean?,     init: QuadBuilder.() -> Unit): Quad

Creates a quad containing text.

Link copied to clipboard
open override fun withTransformation(    translation: () -> <Error class: unknown class>,     rotation: () -> <Error class: unknown class>,     scale: () -> <Error class: unknown class>,     init: HudElementsBuilder.() -> Unit): TransformationWrapper

Transforms an element defined in the init block.

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

Sets visibility of an element defined in the init block.

Properties

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

Container for disposable Glimpse objects created by this builder.

Link copied to clipboard
val elements: MutableList<HudElement>

Elements added to this builder.

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

Glimpse adapter associated with this builder.