WindowPosition

@Stable
sealed class WindowPosition

Desktop position in Compose dp. Wayland compositors control window positions themselves.

Inheritors

Types

Link copied to clipboard
@Stable
data class Absolute(val x: Dp, val y: Dp) : WindowPosition
Link copied to clipboard
@Stable
data class Aligned(val alignment: Alignment) : WindowPosition

Aligns to the current display's usable area, excluding taskbars and docks.

Link copied to clipboard
@Stable
data object PlatformDefault : WindowPosition

Leaves the initial position to the window system. Only valid before attachment.

Properties

Link copied to clipboard
abstract val isSpecified: Boolean
Link copied to clipboard
abstract val x: Dp
Link copied to clipboard
abstract val y: Dp