DefaultComponentRenderingStrategy

class DefaultComponentRenderingStrategy<T : Component>(componentRenderer: ComponentRenderer<in T>, decorationRenderers: List<ComponentDecorationRenderer>, componentPostProcessors: List<ComponentPostProcessor<T>>) : ComponentRenderingStrategy<T>

Functions

calculateContentSize
Link copied to clipboard
common
open override fun calculateContentSize(componentSize: Size): Size
Calculates the Size of the content of the Component which is rendered.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
render
Link copied to clipboard
common
open override fun render(component: T, graphics: TileGraphics)
Renders the given component onto the given graphics.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

componentPostProcessors
Link copied to clipboard
common
componentRenderer
Link copied to clipboard
common
val componentRenderer: ComponentRenderer<in T>
The ComponentRenderer which will be used to render the content of this Component.
contentPosition
Link copied to clipboard
common
open override val contentPosition: Position
The Position where the content of the rendered Component starts relative to the top left corner of the component.
decorationRenderers
Link copied to clipboard
common

Sources

(source)
Link copied to clipboard