WindowPosition

@Immutable
sealed class WindowPosition(source)

Position of a window on screen in Dp.

Inheritors

Types

Link copied to clipboard
data class Absolute(val x: Dp, val y: Dp) : WindowPosition

Absolute screen position.

Link copied to clipboard
data class Aligned(val alignment: Alignment) : WindowPosition

Align the initial window position on the current screen.

Link copied to clipboard

Let the platform choose the initial position.

Properties

Link copied to clipboard
@Stable
abstract val isSpecified: Boolean

Whether this position has explicit coordinates.

Link copied to clipboard
@Stable
abstract val x: Dp

Horizontal position.

Link copied to clipboard
@Stable
abstract val y: Dp

Vertical position.