Delegate Border Painter
class DelegateBorderPainter(displayName: String, delegate: StandardBorderPainter, topMask: Long, midMask: Long, bottomMask: Long, transform: (AuroraColorScheme) -> AuroraColorScheme) : StandardBorderPainter
Content copied to clipboard
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 })
Content copied to clipboard
Functions
get Bottom Border Color
Link copied to clipboard
open override fun getBottomBorderColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
Computes the color of the bottom portion of the border. Override to provide different visual.
get Mid Border Color
Link copied to clipboard
open override fun getMidBorderColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
Computes the color of the middle portion of the border. Override to provide different visual.
get Representative Color
Link copied to clipboard
open override fun getRepresentativeColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
get Top Border Color
Link copied to clipboard
open override fun getTopBorderColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
Computes the color of the top portion of the border. Override to provide different visual.
paint Border
Link copied to clipboard
open override fun paintBorder(drawScope: DrawScope, size: Size, outline: Outline, outlineInner: Outline?, borderScheme: AuroraColorScheme, alpha: Float)
Content copied to clipboard
Properties
bottomMask
Link copied to clipboard
delegate
Link copied to clipboard
displayName
Link copied to clipboard
isPaintingInnerOutline
Link copied to clipboard
transform
Link copied to clipboard