StackLayout
class StackLayout(var position: <Error class: unknown class> = Vec2.nullVector, alignment: Alignment = Alignment.Center) : BaseHudLayout
Content copied to clipboard
A layout arranging its elements in a stack.
Each subsequent element is displayed on top of the previous one.
Constructors
Link copied to clipboard
fun StackLayout(position: <Error class: unknown class> = Vec2.nullVector, alignment: Alignment = Alignment.Center)
Content copied to clipboard
Functions
Link copied to clipboard
Adds given element to this layout.
Link copied to clipboard
open override fun addInputEventListener(listener: HudElement.InputEventListener)
Content copied to clipboard
Adds given input events listener to this element.
Link copied to clipboard
open override fun handleInputEvent(position: <Error class: unknown class>, event: Any?): Boolean
Content copied to clipboard
Link copied to clipboard
Arranges this layout's elements in a stack.
Link copied to clipboard
Removes given element from this layout.
Link copied to clipboard
Removes an element at the given index from this layout.
Link copied to clipboard
open override fun removeInputEventListener(listener: HudElement.InputEventListener)
Content copied to clipboard
Removes given input events listener from this element.