Component

abstract class Component : Margins

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

Constructors

Link copied to clipboard
constructor()

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.