commonMain.com.bselzer.ktx.compose.ui.layout.merge.ContentScaleMerger.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.layout.ContentScale
import androidx.compose.ui.layout.ScaleFactor
class ContentScaleMerger : ComponentMerger {
override val default: ContentScale = Default
companion object {
@Stable
val Default = object : ContentScale {
override fun computeScaleFactor(srcSize: Size, dstSize: Size): ScaleFactor = ScaleFactor.Unspecified
}
}
}