translateBy

open fun translateBy(dx: Float, dy: Float): UIElement

Sets the x,y translations of the ui element

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

Return

the current UIElement object

Parameters

dx

x translation pixels, relative to self

dy

y translation pixels, relative to self