SpatialHoverEffectScope

@Immutable
interface SpatialHoverEffectScope

The scope of spatialHoverEffect DSL.

Inheritors

Functions

Link copied to clipboard
abstract fun alpha(@FloatRange(from = 0.0, to = 1.0) alpha: Float)

Sets transparency of the view.

Link copied to clipboard
abstract fun clipShape(shape: RoundedCornerShape, size: IntSize, offset: IntOffset = IntOffset.Zero)

Clips the view with the given shape, size, and offset.

Link copied to clipboard
abstract fun offset(offset: DpOffset)
abstract fun offset(x: Dp = 0.dp, y: Dp = 0.dp)

Sets the offset of the view.

Link copied to clipboard
abstract fun rotate(degree: Float, origin: TransformOrigin = TransformOrigin.Center)

Rotates the view along the z-axis by the given degree and origin.

Link copied to clipboard
abstract fun scale(scale: Float, origin: TransformOrigin = TransformOrigin.Center)

Scales the view by the given scale and origin.

abstract fun scale(scaleX: Float, scaleY: Float, origin: TransformOrigin = TransformOrigin.Center)

Scales the view by the given scaleX, scaleY, and origin.