Object

VerticalDragHandleDefaults

Contains the baseline values used by a VerticalDragHandle.

Source set: Common

Added in 1.5.0-alpha17

object VerticalDragHandleDefaults

Contains the baseline values used by a VerticalDragHandle.

Functions

colors

Added in 1.5.0-alpha17

@Composable fun colors(): DragHandleColors

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

colors

Added in 1.5.0-alpha17

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

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

Parameters

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

shapes

Added in 1.5.0-alpha17

@Composable fun shapes(): DragHandleShapes

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

shapes

Added in 1.5.0-alpha17

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

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

Parameters

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

sizes

Added in 1.5.0-alpha17

fun (): DragHandleSizes

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

sizes

Added in 1.5.0-alpha17

fun sizes(
        size: DpSize = DpSize.Unspecified,
        pressedSize: DpSize = DpSize.Unspecified,
        draggedSize: DpSize = DpSize.Unspecified,
    ): DragHandleSizes

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

Parameters

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