ColorPainter
-
Cmn
class ColorPainter : Painter
| kotlin.Any | ||
| ↳ | androidx.compose.ui.graphics.painter.Painter | |
| ↳ | androidx.compose.ui.graphics.painter.ColorPainter |
Painter implementation used to fill the provided bounds with the specified color
Summary
Public constructors |
|
|---|---|
ColorPainter(color: Color) |
Cmn
|
Protected functions |
||
|---|---|---|
open Boolean |
applyAlpha(alpha: Float)Apply the provided alpha value returning true if it was applied successfully, or false if it could not be applied |
Cmn
|
open Boolean |
applyColorFilter(colorFilter: ColorFilter?)Apply the provided color filter returning true if it was applied successfully, or false if it could not be applied |
Cmn
|
open Unit |
Implementation of drawing logic for instances of |
Cmn
|
Public properties |
||
|---|---|---|
Color |
Cmn
|
|
open Size |
Drawing a color does not have an intrinsic size, return |
Cmn
|
Inherited functions |
||||||
|---|---|---|---|---|---|---|
|
Public constructors
Protected functions
applyAlpha
protected open fun applyAlpha(alpha: Float): Boolean
Apply the provided alpha value returning true if it was applied successfully, or false if it could not be applied
applyColorFilter
protected open fun applyColorFilter(colorFilter: ColorFilter?): Boolean
Apply the provided color filter returning true if it was applied successfully, or false if it could not be applied
Public properties
intrinsicSize
open val intrinsicSize: Size
Drawing a color does not have an intrinsic size, return Size.Unspecified here