PositionScope

Known direct subclasses
LayoutStyleScope

This interface is deprecated. This scope type is being removed.

Known indirect subclasses
StyleScope

This interface is deprecated. This scope type is being removed.


An interface that introduces position properties to a Style receiver scope interface.

See also
StyleScope

Summary

Public functions

Unit
bottom(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
left(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
right(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn
Unit
top(value: Dp)

This function is deprecated. This scope type is being removed.

Cmn

Public functions

bottom

fun bottom(value: Dp): Unit

Offsets the component vertically from its original calculated bottom position. Positive values shift the component upwards (further from the bottom edge), negative downwards.

This property is not inherited

Parameters
value: Dp

The amount to offset from the bottom edge.

See also
left
top
right
offset

left

fun left(value: Dp): Unit

Offsets the component horizontally from its original calculated left position. Positive values shift the component to the right, negative to the left.

This property is not inherited

Parameters
value: Dp

The amount to offset from the left edge.

See also
top
right
bottom
offset

right

fun right(value: Dp): Unit

Offsets the component horizontally from its original calculated right position. Positive values shift the component to the left (further from the right edge), negative to the right.

This property is not inherited

Parameters
value: Dp

The amount to offset from the right edge.

See also
left
top
bottom
offset

top

fun top(value: Dp): Unit

Offsets the component vertically from its original calculated top position. Positive values shift the component downwards, negative upwards.

This property is not inherited

Parameters
value: Dp

The amount to offset from the top edge.

See also
left
right
bottom
offset