Class

Breadth

Specifies dimension breadths for styling.

Source set: Common
public sealed class Breadth : Interpolatable

Specifies dimension breadths for styling.

A Breadth is a value that can either be a fraction of the parent or a specific Dp value. For example, properties for "width" and "height" are good candidates for Breadth.

Functions

lerp

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

Members

Distance

Source set: Common
public class Distance(public val value: Dp) : Breadth()

Specifies absolute breadth in Dp.

Functions

equals

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

hashCode

Source set: Common
override fun hashCode(): Int

Fraction

Source set: Common
public class Fraction(public val value: Float) : Breadth()

Specifies relative breadth as a fraction of available space.

Functions

equals

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

hashCode

Source set: Common
override fun hashCode(): Int

None

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

Represents an empty or unspecified breadth.

Functions

equals

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

hashCode

Source set: Common
override fun hashCode(): Int

Companion

Source set: Common
public companion object

Properties

None

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

Singleton instance representing no breadth.

Content updated: