This site requires javascript.
Android Code Search
file:androidx/compose/foundation/Border.kt function:border
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/src/commonMain/kotlin/androidx/compose/foundation/
Border.kt
content_copy
Preview
66:
67:
68:
@Stable
fun
Modifier.
border
(border: BorderStroke, shape: Shape = RectangleShape) =
border(width = border.width, brush = border.brush, shape = shape)
79:
80:
81:
@Stable
fun
Modifier.
border
(width: Dp, color: Color, shape: Shape = RectangleShape) =
border(width, SolidColor(color), shape)
93:
94:
95:
@Stable
fun
Modifier.
border
(width: Dp, brush: Brush, shape: Shape) =
this then BorderModifierNodeElement(width, brush, shape)
196:
197:
198:
*/
private
fun
CacheDrawScope.drawGeneric
Border
(
brush: Brush,
282:
283:
284:
/** Border implementation for simple rounded rects and those with different corner radii */
private
fun
CacheDrawScope.drawRoundRect
Border
(
brush: Brush,
358:
359:
360:
) {
inline
fun
CacheDrawScope.draw
Border
Cache(
borderSize: IntSize,
405:
406:
407:
*/
private
fun
CacheDrawScope.drawContentWithout
Border
(): DrawResult = onDrawWithContent {
drawContent()
410:
411:
412:
/** Border implementation for rectangular borders */
private
fun
CacheDrawScope.drawRect
Border
(
brush: Brush,
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