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

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

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

Properties

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