Creates a new #GtkAlignment.
Gets the padding on the different sides of the widget. See gtk_alignment_set_padding ().
Returns this, for use in with statements.
Sets the #GtkAlignment values.
Sets the padding on the different sides of the widget. The padding adds blank space to the sides of the widget. For instance, this can be used to indent the child widget towards the right by adding padding on the left.
Get bottomPadding property.
Set bottomPadding property.
Get leftPadding property.
Set leftPadding property.
Get rightPadding property.
Set rightPadding property.
Get topPadding property.
Set topPadding property.
Get xalign property.
Set xalign property.
Get xscale property.
Set xscale property.
Get yalign property.
Set yalign property.
Get yscale property.
Set yscale property.
Get builder for gtk.alignment.Alignment
Returns this, for use in with statements.
Get builder for gtk.bin.Bin
Gets the child of the #GtkBin, or null if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.
The #GtkAlignment widget controls the alignment and size of its child widget. It has four settings: xscale, yscale, xalign, and yalign.
The scale settings are used to specify how much the child widget should expand to fill the space allocated to the #GtkAlignment. The values can range from 0 (meaning the child doesn’t expand at all) to 1 (meaning the child expands to fill all of the available space).
The align settings are used to place the child widget within the available area. The values range from 0 (top or left) to 1 (bottom or right). Of course, if the scale settings are both set to 1, the alignment settings have no effect.
GtkAlignment has been deprecated in 3.14 and should not be used in newly-written code. The desired effect can be achieved by using the #GtkWidget:halign, #GtkWidget:valign and #GtkWidget:margin properties on the child widget.