LayeredComponent

open class LayeredComponent(val rear: Component, val front: Component, val padding: Dimensions = Dimensions.Empty, val 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)

Properties

Link copied to clipboard
Link copied to clipboard
open override val margins: Dimensions

The margins.

Link copied to clipboard
Link copied to clipboard

Functions

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

Instructs the Component to draw itself at the given coordinates.