Component

interface Component

Component is a generic concept of an object that can be drawn on a canvas at a given pair of coordinates. Its subclasses are used throughout the library.

Inheritors

Properties

Link copied to clipboard
abstract val margins: Dimensions

The margins.

Functions

Link copied to clipboard
abstract fun draw(context: DrawContext, left: Float, top: Float, right: Float, bottom: Float, opacity: Float = 1.0f)

Instructs the Component to draw itself at the given coordinates.