ExternalPaddingScope

Known direct subclasses
LayoutStyleScope

An interface that introduces the layout properties to a Style receiver scope.

Known indirect subclasses
StyleScope

A StyleScope is the receiver scope of a Style lambda.


An interface that introduces the externalPadding properties to a Style receiver scope interface.

See also
StyleScope

Summary

Public functions

Unit

Sets the external padding for the bottom edge of the component.

Cmn
Unit

Sets the external padding for the end edge of the component.

Cmn
Unit

Sets the external padding for the start edge of the component.

Cmn
Unit

Sets the external padding for the top edge of the component.

Cmn

Extension functions

Unit

Sets the external padding for all four edges (top, end, bottom, start) of the component.

Cmn
Unit

Sets the external padding for the vertical (top and bottom) and horizontal (start and end) edges of the component.

Cmn
Unit
@ExperimentalFoundationStyleApi
ExternalPaddingScope.externalPadding(
    start: Dp,
    top: Dp,
    end: Dp,
    bottom: Dp
)

Sets the external padding for all four edges (top, end, bottom, start) of the component.

Cmn
Unit

Sets the external padding for the horizontal (start and end) edges of the component.

Cmn
Unit

Sets the external padding for the vertical (start and end) edges of the component.

Cmn

Public functions

externalPaddingBottom

fun externalPaddingBottom(value: Dp): Unit

Sets the external padding for the bottom edge of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the bottom edge.

externalPaddingEnd

fun externalPaddingEnd(value: Dp): Unit

Sets the external padding for the end edge of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the end edge.

externalPaddingStart

fun externalPaddingStart(value: Dp): Unit

Sets the external padding for the start edge of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the start edge.

externalPaddingTop

fun externalPaddingTop(value: Dp): Unit

Sets the external padding for the top edge of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the top edge.

Extension functions

ExternalPaddingScope.externalPadding

@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPadding(value: Dp): Unit

Sets the external padding for all four edges (top, end, bottom, start) of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to all four edges.

ExternalPaddingScope.externalPadding

@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPadding(horizontal: Dp, vertical: Dp): Unit

Sets the external padding for the vertical (top and bottom) and horizontal (start and end) edges of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
horizontal: Dp

The padding for the start and end edges.

vertical: Dp

The padding for the top and bottom edges.

ExternalPaddingScope.externalPadding

@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPadding(
    start: Dp,
    top: Dp,
    end: Dp,
    bottom: Dp
): Unit

Sets the external padding for all four edges (top, end, bottom, start) of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
start: Dp

The padding for the start edge.

top: Dp

The padding for the top edge.

end: Dp

The padding for the end edge.

bottom: Dp

The padding for the bottom edge.

ExternalPaddingScope.externalPaddingHorizontal

@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPaddingHorizontal(value: Dp): Unit

Sets the external padding for the horizontal (start and end) edges of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to both start and end edges.

ExternalPaddingScope.externalPaddingVertical

@ExperimentalFoundationStyleApi
fun ExternalPaddingScope.externalPaddingVertical(value: Dp): Unit

Sets the external padding for the vertical (start and end) edges of the component. The external padding is the space between the edge of the component and its border (if any). The width/height of the component includes external padding.

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to both top and bottom edges.