Class

Fill

Specifies visual fill for styling.

Source set: Common
public sealed class Fill : Interpolatable

Specifies visual fill for styling.

A Fill is a value that describes how a region should be filled. "background" or "border color" properties are good candidates for a property of type Fill.

Functions

asColor

Source set: Common
public abstract fun asColor(): GraphicsColor

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

asBrush

Source set: Common
public abstract fun asBrush(): GraphicsBrush?

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

lerp

Source set: Common
override fun lerp(other: Any?, t: Float): Any?

Members

Color

Source set: Common
public class Color(public val color: GraphicsColor) : Fill()

Fills with a solid GraphicsColor.

Properties

isColor

Source set: Common
override val isColor: Boolean

lerpTarget

Source set: Common
override val lerpTarget: Any

Functions

asColor

Source set: Common
override fun asColor(): GraphicsColor

asBrush

Source set: Common
override fun asBrush(): GraphicsBrush

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String

Brush

Source set: Common
public class Brush(public val brush: GraphicsBrush) : Fill()

Fills with a GraphicsBrush.

Properties

lerpTarget

Source set: Common
override val lerpTarget: Any

Functions

asColor

Source set: Common
override fun asColor(): GraphicsColor

asBrush

Source set: Common
override fun asBrush(): GraphicsBrush

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String

None

Source set: Common
public class None internal constructor() : Fill()

Represents an empty fill with no visual representation.

Properties

isColor

Source set: Common
override val isColor: Boolean

lerpTarget

Source set: Common
override val lerpTarget: Any

Functions

asColor

Source set: Common
override fun asColor(): GraphicsColor

asBrush

Source set: Common
override fun asBrush(): GraphicsBrush?

Companion

Source set: Common
public companion object

Properties

None

Source set: Common
public val None: Fill = None()

Singleton instance representing no fill.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: