VerticalDragHandleDefaults

  • Common/All
  • Android/JVM

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(color: Color, pressedColor: Color, draggedColor: 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(shape: Shape?, pressedShape: Shape?, draggedShape: Shape?)

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

Cmn
DragHandleSizes
sizes(size: DpSize, pressedSize: DpSize, draggedSize: DpSize)

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

Cmn

Public properties

DragHandleSizes

The default sizes in different states of a 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(
    color: Color = Color.Unspecified,
    pressedColor: Color = Color.Unspecified,
    draggedColor: Color = Color.Unspecified
): DragHandleColors

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

Parameters
color: 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.

draggedColor: Color = Color.Unspecified

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

shapes

@Composable
fun shapes(): DragHandleShapes

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

shapes

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

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

Parameters
shape: 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.

draggedShape: Shape? = null

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

sizes

fun sizes(
    size: DpSize = DpSize(DragHandleTokens.Width, DragHandleTokens.Height),
    pressedSize: DpSize = DpSize(DragHandleTokens.PressedWidth, DragHandleTokens.PressedHeight),
    draggedSize: DpSize = DpSize(DragHandleTokens.DraggedWidth, DragHandleTokens.DraggedHeight)
): DragHandleSizes

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

Parameters
size: 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.

draggedSize: DpSize = DpSize(DragHandleTokens.DraggedWidth, DragHandleTokens.DraggedHeight)

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

Public properties

Sizes

val SizesDragHandleSizes

The default sizes in different states of a VerticalDragHandle.