ShapeComponent

open class ShapeComponent(val fill: Fill = Fill.Black, val shape: Shape = Shape.Rectangle, margins: Dimensions = Dimensions.Empty, val strokeFill: Fill = Fill.Transparent, strokeThicknessDp: Float = 0.0f, shadow: Shadow? = null) : Component

Draws Shapes.

Inheritors

Constructors

Link copied to clipboard
constructor(fill: Fill = Fill.Black, shape: Shape = Shape.Rectangle, margins: Dimensions = Dimensions.Empty, strokeFill: Fill = Fill.Transparent, strokeThicknessDp: Float = 0.0f, shadow: Shadow? = null)

Properties

Link copied to clipboard
val fill: Fill

the fill.

Link copied to clipboard

the Shape.

Link copied to clipboard

the stroke fill.

Functions

Link copied to clipboard
open fun copy(fill: Fill = this.fill, shape: Shape = this.shape, margins: Dimensions = this.margins, strokeFill: Fill = this.strokeFill, strokeThicknessDp: Float = this.strokeThicknessDp, shadow: Shadow? = this.shadow): ShapeComponent

Creates a new ShapeComponent based on this one.

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.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int