setDimensions

open fun setDimensions(x: Float, y: Float, width: Float, height: Float): UIElement

Sets the ui element dimensions

Return

this

Parameters

x

the element Y position within its parent in pixels

y

the element Y position within its parent in pixels

width

the ui element width in pixels

height

the ui element height in pixels