Class

ColorPainter

Painter implementation used to fill the provided bounds with the specified color

Source set: Common
public class ColorPainter(public val color: Color) : Painter()

Painter implementation used to fill the provided bounds with the specified color

Properties

intrinsicSize

Source set: Common
override val intrinsicSize: Size = Size.Unspecified

Drawing a color does not have an intrinsic size, return Size.Unspecified here

Functions

onDraw

Source set: Common
override fun DrawScope.onDraw()

applyAlpha

Source set: Common
override fun applyAlpha(alpha: Float): Boolean

applyColorFilter

Source set: Common
override fun applyColorFilter(colorFilter: ColorFilter?): Boolean

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: