All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.huanshankeji.compose.ui.Alignment.kt Maven / Gradle / Ivy

Go to download

Common wrappers of components (including layouts) and styles for Compose Multiplatform on (desktop/Android and web)

The newest version!
package com.huanshankeji.compose.ui

import androidx.compose.runtime.Stable

// TODO use `@Immutable` instead?
@Stable
expect interface Alignment {
    @Stable
    interface Horizontal

    @Stable
    interface Vertical

    companion object {
        // 2D Alignments.
        @Stable
        val TopStart: Alignment

        @Stable
        val TopCenter: Alignment

        @Stable
        val TopEnd: Alignment

        @Stable
        val CenterStart: Alignment

        @Stable
        val Center: Alignment

        @Stable
        val CenterEnd: Alignment

        @Stable
        val BottomStart: Alignment

        @Stable
        val BottomCenter: Alignment

        @Stable
        val BottomEnd: Alignment

        // 1D Alignment.Verticals.
        @Stable
        val Top: Vertical

        @Stable
        val CenterVertically: Vertical

        @Stable
        val Bottom: Vertical

        // 1D Alignment.Horizontals.
        @Stable
        val Start: Horizontal

        @Stable
        val CenterHorizontally: Horizontal

        @Stable
        val End: Horizontal
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy