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