TableLayout

class TableLayout(    var position: <Error class: unknown class> = Vec2.nullVector,     columns: List<TableLayout.Column>,     columnsSpacing: Float = 0.0f,     rowsSpacing: Float = 0.0f) : BaseHudLayout

A layout arranging its elements in a table.

Each subsequent element is displayed in the next table cell.

Constructors

Link copied to clipboard
fun TableLayout(    position: <Error class: unknown class> = Vec2.nullVector,     columns: List<TableLayout.Column>,     columnsSpacing: Float = 0.0f,     rowsSpacing: Float = 0.0f)

Types

Link copied to clipboard
data class Column(val width: Float, val alignment: Alignment)

Configuration of a column in table layout.

Functions

Link copied to clipboard
open override fun addElement(element: HudElement)

Adds given element to this layout.

Link copied to clipboard
open override fun addInputEventListener(listener: HudElement.InputEventListener)

Adds given input events listener to this element.

Link copied to clipboard
open override fun handleInputEvent(position: <Error class: unknown class>, event: Any?): Boolean

Handles given input event at given position.

Link copied to clipboard
open override fun layoutElements()

Arranges this layout's elements in a table.

Link copied to clipboard
open override fun removeElement(element: HudElement)

Removes given element from this layout.

Link copied to clipboard
open override fun removeElementAt(index: Int)

Removes an element at the given index from this layout.

Link copied to clipboard
open override fun removeInputEventListener(listener: HudElement.InputEventListener)

Removes given input events listener from this element.

Properties

Link copied to clipboard
open override val atoms: Iterable<HudAtom>

Atoms making up this layout.

Link copied to clipboard
open override var boundingBox: BoundingBox

Bounding box of this layout.

Link copied to clipboard
var columns: List<TableLayout.Column>

Configuration of columns in this table layout.

Link copied to clipboard
var columnsSpacing: Float

Spacing of columns in this table layout.

Link copied to clipboard
open override val height: Float

Height of this layout.

Link copied to clipboard
open override var isVisible: Boolean = true

true if this element is visible.

Link copied to clipboard
open override var position: <Error class: unknown class>

Position of this element.

Link copied to clipboard
var rowsSpacing: Float

Spacing of rows in this table layout.

Link copied to clipboard
open override val width: Float

Width of this layout.