GtkMisc::set_alignment

void set_alignment(double xalign, double yalign);

Sets the alignment for the widget relative to its parent. Both values must be between 0 and 1, inclusive. A value less than 0 will automatically be changed to 0 and a value greater than 1 will automatically be changed to 1.

Alignment values are represented as a percentage of the parent's height or width. For example, an x alignment of .5 aligns the 50% of the width from the left of the parent widget. A value of 1 aligns the widget as far to the right as possible.

The default for both alignment values is .5.

See also: get_alignment()