This site requires javascript.
Android Code Search
file:androidx/compose/ui/unit/IntSize.kt function:IntSize
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/
IntSize.kt
content_copy
Preview
29:
30:
31:
/** Constructs an [IntSize] from width and height [Int] values. */
@Stable
inline
fun
IntSize
(width: Int, height: Int): IntSize = IntSize(packInts(width, height))
112:
113:
114:
*/
@Stable
fun
Size.to
IntSize
(): IntSize = IntSize(packInts(this.width.toInt(), this.height.toInt()))
119:
120:
121:
@Stable
fun
Size.roundTo
IntSize
(): IntSize =
IntSize(packInts(this.width.fastRoundToInt(), this.height.fastRoundToInt()))
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
Help
Open branch androidx-main