VectorPainter
-
Cmn
class VectorPainter : Painter
| kotlin.Any | ||
| ↳ | androidx.compose.ui.graphics.painter.Painter | |
| ↳ | androidx.compose.ui.graphics.vector.VectorPainter |
Painter implementation that abstracts the drawing of a Vector graphic. This can be represented by either a ImageVector or a programmatic composition of a vector
Summary
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
|
Inherited functions |
||||||
|---|---|---|---|---|---|---|
|
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
Return the intrinsic size of the Painter. If the there is no intrinsic size (i.e. filling bounds with an arbitrary color) return Size.Unspecified. If there is no intrinsic size in a single dimension, return Size with Float.NaN in the desired dimension. If a Painter does not have an intrinsic size, it will always draw within the full bounds of the destination