ContentPaddingScope

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 contentPadding property to a Style receiver scope interface.

See also
StyleScope

Summary

Public functions

Unit

Sets the padding for the bottom edge of the component's content.

Cmn
Unit

Sets the padding for the end edge of the component's content.

Cmn
Unit

Sets the padding for the start edge of the component's content.

Cmn
Unit

Sets the padding for the top edge of the component's content.

Cmn

Extension functions

Unit

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

Cmn
Unit

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

Cmn
Unit

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

Cmn
Unit

Sets the padding for the horizontal (start and end) edges of the component's content.

Cmn
Unit

Sets the padding for the vertical (start and end) edges of the component's content.

Cmn

Public functions

contentPaddingBottom

fun contentPaddingBottom(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the bottom edge.

contentPaddingEnd

fun contentPaddingEnd(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the end edge.

contentPaddingStart

fun contentPaddingStart(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the start edge.

contentPaddingTop

fun contentPaddingTop(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to the top edge.

Extension functions

ContentPaddingScope.contentPadding

@ExperimentalFoundationStyleApi
fun ContentPaddingScope.contentPadding(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

The amount of padding to apply to all four edges.

ContentPaddingScope.contentPadding

@ExperimentalFoundationStyleApi
fun ContentPaddingScope.contentPadding(horizontal: Dp, vertical: Dp): Unit

Sets the padding for the vertical (top and bottom) and horizontal (start and end) edges of the component's content. Content padding is the space between the component's border (if any) and its content. The width/height of the component includes content 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.

ContentPaddingScope.contentPadding

@ExperimentalFoundationStyleApi
fun ContentPaddingScope.contentPadding(start: Dp, top: Dp, end: Dp, bottom: Dp): Unit

Sets the padding for all four edges (top, end, bottom, start) edges of the component's content. Content padding is the space between the component's border (if any) and its content. The width/height of the component includes content 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.

ContentPaddingScope.contentPaddingHorizontal

@ExperimentalFoundationStyleApi
fun ContentPaddingScope.contentPaddingHorizontal(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

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

ContentPaddingScope.contentPaddingVertical

@ExperimentalFoundationStyleApi
fun ContentPaddingScope.contentPaddingVertical(value: Dp): Unit

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

This property is not inherited

Parameters
value: Dp

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