4.5  <alignment>

This is a container for aligning a child horizontally and vertically. You have to set the size of the container to be bigger than its child, or the aligning will show no effect. It can only have one child.

This element is deprecated and should not be used in new code. The same effects can be achieved with anchors and percentual positioning.

<alignment> will be removed in the 0.40 release!

4.5.1  Attributes

Name Type Default Value Description
align-x float 0.5 Horizontal alignment value. Ranges from 0.0 (left) to 1.0 (right).
align-y float 0.5 Vertical alignment value. Ranges from 0.0 (top) to 1.0 (bottom).

4.5.2  Examples

Since this element is deprecated we don't provide an exmple.