Home
last modified time | relevance | path

Searched refs:widthPx (Results 1 – 8 of 8) sorted by relevance

/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/
DBorder.kt450 private fun createInsetRoundedRect(widthPx: Float, roundedRect: RoundRect) =
452 left = widthPx,
453 top = widthPx,
454 right = roundedRect.width - widthPx,
455 bottom = roundedRect.height - widthPx,
456 topLeftCornerRadius = roundedRect.topLeftCornerRadius.shrink(widthPx),
457 topRightCornerRadius = roundedRect.topRightCornerRadius.shrink(widthPx),
458 bottomLeftCornerRadius = roundedRect.bottomLeftCornerRadius.shrink(widthPx),
459 bottomRightCornerRadius = roundedRect.bottomRightCornerRadius.shrink(widthPx)
/compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/android/style/
DPlaceholderSpan.android.kt89 var widthPx: Int = 0 variable in androidx.compose.ui.text.android.style.PlaceholderSpan
122 widthPx = in getSize()
173 return widthPx in getSize()
/compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/
DColumnSample.kt102 val widthPx = max(width.roundToPx(), constraints.minWidth) in SimpleRelativeToSiblingsInColumn() constant
104 layout(widthPx, heightPx, mapOf(start to 0, end to widthPx)) {} in SimpleRelativeToSiblingsInColumn()
/compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/suspendfun/
DOffsetKeyframeWithSplineDemo.kt73 val widthPx = with(density) { maxWidth.toPx() } in OffsetKeyframeWithSplineDemo() constant
76 val maxXOff = (widthPx - sizePx) / 2f in OffsetKeyframeWithSplineDemo()
/compose/material/material/src/commonMain/kotlin/androidx/compose/material/
DSlider.kt197 val widthPx = constraints.maxWidth.toFloat() in <lambda>() constant
202 maxPx = max(widthPx - ThumbRadius.toPx(), 0f) in <lambda>()
246 widthPx, in <lambda>()
420 val widthPx = constraints.maxWidth.toFloat() in RangeSlider() constant
425 maxPx = widthPx - ThumbRadius.toPx() in RangeSlider()
508 widthPx, in RangeSlider()
/compose/ui/ui-text/src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/android/style/
DPlaceholderSpanTest.kt48 assertThat(placeholderSpan.widthPx).isEqualTo((width * pxPerSp).toInt()) in width_isSp_equalsGiven()
67 assertThat(placeholderSpan.widthPx).isEqualTo((width * fontSize).toInt()) in width_isEm_equalsGiven()
559 placeholderSpan.widthPx in widthPx_accessBeforeGetSize()
/compose/ui/ui-text/src/androidMain/kotlin/androidx/compose/ui/text/
DAndroidParagraph.android.kt321 getHorizontalPosition(start, true) - span.widthPx in <lambda>()
323 val right = left + span.widthPx in <lambda>()
/compose/foundation/foundation-layout/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/layout/
DRowColumnTest.kt5748 val widthPx = max(width.roundToPx(), constraints.minWidth) in BaselineTestLayout() constant
5751 widthPx, in BaselineTestLayout()