DepthEffectLevels


class DepthEffectLevels


Jetpack Compose Glimmer components can use DepthEffect to establish a sense of hierarchy. DepthEffectLevels contains different levels of DepthEffect to express this hierarchy. Higher levels contain larger shadows, and represent components with a higher z-order than lower levels. In their baseline state (not focused) most components should have no (null) DepthEffect.

Summary

Public constructors

DepthEffectLevels(
    level1: DepthEffect,
    level2: DepthEffect,
    level3: DepthEffect,
    level4: DepthEffect,
    level5: DepthEffect
)

Public functions

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

Public properties

DepthEffect

the lowest level of DepthEffect.

DepthEffect

a level of DepthEffect higher than level1 and lower than level3.

DepthEffect

a level of DepthEffect higher than level2 and lower than level4.

DepthEffect

a level of DepthEffect higher than level3 and lower than level5.

DepthEffect

the highest level of DepthEffect.

Public constructors

DepthEffectLevels

Added in 1.0.0-alpha09
DepthEffectLevels(
    level1: DepthEffect = DepthEffectLevel1,
    level2: DepthEffect = DepthEffectLevel2,
    level3: DepthEffect = DepthEffectLevel3,
    level4: DepthEffect = DepthEffectLevel4,
    level5: DepthEffect = DepthEffectLevel5
)

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

level1

Added in 1.0.0-alpha09
val level1DepthEffect

the lowest level of DepthEffect. This level will have the smallest shadows.

level2

Added in 1.0.0-alpha09
val level2DepthEffect

a level of DepthEffect higher than level1 and lower than level3.

level3

Added in 1.0.0-alpha09
val level3DepthEffect

a level of DepthEffect higher than level2 and lower than level4.

level4

Added in 1.0.0-alpha09
val level4DepthEffect

a level of DepthEffect higher than level3 and lower than level5.

level5

Added in 1.0.0-alpha09
val level5DepthEffect

the highest level of DepthEffect. This level will have the largest shadows.