This site requires javascript.
Android Code Search
file:androidx/compose/ui/unit/Dp.kt symbol:size
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
compose/ui/ui-unit/src/commonMain/kotlin/androidx/compose/ui/unit/
Dp.kt
content_copy
Preview
286:
287:
288:
/** Constructs a [DpSize] from [width] and [height] [Dp] values. */
@Stable
fun
Dp
Size
(width: Dp, height: Dp): DpSize = DpSize(packFloats(width.value, height.value))
291:
292:
293:
@JvmInline
value
class
Dp
Size
internal
constructor
(@PublishedApi
internal
val
packedValue: Long) {
/** The horizontal aspect of the Size in [Dp] */
432:
433:
434:
@Stable
inline
val
DpRect.
size
: DpSize
get
() = DpSize(width, height)
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Open branch androidx-main
Help