RoundedBorder

class RoundedBorder(color: Color, val radius: Float) : ColoredBorder

Constructors

Link copied to clipboard
constructor(bindToColor: ObservableColor, radius: Float)
constructor(color: Color, radius: Float)

Properties

Link copied to clipboard
open override var color: Color
Link copied to clipboard
open override val colorProperty: ColorProperty
Link copied to clipboard

Functions

Link copied to clipboard
open override fun draw(x: Float, y: Float, width: Float, height: Float, size: Edges)

Draw just the border, not the area within it. However, if implementations wish to draw the inside area too, that's ok.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withColor(color: Color): RoundedBorder

Returns a new instance of ColoredBorder with a different color. Other attributes of the border will be copied. e.g. For a RoundedBorder, the radius will be the same.