ListItemShape

class ListItemShape


Represents the Shape of ListItem in different interaction states.

Summary

Public constructors

ListItemShape(
    shape: Shape,
    focusedShape: Shape,
    pressedShape: Shape,
    selectedShape: Shape,
    disabledShape: Shape,
    focusedSelectedShape: Shape,
    focusedDisabledShape: Shape,
    pressedSelectedShape: Shape
)

create an instance with arbitrary shapes.

Public functions

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

Public properties

Shape

the shape used when the ListItem is not enabled.

Shape

the shape used when the ListItem is not enabled and focused.

Shape

the shape used when the ListItem is enabled, focused and selected.

Shape

the shape used when the ListItem is enabled and focused.

Shape

the shape used when the ListItem is enabled, pressed and selected.

Shape

the shape used when the ListItem is enabled and pressed.

Shape

the shape used when the ListItem is enabled and selected.

Shape

the shape used when the ListItem is enabled.

Public constructors

ListItemShape

Added in 1.0.0
ListItemShape(
    shape: Shape,
    focusedShape: Shape,
    pressedShape: Shape,
    selectedShape: Shape,
    disabledShape: Shape,
    focusedSelectedShape: Shape,
    focusedDisabledShape: Shape,
    pressedSelectedShape: Shape
)

create an instance with arbitrary shapes. See ListItemDefaults.shape for the default shapes used in a ListItem.

Parameters
shape: Shape

the shape used when the ListItem is enabled.

focusedShape: Shape

the shape used when the ListItem is enabled and focused.

pressedShape: Shape

the shape used when the ListItem is enabled and pressed.

selectedShape: Shape

the shape used when the ListItem is enabled and selected.

disabledShape: Shape

the shape used when the ListItem is not enabled.

focusedSelectedShape: Shape

the shape used when the ListItem is enabled, focused and selected.

focusedDisabledShape: Shape

the shape used when the ListItem is not enabled and focused.

pressedSelectedShape: Shape

the shape used when the ListItem is enabled, pressed and selected.

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

disabledShape

Added in 1.0.0
val disabledShape: Shape

the shape used when the ListItem is not enabled.

focusedDisabledShape

Added in 1.0.0
val focusedDisabledShape: Shape

the shape used when the ListItem is not enabled and focused.

focusedSelectedShape

Added in 1.0.0
val focusedSelectedShape: Shape

the shape used when the ListItem is enabled, focused and selected.

focusedShape

Added in 1.0.0
val focusedShape: Shape

the shape used when the ListItem is enabled and focused.

pressedSelectedShape

Added in 1.0.0
val pressedSelectedShape: Shape

the shape used when the ListItem is enabled, pressed and selected.

pressedShape

Added in 1.0.0
val pressedShape: Shape

the shape used when the ListItem is enabled and pressed.

selectedShape

Added in 1.0.0
val selectedShape: Shape

the shape used when the ListItem is enabled and selected.

shape

Added in 1.0.0
val shape: Shape

the shape used when the ListItem is enabled.