Searched refs:boxWidth (Results 1 – 6 of 6) sorted by relevance
| /compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/ |
| D | Box.kt | 141 val boxWidth: Int in measure() constant 146 boxWidth = max(constraints.minWidth, placeable.width) in measure() 149 boxWidth = constraints.minWidth in measure() 156 return layout(boxWidth, boxHeight) { in measure() 157 placeInBox(placeable, measurable, layoutDirection, boxWidth, boxHeight, alignment) in measure() 164 var boxWidth = constraints.minWidth in measure() variable 170 boxWidth = max(boxWidth, placeable.width) in measure() 182 minWidth = if (boxWidth != Constraints.Infinity) boxWidth else 0, in measure() 184 maxWidth = boxWidth, in measure() 195 return layout(boxWidth, boxHeight) { in measure() [all …]
|
| /compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/ |
| D | CanvasTest.kt | 58 val boxWidth = 100 constant 60 val containerSize = boxWidth 70 val minWidth = (boxWidth / density).dp in testCanvas() 93 val imageStartX = width / 2 - boxWidth / 2 in testCanvas() 108 getPixel(imageStartX + boxWidth - 1, imageStartY + boxHeight - 1) in testCanvas() 114 getPixel(imageStartX + boxWidth + strokeOffset, imageStartY + boxHeight) in testCanvas() 120 getPixel(imageStartX + boxWidth - strokeOffset, imageStartY + boxHeight) in testCanvas() 126 getPixel(imageStartX + boxWidth / 2, imageStartY + boxHeight / 2) in testCanvas() 132 getPixel(imageStartX + boxWidth / 2 - strokeOffset, imageStartY + boxHeight / 2) in testCanvas() 138 getPixel(imageStartX + boxWidth / 2 + strokeOffset, imageStartY + boxHeight / 2) in testCanvas()
|
| D | ImageTest.kt | 394 val boxWidth = 240 in testVectorScaledCentered() constant 401 val size = (boxWidth * 2 / density).dp in testVectorScaledCentered() 402 val minWidth = (boxWidth / density).dp in testVectorScaledCentered() 425 val imageStartX = width / 2 - boxWidth / 2 in testVectorScaledCentered() 430 getPixel(imageStartX + boxWidth + 1, imageStartY - 1) in testVectorScaledCentered() 434 getPixel(imageStartX + boxWidth + 1, imageStartY + boxHeight + 1) in testVectorScaledCentered() 444 getPixel(imageStartX + boxWidth - 2, imageStartY - 1) in testVectorScaledCentered() 448 getPixel(imageStartX + boxWidth - 10, imageStartY + boxHeight - 2) in testVectorScaledCentered()
|
| /compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/draw/ |
| D | PainterModifierTest.kt | 560 val boxWidth = 300 in <lambda>() constant 574 .requiredWidth(boxWidth.toDp()) in <lambda>() 580 rule.obtainScreenshotBitmap(boxWidth, boxHeight).apply { in <lambda>() 581 assertEquals(width, boxWidth) in <lambda>() 583 assertEquals(Color.Gray.toArgb(), getPixel(boxWidth / 2 - srcImage.width - 5, 0)) in <lambda>() 586 getPixel(boxWidth / 2 + srcImage.width + 5, boxHeight - 1) in <lambda>() 588 assertEquals(Color.Red.toArgb(), getPixel(boxWidth / 2 - srcImage.width + 5, 0)) in <lambda>() 591 getPixel(boxWidth / 2 + srcImage.width - 5, boxHeight - 1) in <lambda>() 602 val boxWidth = 60 in <lambda>() constant 616 .requiredWidth((boxWidth / LocalDensity.current.density).dp) in <lambda>() [all …]
|
| /compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/ |
| D | TextOverflowTest.kt | 75 val boxWidth = 200 in paint_singleParagraph_withVisibleOverflow() constant 82 Box(Modifier.testTag(BoxTag).size(boxWidth.dp, boxHeight.dp)) { in paint_singleParagraph_withVisibleOverflow() 104 Bitmap.createBitmap(boxBitmap, 0, 2 * lineHeight, boxWidth, boxHeight - 2 * lineHeight) in paint_singleParagraph_withVisibleOverflow() 117 val boxWidth = 200 in paint_multiParagraph_withVisibleOverflow() constant 124 Box(Modifier.testTag(BoxTag).size(boxWidth.dp, boxHeight.dp)) { in paint_multiParagraph_withVisibleOverflow() 146 Bitmap.createBitmap(boxBitmap, 0, 2 * lineHeight, boxWidth, boxHeight - 2 * lineHeight) in paint_multiParagraph_withVisibleOverflow()
|
| /compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/ |
| D | ModalBottomSheetTest.kt | 257 var boxWidth = 0 in <lambda>() variable 269 boxWidth = it.width in <lambda>() 274 assertThat(boxWidth).isEqualTo(screenWidth) in <lambda>()
|