TransitionAwarePainter

class TransitionAwarePainter(iconSize: Dp, decorationAreaType: DecorationAreaType, skinColors: AuroraSkinColors, modelStateInfoSnapshot: ModelStateInfoSnapshot, paintDelegate: (drawScope: DrawScope, iconSize: Dp, colorScheme: AuroraColorScheme) -> Unit, density: Density) : Painter

Painter with transition-aware capabilities. Has a delegate that does the actual painting based on the transition color schemes.

Constructors

TransitionAwarePainter
Link copied to clipboard
fun TransitionAwarePainter(iconSize: Dp, decorationAreaType: DecorationAreaType, skinColors: AuroraSkinColors, modelStateInfoSnapshot: ModelStateInfoSnapshot, paintDelegate: (drawScope: DrawScope, iconSize: Dp, colorScheme: AuroraColorScheme) -> Unit, density: Density)

Functions

draw
Link copied to clipboard
fun DrawScope.draw(size: Size, alpha: Float, colorFilter: ColorFilter?)

Properties

decorationAreaType
Link copied to clipboard
val decorationAreaType: DecorationAreaType
density
Link copied to clipboard
val density: Density
iconSize
Link copied to clipboard
val iconSize: Dp
intrinsicSize
Link copied to clipboard
open override val intrinsicSize: Size
modelStateInfoSnapshot
Link copied to clipboard
val modelStateInfoSnapshot: ModelStateInfoSnapshot
paintDelegate
Link copied to clipboard
val paintDelegate: (drawScope: DrawScope, iconSize: Dp, colorScheme: AuroraColorScheme) -> Unit
skinColors
Link copied to clipboard
val skinColors: AuroraSkinColors