The Developer Preview for Android 11 is now available; test it out and share your feedback.

DrawBordersReceiver

class DrawBordersReceiver
kotlin.Any
   ↳ androidx.ui.foundation.DrawBordersReceiver

Collects information about the borders specified by drawBorders when its body is executed with a DrawBordersReceiver instance as argument.

Summary

Public methods

Unit
all(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add all borders.

Unit
allHorizontal(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add all horizontal borders.

Unit
allVertical(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add all vertical borders.

Unit
bottom(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add a horizontal border after the last row.

Unit
horizontal(row: Int, columns: IntRange = 0 until columnCount, borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add a horizontal border before row at the columns specified by columns.

Unit
left(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add a vertical border before the first column.

Unit
outer(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add all outer borders.

Unit
right(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add a vertical border after the last column.

Unit
top(borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add a horizontal border before the first row.

Unit
vertical(column: Int, rows: IntRange = 0 until rowCount, borderWidth: Dp = defaultBorderWidth, borderBrush: Brush = defaultBorderBrush)

Add a vertical border before column at the rows specified by rows.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public methods

all

fun all(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add all borders.

allHorizontal

fun allHorizontal(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add all horizontal borders.

allVertical

fun allVertical(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add all vertical borders.

bottom

fun bottom(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add a horizontal border after the last row.

horizontal

fun horizontal(
    row: Int,
    columns: IntRange = 0 until columnCount,
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add a horizontal border before row at the columns specified by columns.

left

fun left(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add a vertical border before the first column.

outer

fun outer(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add all outer borders.

right

fun right(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add a vertical border after the last column.

top

fun top(
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add a horizontal border before the first row.

vertical

fun vertical(
    column: Int,
    rows: IntRange = 0 until rowCount,
    borderWidth: Dp = defaultBorderWidth,
    borderBrush: Brush = defaultBorderBrush
): Unit

Add a vertical border before column at the rows specified by rows.