Represents the shapes of a list item in different states.

Summary

Public constructors

ListItemShapes(
    shape: Shape,
    selectedShape: Shape,
    pressedShape: Shape,
    focusedShape: Shape,
    hoveredShape: Shape,
    draggedShape: Shape
)
Cmn

Public functions

ListItemShapes
copy(
    shape: Shape?,
    selectedShape: Shape?,
    pressedShape: Shape?,
    focusedShape: Shape?,
    hoveredShape: Shape?,
    draggedShape: Shape?
)

Returns a copy of this ListItemShapes, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Shape

the shape of the list item when dragged.

Cmn
Shape

the shape of the list item when focused.

Cmn
Shape

the shape of the list item when hovered.

Cmn
Shape

the shape of the list item when pressed.

Cmn
Shape

the shape of the list item when selected.

Cmn
Shape

the default shape of the list item.

Cmn

Public constructors

ListItemShapes

ListItemShapes(
    shape: Shape,
    selectedShape: Shape,
    pressedShape: Shape,
    focusedShape: Shape,
    hoveredShape: Shape,
    draggedShape: Shape
)
Parameters
shape: Shape

the default shape of the list item.

selectedShape: Shape

the shape of the list item when selected.

pressedShape: Shape

the shape of the list item when pressed.

focusedShape: Shape

the shape of the list item when focused.

hoveredShape: Shape

the shape of the list item when hovered.

draggedShape: Shape

the shape of the list item when dragged.

Public functions

copy

fun copy(
    shape: Shape? = this.shape,
    selectedShape: Shape? = this.selectedShape,
    pressedShape: Shape? = this.pressedShape,
    focusedShape: Shape? = this.focusedShape,
    hoveredShape: Shape? = this.hoveredShape,
    draggedShape: Shape? = this.draggedShape
): ListItemShapes

Returns a copy of this ListItemShapes, optionally overriding some of the values.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

draggedShape

val draggedShapeShape

the shape of the list item when dragged.

focusedShape

val focusedShapeShape

the shape of the list item when focused.

hoveredShape

val hoveredShapeShape

the shape of the list item when hovered.

pressedShape

val pressedShapeShape

the shape of the list item when pressed.

selectedShape

val selectedShapeShape

the shape of the list item when selected.

shape

val shapeShape

the default shape of the list item.