commonMain.com.bselzer.ktx.compose.ui.layout.merge.ShapeMerger.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-ui-layout-jvm Show documentation
Show all versions of compose-ui-layout-jvm Show documentation
Base extensions for laying out Compose Multiplatform UI.
package com.bselzer.ktx.compose.ui.layout.merge
import androidx.compose.runtime.Stable
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.RectangleShape
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
class ShapeMerger : ComponentMerger {
override val default: Shape = Default
companion object {
@Stable
val Default = object : Shape {
override fun createOutline(size: Size, layoutDirection: LayoutDirection, density: Density) = RectangleShape.createOutline(size, layoutDirection, density)
override fun toString(): String = RectangleShape.toString()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy