ArcPaddingValues

interface ArcPaddingValues


Apply additional space along each edge of the content in Dp. See the ArcPaddingValues factories for convenient ways to build ArcPaddingValues.

Summary

Public functions

Dp
calculateAfterPadding(
    layoutDirection: LayoutDirection,
    angularDirection: CurvedDirection.Angular
)

Padding added before the component, if it was draw clockwise.

Dp
calculateBeforePadding(
    layoutDirection: LayoutDirection,
    angularDirection: CurvedDirection.Angular
)

Padding added after the component, if it was draw clockwise.

Dp

Padding in the inwards direction towards the center of the CurvedLayout

Dp

Padding in the outward direction from the center of the CurvedLayout

Public functions

calculateAfterPadding

Added in 1.6.0-alpha02
fun calculateAfterPadding(
    layoutDirection: LayoutDirection,
    angularDirection: CurvedDirection.Angular
): Dp

Padding added before the component, if it was draw clockwise. This is the edge of the component with the "smallest" angle.

calculateBeforePadding

Added in 1.6.0-alpha02
fun calculateBeforePadding(
    layoutDirection: LayoutDirection,
    angularDirection: CurvedDirection.Angular
): Dp

Padding added after the component, if it was draw clockwise. This is the edge of the component with the "biggest" angle.

calculateInnerPadding

Added in 1.6.0-alpha02
fun calculateInnerPadding(radialDirection: CurvedDirection.Radial): Dp

Padding in the inwards direction towards the center of the CurvedLayout

calculateOuterPadding

Added in 1.6.0-alpha02
fun calculateOuterPadding(radialDirection: CurvedDirection.Radial): Dp

Padding in the outward direction from the center of the CurvedLayout