Shader Wrapper Decoration Painter
abstract class ShaderWrapperDecorationPainter(runtimeEffect: RuntimeEffect, baseShader: Shader?, baseDecorationPainter: AuroraDecorationPainter?) : AuroraDecorationPainter
Content copied to clipboard
Implementation of AuroraDecorationPainter that uses a Skia shader to paint on decoration areas.
Author
Kirill Grouchnikov
Constructors
Link copied to clipboard
fun ShaderWrapperDecorationPainter(runtimeEffect: RuntimeEffect, baseShader: Shader? = null, baseDecorationPainter: AuroraDecorationPainter? = null)
Content copied to clipboard
Functions
Link copied to clipboard
abstract fun getShaderData(density: Density, componentSize: Size, offsetFromRoot: Offset, fillScheme: AuroraColorScheme): Data
Content copied to clipboard
Link copied to clipboard
open override fun paintDecorationArea(drawScope: DrawScope, decorationAreaType: DecorationAreaType, componentSize: Size, outline: Outline, rootSize: Size, offsetFromRoot: Offset, colorScheme: AuroraColorScheme)
Content copied to clipboard
Paints the decoration area as a specified shape.