Scoop API

scoop:scoop.ui.component:0.1.0

fitContent

function fitContent

source · line 11
public
public fun fitContent(naturalSize: Size, bounds: Rect, fit: ContentFit = ContentFit.Contain, alignment: Alignment = Alignment(), direction: LayoutDirection = LayoutDirection.Ltr): Rect

Fits logical content without applying a pixel density or mirroring its drawing.