Package-level declarations

Types

Link copied to clipboard
expect class Brush
actual class Brush
actual class Brush
Link copied to clipboard
expect class Color
actual class Color
actual class Color
Link copied to clipboard
fun interface ColorProducer

Functions

Link copied to clipboard
fun AttrsScope<*>.applyAttrs(color: ColorProducer)
Link copied to clipboard
fun StyleScope.applyStyle(color: Color?)
fun StyleScope.applyStyle(color: ColorProducer)
fun StyleScope.applyStyle(color: ColorProducer?)
Link copied to clipboard
expect fun Color(@ColorInt color: Int): Color

ARGB

expect fun Color(color: Long): Color
expect fun Color(red: Float, green: Float, blue: Float, alpha: Float = 1.0f): Color
expect fun Color(@IntRange(from = 0, to = 255) red: Int, @IntRange(from = 0, to = 255) green: Int, @IntRange(from = 0, to = 255) blue: Int, @IntRange(from = 0, to = 255) alpha: Int = 255): Color
actual fun Color(@ColorInt color: Int): Color
actual fun Color(color: Long): Color
actual fun Color(red: Float, green: Float, blue: Float, alpha: Float): Color
actual fun Color(@IntRange(from = 0, to = 255) red: Int, @IntRange(from = 0, to = 255) green: Int, @IntRange(from = 0, to = 255) blue: Int, @IntRange(from = 0, to = 255) alpha: Int): Color
actual fun Color(@ColorInt color: Int): Color
actual fun Color(color: Long): Color
actual fun Color(red: Float, green: Float, blue: Float, alpha: Float): Color
actual fun Color(@IntRange(from = 0, to = 255) red: Int, @IntRange(from = 0, to = 255) green: Int, @IntRange(from = 0, to = 255) blue: Int, @IntRange(from = 0, to = 255) alpha: Int): Color
Link copied to clipboard
expect fun Color.luminance(): Float
actual fun Color.luminance(): Float
actual fun Color.luminance(): Float
Link copied to clipboard
Link copied to clipboard
fun Modifier.toAttrsWithColor(color: Color?): AttrsScope<*>.() -> Unit
fun Modifier.toAttrsWithColor(color: ColorProducer?): AttrsScope<*>.() -> Unit
Link copied to clipboard
fun ColorProducer?.toNullableAttrs(): AttrsScope<*>.() -> Unit?
Link copied to clipboard
Link copied to clipboard