Source set: Common
public class Anchored(
public val state: LightAnchorState,
override val offset: DpOffset = DpOffset.Zero,
) : LightPosition()
A position measured from the composable that state is attached to with lightAnchor. The anchor must be in the same composition hierarchy as the lit composable. An anchor in a different Popup, Dialog or ComposeView contributes no light.
The light follows that composable wherever it is laid out, without either composable needing to know about the other. Until the anchored composable has been placed the position cannot be resolved and the light contributes nothing.
Parameters
| state | the anchor to position against. Two anchored positions are equal only when they share the same state instance. |
| offset | position of the light relative to the anchored composable's top-left corner. |
Functions
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