Interface

CarouselItemDrawInfo

Interface to hold information about a Carousel item and its size.

Source set: Common

Added in 1.5.0-alpha17

sealed interface CarouselItemDrawInfo

Interface to hold information about a Carousel item and its size.

Example of CarouselItemDrawInfo usage:

Properties

size

Source set: Common

Added in 1.5.0-alpha17

val size: Float

The size of the carousel item in the main axis in pixels

minSize

Source set: Common

Added in 1.5.0-alpha17

val minSize: Float

The minimum size of the carousel item in the main axis in pixels, eg. the size of the item as it scrolls off the sides of the carousel

maxSize

Source set: Common

Added in 1.5.0-alpha17

val maxSize: Float

The maximum size of the carousel item in the main axis in pixels, eg. the size of the item when it is at a focal position

maskRect

Source set: Common

Added in 1.5.0-alpha17

val maskRect: Rect

The Rect by which the carousel item is being clipped.