Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

RotationScope

An interface that introduces the rotation properties to a Style receiver scope.

Source set: Common
@ExperimentalFoundationStyleApi
interface RotationScope

An interface that introduces the rotation properties to a Style receiver scope.

Functions

rotationX

fun rotationX(value: Float)

Rotates the component around the X-axis through its center.

This property is not inherited

Parameters

value The rotation angle in degrees.

rotationY

fun rotationY(value: Float)

Rotates the component around the Y-axis through its center.

This property is not inherited

Parameters

value The rotation angle in degrees.

rotationZ

fun rotationZ(value: Float)

Rotates the component around the Z-axis (perpendicular to the screen) through its center.

This property is not inherited

Parameters

value The rotation angle in degrees.

Last updated: