OverlayingComponent

class OverlayingComponent(val outer: Component, val inner: Component, val innerPaddingStartDp: Float = 0.0f, val innerPaddingTopDp: Float = 0.0f, val innerPaddingEndDp: Float = 0.0f, val innerPaddingBottomDp: Float = 0.0f) : Component

A Component composed out of two Components, with one drawn over the other.

Constructors

Link copied to clipboard
constructor(outer: Component, inner: Component, innerPaddingAllDp: Float = 0.0f)
constructor(outer: Component, inner: Component, innerPaddingStartDp: Float = 0.0f, innerPaddingTopDp: Float = 0.0f, innerPaddingEndDp: Float = 0.0f, innerPaddingBottomDp: Float = 0.0f)

Properties

Link copied to clipboard

the inner (foreground) Component.

Link copied to clipboard

the bottom padding between the inner and outer components.

Link copied to clipboard

the end padding between the inner and outer components.

Link copied to clipboard

the start padding between the inner and outer components.

Link copied to clipboard

the top padding between the inner and outer components.

Link copied to clipboard

the outer (background) Component.

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.