LineComponent

open class LineComponent(fill: Fill, val thickness: Dp = Defaults.LINE_COMPONENT_THICKNESS_DP.dp, shape: Shape = Shape.Rectangle, margins: Insets = Insets.Zero, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp) : ShapeComponent

Draws lines.

Parameters

fill

the fill.

shape

the Shape.

margins

the margins.

strokeFill

the stroke fill.

strokeThickness

the stroke thickness.

Constructors

Link copied to clipboard
constructor(fill: Fill, thickness: Dp = Defaults.LINE_COMPONENT_THICKNESS_DP.dp, shape: Shape = Shape.Rectangle, margins: Insets = Insets.Zero, strokeFill: Fill = Fill.Transparent, strokeThickness: Dp = 0.dp)

Properties

Link copied to clipboard

the line thickness.

Functions

Link copied to clipboard
open override fun copy(fill: Fill, shape: Shape, margins: Insets, strokeFill: Fill, strokeThickness: Dp): LineComponent
open fun copy(fill: Fill = this.fill, thickness: Dp = this.thickness, shape: Shape = this.shape, margins: Insets = this.margins, strokeFill: Fill = this.strokeFill, strokeThickness: Dp = this.strokeThickness): LineComponent

Creates a new LineComponent based on this one.

Link copied to clipboard
open fun drawHorizontal(context: DrawingContext, left: Float, right: Float, y: Float, thicknessFactor: Float = 1.0f)

A convenience function for draw that draws the LineComponent horizontally.

Link copied to clipboard
open fun drawVertical(context: DrawingContext, x: Float, top: Float, bottom: Float, thicknessFactor: Float = 1.0f)

A convenience function for draw that draws the LineComponent vertically.

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