{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SolidColor

public final class SolidColor extends Brush

java.lang.Object
   ↳ androidx.compose.ui.graphics.Brush
     ↳ androidx.compose.ui.graphics.SolidColor

Summary

Public constructors

Public methods

void
applyTo(@NonNull Size size, @NonNull Paint p, float alpha)
boolean
equals(Object other)
final @NonNull Color
int
@NonNull String

Inherited methods

From androidx.compose.ui.graphics.Brush
@NonNull Size

Return the intrinsic size of the Brush.

Public constructors

SolidColor

public SolidColor(@NonNull Color value)

Public methods

applyTo

public void applyTo(@NonNull Size size, @NonNull Paint p, float alpha)

equals

public boolean equals(Object other)

getValue

public final @NonNull Color getValue()

hashCode

public int hashCode()

toString

public @NonNull String toString()