DelegateBorderPainter

class DelegateBorderPainter(displayName: String, delegate: StandardBorderPainter, topMask: Long, midMask: Long, bottomMask: Long, transform: (AuroraColorScheme) -> AuroraColorScheme) : StandardBorderPainter

Delegate border painter that allows tweaking the visual appearance of borders.

Mask is an 8-digit hexadecimal number applied on a color painted by the delegate. Can be used to apply custom translucency. For example, value 0x80FFFFFF will result in 50% translucency of the original border color.

Author

Kirill Grouchnikov

Constructors

DelegateBorderPainter
Link copied to clipboard
fun DelegateBorderPainter(displayName: String, delegate: StandardBorderPainter, topMask: Long = 4294967295, midMask: Long = 4294967295, bottomMask: Long = 4294967295, transform: (AuroraColorScheme) -> AuroraColorScheme = { it })

Functions

getBottomBorderColor
Link copied to clipboard
open override fun getBottomBorderColor(borderScheme: AuroraColorScheme): Color

Computes the color of the bottom portion of the border. Override to provide different visual.

getMidBorderColor
Link copied to clipboard
open override fun getMidBorderColor(borderScheme: AuroraColorScheme): Color

Computes the color of the middle portion of the border. Override to provide different visual.

getRepresentativeColor
Link copied to clipboard
open override fun getRepresentativeColor(borderScheme: AuroraColorScheme): Color
getTopBorderColor
Link copied to clipboard
open override fun getTopBorderColor(borderScheme: AuroraColorScheme): Color

Computes the color of the top portion of the border. Override to provide different visual.

paintBorder
Link copied to clipboard
open override fun paintBorder(drawScope: DrawScope, size: Size, outline: Outline, outlineInner: Outline?, borderScheme: AuroraColorScheme, alpha: Float)

Properties

bottomMask
Link copied to clipboard
val bottomMask: Long = 4294967295
delegate
Link copied to clipboard
val delegate: StandardBorderPainter
displayName
Link copied to clipboard
open override val displayName: String

The display name of this trait.

isPaintingInnerOutline
Link copied to clipboard
open override val isPaintingInnerOutline: Boolean
midMask
Link copied to clipboard
val midMask: Long = 4294967295
topMask
Link copied to clipboard
val topMask: Long = 4294967295
transform
Link copied to clipboard
val transform: (AuroraColorScheme) -> AuroraColorScheme