This site requires javascript.
Android Code Search
file:androidx/compose/foundation/layout/WindowInsets.kt function:add
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/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/
WindowInsets.kt
content_copy
Preview
201:
202:
203:
*/
fun
WindowInsets.
add
(insets: WindowInsets): WindowInsets = AddedInsets(this, insets)
220:
221:
222:
@Composable
fun
WindowInsets.asP
add
ingValues(): PaddingValues = InsetsPaddingValues(this, LocalDensity.current)
231:
232:
233:
*/
fun
WindowInsets.asP
add
ingValues(density: Density): PaddingValues =
InsetsPaddingValues(this, density)
611:
612:
613:
PaddingValues {
override
fun
calculateLeftP
add
ing(layoutDirection: LayoutDirection) =
with(density) { insets.getLeft(this, layoutDirection).toDp() }
615:
616:
617:
618:
override
fun
calculateTopP
add
ing() = with(density) { insets.getTop(this).toDp() }
override
fun
calculateRightP
add
ing(layoutDirection: LayoutDirection) =
with(density) { insets.getRight(this, layoutDirection).toDp() }
620:
621:
override
fun
calculateBottomP
add
ing() = with(density) { insets.getBottom(this).toDp() }
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