set_alignment


Description:

[ Version ( deprecated = true , deprecated_since = "3.14" , since = "2.4" ) ]
public void set_alignment (float xalign, float yalign)

Warning: set_alignment is deprecated since 3.14.

Sets the alignment of the child.

Note:

Access the child widget directly if you need to control its alignment.

This property has no effect unless the child is a Misc or a Alignment.

Parameters:

this

a Button

xalign

the horizontal position of the child, 0.0 is left aligned, 1.0 is right aligned

yalign

the vertical position of the child, 0.0 is top aligned, 1.0 is bottom aligned