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

commonMain.com.bselzer.ktx.compose.ui.layout.merge.ShapeMerger.kt Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
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