Misc.setAlignment

Sets the alignment of the widget.

class Misc
void
setAlignment
(
float xalign
,
float yalign
)

Parameters

xalign float

the horizontal alignment, from 0 (left) to 1 (right).

yalign float

the vertical alignment, from 0 (top) to 1 (bottom).

Meta