VerticalDragHandleDefaults


Contains the baseline values used by a VerticalDragHandle.

Summary

Public functions

DragHandleColors

Creates a DragHandleColors that represents the default and pressed colors used in an VerticalDragHandle.

Cmn
DragHandleColors
@Composable
colors(defaultColor: Color, pressedColor: Color)

Creates a DragHandleColors that represents the default and pressed colors used in an VerticalDragHandle.

Cmn
DragHandleShapes

Creates a DragHandleShapes that represents the default and pressed shapes used in an VerticalDragHandle.

Cmn
DragHandleShapes
@Composable
shapes(defaultShape: Shape?, pressedShape: Shape?)

Creates a DragHandleShapes that represents the default and pressed shapes used in an VerticalDragHandle.

Cmn
DragHandleSizes
sizes(defaultSize: DpSize, pressedSize: DpSize)

Creates a DragHandleSizes that represents the default and pressed sizes used in an VerticalDragHandle.

Cmn

Public functions

colors

@Composable
fun colors(): DragHandleColors

Creates a DragHandleColors that represents the default and pressed colors used in an VerticalDragHandle.

colors

@Composable
fun colors(
    defaultColor: Color = Color.Unspecified,
    pressedColor: Color = Color.Unspecified
): DragHandleColors

Creates a DragHandleColors that represents the default and pressed colors used in an VerticalDragHandle.

Parameters
defaultColor: Color = Color.Unspecified

provides a different color to override the default color of the drag handle when it's not being pressed.

pressedColor: Color = Color.Unspecified

provides a different color to override the color of the drag handle when it's being pressed or dragged.

shapes

@Composable
fun shapes(): DragHandleShapes

Creates a DragHandleShapes that represents the default and pressed shapes used in an VerticalDragHandle.

shapes

@Composable
fun shapes(defaultShape: Shape? = null, pressedShape: Shape? = null): DragHandleShapes

Creates a DragHandleShapes that represents the default and pressed shapes used in an VerticalDragHandle.

Parameters
defaultShape: Shape? = null

provides a different shape to override the default shape of the drag handle when it's not being pressed.

pressedShape: Shape? = null

provides a different shape to override the shape of the drag handle when it's being pressed or dragged.

sizes

fun sizes(
    defaultSize: DpSize = DpSize(DragHandleTokens.Width, DragHandleTokens.Height),
    pressedSize: DpSize = DpSize(DragHandleTokens.PressedWidth, DragHandleTokens.PressedHeight)
): DragHandleSizes

Creates a DragHandleSizes that represents the default and pressed sizes used in an VerticalDragHandle.

Parameters
defaultSize: DpSize = DpSize(DragHandleTokens.Width, DragHandleTokens.Height)

provides a different size to override the default size of the drag handle when it's not being pressed.

pressedSize: DpSize = DpSize(DragHandleTokens.PressedWidth, DragHandleTokens.PressedHeight)

provides a different size to override the size of the drag handle when it's being pressed or dragged.