HudLayout

interface HudLayout : HudElement

A layout for elements of HUD.

A layout arranges positions and possibly sizes of its elements.

Functions

Link copied to clipboard
abstract fun addElement(element: HudElement)

Adds given element to this layout.

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

Adds given input events listener to this element.

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

Handles given input event at given position.

Link copied to clipboard
abstract fun layoutElements()

Arranges this layout's elements.

Link copied to clipboard
abstract fun removeElement(element: HudElement)

Removes given element from this layout.

Link copied to clipboard
abstract fun removeElementAt(index: Int)

Removes an element at the given index from this layout.

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

Removes given input events listener from this element.

Properties

Link copied to clipboard
abstract val atoms: Iterable<HudAtom>

Atoms making up this element.

Link copied to clipboard
abstract val boundingBox: BoundingBox

Bounding box of this element.

Link copied to clipboard
abstract val height: Float

Height of this layout.

Link copied to clipboard
abstract var isVisible: Boolean

true if this element is visible.

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

Position of this element.

Link copied to clipboard
abstract val width: Float

Width of this layout.

Inheritors

Link copied to clipboard