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

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

Functions

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.

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.

Link copied to clipboard
open override fun getRepresentativeColor(borderScheme: AuroraColorScheme): Color
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.

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

Properties

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

The display name of this trait.

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