RotationScope

Known direct subclasses
LayerStyleScope

This interface is deprecated. This scope type is being removed.

Known indirect subclasses
StyleScope

This interface is deprecated. This scope type is being removed.


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

See also
StyleScope

Summary

Public functions

Unit
rotationX(value: Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
rotationY(value: Float)

This function is deprecated. This scope type is being removed.

Cmn
Unit
rotationZ(value: Float)

This function is deprecated. This scope type is being removed.

Cmn

Extension functions

Unit

This function is deprecated. This style property is being removed.

Cmn

Public functions

rotationX

fun rotationX(value: Float): Unit

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

This property is not inherited

Parameters
value: Float

The rotation angle in degrees.

rotationY

fun rotationY(value: Float): Unit

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

This property is not inherited

Parameters
value: Float

The rotation angle in degrees.

rotationZ

fun rotationZ(value: Float): Unit

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

This property is not inherited

Parameters
value: Float

The rotation angle in degrees.

Extension functions

RotationScope.rotation

@ExperimentalFoundationStyleApi
fun RotationScope.rotation(x: Float, y: Float, z: Float): Unit

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

This property is not inherited

Parameters
x: Float

The x-axis rotation angle in degrees.

y: Float

The x-axis rotation angle in degrees.

z: Float

The x-axis rotation angle in degrees.