ComponentRenderingStrategy

interface ComponentRenderingStrategy<T : Component>

Strategy for applying decorations and rendering org.hexworks.zircon.api.component.Components.

Functions

calculateContentSize
Link copied to clipboard
common
abstract 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
abstract 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

contentPosition
Link copied to clipboard
common
abstract val contentPosition: Position
The Position where the content of the rendered Component starts relative to the top left corner of the component.

Inheritors

DefaultComponentRenderingStrategy
Link copied to clipboard

Sources

(source)
Link copied to clipboard