Back to Seed Clases







Class Gtk.Alignment

Import line: Gtk =;
GIR File: Gtk-3.0.gir
C documentation: GtkAlignment
Class : Alignment
Implements: Atk.ImplementorIface, Gtk.Buildable
Extends: Gtk.Bin
The GtkAlignment widget controls the alignment and size of its child widget.
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.

Note that the desired effect can in most cases be achieved by using the
GtkWidget:halign, GtkWidget:valign and GtkWidget:margin properties
on the child widget, so GtkAlignment should not be used in new code.

Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties- Nowhere other than here
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:57 GMT+0800 (HKT)