LayeredComponent

open class LayeredComponent(rear: Component, front: Component, padding: Dimensions = Dimensions.Empty, margins: Dimensions = Dimensions.Empty) : Component

Draws two Components, rear and front, on top of each other. padding defines the padding between them.

Constructors

Link copied to clipboard
constructor(rear: Component, front: Component, padding: Dimensions = Dimensions.Empty, margins: Dimensions = Dimensions.Empty)

Functions

Link copied to clipboard
open override fun draw(context: DrawingContext, left: Float, top: Float, right: Float, bottom: Float)

Instructs the Component to draw itself at the given coordinates.