> Documentation index: https://developer.android.com/reference/llms.txt

# LightPosition.Global

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/lighting/Light.kt+class:androidx.compose.ui.lighting.LightPosition.Global) Added in [1.14.0-alpha01](https://developer.android.com/jetpack/androidx/releases/compose-ui.md.txt#1.14.0-alpha01) Common/All
- Cmn

  ```
  class LightPosition.Global : LightPosition
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.ui.lighting.LightPosition](https://developer.android.com/reference/kotlin/androidx/compose/ui/lighting/LightPosition.md.txt) ||
|   | ↳ | [androidx.compose.ui.lighting.LightPosition.Global](https://developer.android.com/reference/kotlin/androidx/compose/ui/lighting/LightPosition.Global.md.txt) |

*** ** * ** ***

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` | `hashCode()` | Cmn |
| `open String` | `toString()` | Cmn |

| ### Public properties |
|---|---|---|
| `open DpOffset` | `offset` position of the light relative to the root's top-left corner. | Cmn |

## Public constructors

### Global

Cmn Added in [1.14.0-alpha01](https://developer.android.com/jetpack/androidx/releases/compose-ui.md.txt#1.14.0-alpha01)

```
Global(offset: DpOffset)
```

| Parameters |
|---|---|
| `offset: DpOffset` | position of the light relative to the root's top-left corner. |

## Public functions

### equals

Cmn

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

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### offset

Cmn

```
open val offset: DpOffset
```

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