KListWidget

class KListWidget<T>(skin: Skin, style: String) : List<T>

Extends libGDX List widget with items building method.

Constructors

Link copied to clipboard
constructor(skin: Skin, style: String)

Properties

Link copied to clipboard
val actions: Array<Action>
Link copied to clipboard
Link copied to clipboard
val captureListeners: DelayedRemovalArray<EventListener>
Link copied to clipboard
var color: Color
Link copied to clipboard
var cullingArea: Rectangle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val items: Array<T>
Link copied to clipboard
val keyListener: InputListener
Link copied to clipboard
val listeners: DelayedRemovalArray<EventListener>
Link copied to clipboard
@Null
@get:Null
var name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Null
@get:Null
var parent: Group
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var selection: ArraySelection<T>
Link copied to clipboard
@Null
@get:Null
var stage: Stage
Link copied to clipboard
var style: List.ListStyle
Link copied to clipboard
var touchable: Touchable
Link copied to clipboard
@Null
@get:Null
var userObject: Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var x: Float
Link copied to clipboard
var y: Float

Functions

Link copied to clipboard
open fun act(p0: Float)
Link copied to clipboard
open fun addAction(p0: Action)
Link copied to clipboard
open fun addCaptureListener(p0: EventListener): Boolean
Link copied to clipboard
open fun addListener(p0: EventListener): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun clearActions()
Link copied to clipboard
open fun clearItems()
Link copied to clipboard
open fun clearListeners()
Link copied to clipboard
open fun clipBegin(): Boolean
open fun clipBegin(p0: Float, p1: Float, p2: Float, p3: Float): Boolean
Link copied to clipboard
open fun clipEnd()
Link copied to clipboard
open fun debug(): Actor
Link copied to clipboard
open override fun draw(p0: Batch, p1: Float)
Link copied to clipboard
open fun drawDebug(p0: ShapeRenderer)
Link copied to clipboard
open fun fire(p0: Event): Boolean
Link copied to clipboard
@Null
open fun <T : Actor> firstAscendant(p0: Class<T>): T
Link copied to clipboard
@Null
open fun getItemAt(p0: Float): T
Link copied to clipboard
open fun getItemIndexAt(p0: Float): Int
Link copied to clipboard
open override fun getMaxHeight(): Float
Link copied to clipboard
open override fun getMaxWidth(): Float
Link copied to clipboard
open override fun getMinHeight(): Float
Link copied to clipboard
open override fun getMinWidth(): Float
Link copied to clipboard
open fun getOverItem(): T
Link copied to clipboard
open fun getPressedItem(): T
Link copied to clipboard
open fun getRight(): Float
Link copied to clipboard
@Null
open fun getSelected(): T
Link copied to clipboard
open fun getSelectedIndex(): Int
Link copied to clipboard
open fun getTop(): Float
Link copied to clipboard
open fun getX(p0: Int): Float
Link copied to clipboard
open fun getY(p0: Int): Float
Link copied to clipboard
open fun getZIndex(): Int
Link copied to clipboard
open fun hasActions(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun hasParent(): Boolean
Link copied to clipboard
Link copied to clipboard
@Null
open fun hit(p0: Float, p1: Float, p2: Boolean): Actor
Link copied to clipboard
open override fun invalidate()
Link copied to clipboard
open override fun invalidateHierarchy()
Link copied to clipboard
open fun isAscendantOf(p0: Actor): Boolean
Link copied to clipboard
open fun isDescendantOf(p0: Actor): Boolean
Link copied to clipboard
open fun isTouchable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun layout()
Link copied to clipboard
open fun localToActorCoordinates(p0: Actor, p1: Vector2): Vector2
Link copied to clipboard
open fun localToAscendantCoordinates(@Null p0: Actor, p1: Vector2): Vector2
Link copied to clipboard
open fun localToParentCoordinates(p0: Vector2): Vector2
Link copied to clipboard
open fun localToScreenCoordinates(p0: Vector2): Vector2
Link copied to clipboard
open fun localToStageCoordinates(p0: Vector2): Vector2
Link copied to clipboard
open fun moveBy(p0: Float, p1: Float)
Link copied to clipboard
open fun needsLayout(): Boolean
Link copied to clipboard
open fun notify(p0: Event, p1: Boolean): Boolean
Link copied to clipboard
open override fun pack()
Link copied to clipboard
open fun parentToLocalCoordinates(p0: Vector2): Vector2
Link copied to clipboard

Utility method. If the internal array with items stored by this widget was modified, use this method to safely refresh the items that this widget draws.

Link copied to clipboard
open fun remove(): Boolean
Link copied to clipboard
open fun removeAction(@Null p0: Action)
Link copied to clipboard
open fun removeCaptureListener(p0: EventListener): Boolean
Link copied to clipboard
open fun removeListener(p0: EventListener): Boolean
Link copied to clipboard
open fun rotateBy(p0: Float)
Link copied to clipboard
open fun scaleBy(p0: Float)
open fun scaleBy(p0: Float, p1: Float)
Link copied to clipboard
open fun screenToLocalCoordinates(p0: Vector2): Vector2
Link copied to clipboard
open fun setBounds(p0: Float, p1: Float, p2: Float, p3: Float)
Link copied to clipboard
open fun setColor(p0: Float, p1: Float, p2: Float, p3: Float)
Link copied to clipboard
open override fun setFillParent(p0: Boolean)
Link copied to clipboard
open fun setItems(p0: Array<Any>)
open fun setItems(vararg p0: T)
Link copied to clipboard
open override fun setLayoutEnabled(p0: Boolean)
Link copied to clipboard
open fun setOrigin(p0: Int)
open fun setOrigin(p0: Float, p1: Float)
Link copied to clipboard
open fun setPosition(p0: Float, p1: Float)
open fun setPosition(p0: Float, p1: Float, p2: Int)
Link copied to clipboard
open fun setScale(p0: Float)
open fun setScale(p0: Float, p1: Float)
Link copied to clipboard
open fun setSelected(@Null p0: T)
Link copied to clipboard
open fun setSelectedIndex(p0: Int)
Link copied to clipboard
open fun setSize(p0: Float, p1: Float)
Link copied to clipboard
open fun setTypeToSelect(p0: Boolean)
Link copied to clipboard
open fun setX(p0: Float, p1: Int)
Link copied to clipboard
open fun setY(p0: Float, p1: Int)
Link copied to clipboard
open fun setZIndex(p0: Int): Boolean
Link copied to clipboard
open fun sizeBy(p0: Float)
open fun sizeBy(p0: Float, p1: Float)
Link copied to clipboard
open fun stageToLocalCoordinates(p0: Vector2): Vector2
Link copied to clipboard
inline fun Actor.textTooltip(text: String, style: String = defaultStyle, skin: Skin = Scene2DSkin.defaultSkin, tooltipManager: TooltipManager = TooltipManager.getInstance(), init: Label.(TextTooltip) -> Unit = {}): TextTooltip

Adds a new TextTooltip to this actor.

Link copied to clipboard
open fun toBack()
Link copied to clipboard
open fun toFront()
Link copied to clipboard
inline fun Actor.tooltip(background: String? = null, skin: Skin = Scene2DSkin.defaultSkin, tooltipManager: TooltipManager = TooltipManager.getInstance(), init: KTableWidget.(Tooltip<KTableWidget>) -> Unit = {}): Tooltip<KTableWidget>

Adds a new Tooltip to this actor, storing a flexible Table widget.

Link copied to clipboard
open override fun toString(): String
open fun toString(p0: T): String
Link copied to clipboard
operator fun T.unaryMinus()

Allows to add items to the list with builder-like syntax.

Link copied to clipboard
open override fun validate()