Space

class Space(var width: Float = 0.0f, var height: Float = 0.0f) : BaseHudElement

Empty space element of HUD.

Constructors

Link copied to clipboard
fun Space(width: Float = 0.0f, height: Float = 0.0f)

Functions

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 removeInputEventListener(listener: HudElement.InputEventListener)

Removes given input events listener from this element.

Properties

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

Empty list of atoms.

Link copied to clipboard
open override val boundingBox: BoundingBox

Bounding box of this space.

Link copied to clipboard
var height: Float = 0.0f

Space height.

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 width: Float = 0.0f

Space width.