scale

fun scale(factor: Float): UIElement

Sets the x & y scale factor for the ui element

NOTE: The behaviour of changing this parameters during an animation is unpredicted

Return

the current UIElement object

Parameters

factor

Starting from 0. 1 is 100%


open fun scale(sx: Float, sy: Float): UIElement

Sets the x,y scale factor for the ui element

NOTE: The behaviour of changing this parameters during an animation is unpredicted

Return

the current UIElement object

Parameters

sx

x scale factor, Starting from 0. 1 is 100%

sy

y scale factor, Starting from 0. 1 is 100%


fun scale(factor: Float, px: Float, py: Float, pivot: Pivot = Pivot.RelativeToSelf): UIElement

Sets the x & y scale factor for the ui element

NOTE: The behaviour of changing this parameters during an animation is unpredicted

Return

the current UIElement object

Parameters

factor

Starting from 0. 1 is 100%

px

scale pivot x coordinate pixel

py

scale pivot y coordinate pixel

pivot

the transformation pivot type


open fun scale(sx: Float, sy: Float, px: Float, py: Float, pivot: Pivot = Pivot.RelativeToSelf): UIElement

Sets the x,y scale factor for the ui element

NOTE: The behaviour of changing this parameters during an animation is unpredicted

Return

the current UIElement object

Parameters

sx

x scale factor, Starting from 0. 1 is 100%

sy

y scale factor, Starting from 0. 1 is 100%

px

scale pivot x coordinate pixel

py

scale pivot y coordinate pixel

pivot

the transformation pivot type