TransformOriginScope

Known direct subclasses
LayerStyleScope

An interface that introduces the graphics layer property to a Style receiver scope.

Known indirect subclasses
StyleScope

A StyleScope is the receiver scope of a Style lambda.


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

See also
StyleScope

Summary

Public functions

Unit

Offset percentage along the x-axis for which contents are rotated and scaled.

Cmn
Unit

Offset percentage along the y-axis for which contents are rotated and scaled.

Cmn

Extension functions

Unit

Offset percentage along the x and y-axis for which contents are rotated and scaled.

Cmn

Public functions

transformOriginX

fun transformOriginX(value: Float): Unit

Offset percentage along the x-axis for which contents are rotated and scaled. The default value of 0.5f indicates the pivot point will be at the midpoint of the left and right bounds of the layer. Default value is TransformOrigin.Center.

Parameters
value: Float

The origin of the transform

transformOriginY

fun transformOriginY(value: Float): Unit

Offset percentage along the y-axis for which contents are rotated and scaled. The default value of 0.5f indicates the pivot point will be at the midpoint of the top and bottom bounds of the layer. Default value is TransformOrigin.Center.

Parameters
value: Float

The origin of the transform

Extension functions

TransformOriginScope.transformOrigin

@ExperimentalFoundationStyleApi
fun TransformOriginScope.transformOrigin(value: TransformOrigin): Unit

Offset percentage along the x and y-axis for which contents are rotated and scaled. The default value of 0.5f, 0.5f indicates the pivot point will be at the midpoint of the left and right as well as the top and bottom bounds of the layer. Default value is TransformOrigin.Center.

Parameters
value: TransformOrigin

The origin of the transform