ComponentBuilder

interface ComponentBuilder<T : Component, U : ComponentBuilder<T, U>>

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String
withAlignment
Link copied to clipboard
common
abstract fun withAlignment(alignmentStrategy: AlignmentStrategy): U
Sets the AlignmentStrategy to use for the Component.
withAlignmentAround
Link copied to clipboard
common
open fun withAlignmentAround(component: Component, alignment: ComponentAlignment): U
Aligns the resulting Component around the component using the given alignment.
withAlignmentWithin
Link copied to clipboard
common
open fun withAlignmentWithin(container: Container, alignment: ComponentAlignment): U
Aligns the resulting Component within the container using the given alignment.
open fun withAlignmentWithin(tileGrid: TileGrid, alignment: ComponentAlignment): U
Aligns the resulting Component within the tileGrid using the given alignment.
withColorTheme
Link copied to clipboard
common
abstract fun withColorTheme(colorTheme: ColorTheme): U
Sets the ColorTheme to use for the Component.
withComponentRenderer
Link copied to clipboard
common
abstract fun withComponentRenderer(componentRenderer: ComponentRenderer<T>): U
Sets the ComponentRenderer for the resulting Component.
withComponentStyleSet
Link copied to clipboard
common
abstract fun withComponentStyleSet(componentStyleSet: ComponentStyleSet): U
Sets the ComponentStyleSet the Component will use.
withDecorations
Link copied to clipboard
common
abstract fun withDecorations(vararg renderers: ComponentDecorationRenderer): U
Sets the ComponentDecorationRenderers for the resulting Component.
withPosition
Link copied to clipboard
common
open fun withPosition(position: Position): U
Aligns the resulting Component positionally, relative to its parent.
open fun withPosition(x: Int, y: Int): U
Aligns the resulting Component positionally, relative to its parent.
withRendererFunction
Link copied to clipboard
common
abstract fun withRendererFunction(fn: (TileGraphics, ComponentRenderContext<T>) -> Unit): U
Creates a ComponentRenderer for the resulting Component using the given component renderer fn.
withSize
Link copied to clipboard
common
abstract fun withSize(size: Size): U
Sets the Size of the resulting Component.
open fun withSize(width: Int, height: Int): U
Sets the Size of the resulting Component.
withTileset
Link copied to clipboard
common
abstract fun withTileset(tileset: TilesetResource): U
Sets the Tileset to use for the Component.
withUpdateOnAttach
Link copied to clipboard
common
abstract fun withUpdateOnAttach(updateOnAttach: Boolean): U
Sets if the Component should be updated when it is attached to a parent or not.

Inheritors

BaseComponentBuilder
Link copied to clipboard

Sources

(source)
Link copied to clipboard