Package-level declarations

Functions

Link copied to clipboard
inline fun <T : Element> Group.child(index: Int): T

Returns the n-th child of a group.

Link copied to clipboard
inline fun <T : Element> Group.childOrNull(index: Int): T?

Returns the n-th element of a group or null if it doesn't exist

Link copied to clipboard
fun Group.deepInvalidate()

Invalidates every element in the hierarchy. Usually used in combination with deepShrink.

Link copied to clipboard
fun Group.deepShrink(shrinkParents: Boolean = false, invalidateParents: Boolean = true)

Reduces the size of the whole group to (0, 0) and invalidates hierarchy, effectively reducing the size of this group to the minimum.

Link copied to clipboard
operator fun Group.plus(other: Element): Group

Returns this group with the specified element add to it.

operator fun Table.plus(other: Element): Table

Returns this table with the specified element add to it.

Link copied to clipboard
fun Table.rowPer(number: Int): Table

Creates a row if the current amount of children is dividable by number. This is intended to be called when a grid of elements has to be generated.

Link copied to clipboard
operator fun Element.unaryPlus(): <Error class: unknown class>

Adds this element to the group in the current context.

operator fun Element.unaryPlus(): <Error class: unknown class>

Adds this element to the table in the current context.