Fills with a GraphicsBrush.

Summary

Public constructors

Brush(brush: Brush)
Cmn

Public functions

open Brush

Return a brush if the Fill is a Fill.Brush, otherwise null.

Cmn
open Color

Return the color of this Fill if it is a Fill.Color or Color.Unspecified if Fill.None or Fill.Brush.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Brush

gradient or shader brush to fill with

Cmn

Inherited functions

From androidx.compose.foundation.style.Fill
open Any?
lerp(other: Any?, t: Float)

This method is defined such that a value of t being 1.0 means that the interpolation has finished, meaning that this method should return either other (or something equivalent to other), 0.0 meaning that the interpolation has not started, returning this (or something equivalent to this), and values in between meaning that the interpolation is at the relevant point on the timeline between this and other.

Cmn

Public constructors

Brush

Brush(brush: Brush)

Public functions

asBrush

open fun asBrush(): Brush

Return a brush if the Fill is a Fill.Brush, otherwise null.

asColor

open fun asColor(): Color

Return the color of this Fill if it is a Fill.Color or Color.Unspecified if Fill.None or Fill.Brush.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

brush

val brushBrush

gradient or shader brush to fill with