Class

LightPosition.Local

A position measured from the top-left corner of the composable being lit.

Source set: Common
public class Local(override val offset: DpOffset) : LightPosition()

A position measured from the top-left corner of the composable being lit.

The light is part of that composable and moves with it, so the shading does not change as the composable is scrolled or repositioned. This is the cheapest option, as no coordinate conversion is required.

Parameters

offset position of the light relative to the lit 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
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: