LightPosition.Global


A position measured from the top-left corner of the root of the composition that hosts the lit composable, the same space as positionInRoot. A Popup or Dialog has its own root.

The light is fixed in the root composable, so moving or scrolling the lit composable moves it through the light and the shading changes accordingly. Use this for a single light shared by several composables that should agree on where it is.

Summary

Public constructors

Global(offset: DpOffset)
Cmn

Public functions

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

Public properties

open DpOffset

position of the light relative to the root's top-left corner.

Cmn

Public constructors

Global

Global(offset: DpOffset)
Parameters
offset: DpOffset

position of the light relative to the root's top-left corner.

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

offset

open val offset: DpOffset

position of the light relative to the root's top-left corner.