Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Enum Gtk.Align

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkAlign
Enum : Align
Controls how a widget deals with extra space in a single (x or y)
dimension.
Alignment only matters if the widget receives a "too large" allocation,
for example if you packed the widget with the GtkWidget:expand
flag inside a GtkBox, then the widget might get extra space. If
you have for example a 16x16 icon inside a 32x32 space, the icon
could be scaled and stretched, it could be centered, or it could be
positioned to one side of the space.
Note that in horizontal context GTK_ALIGN_START and GTK_ALIGN_END
are interpreted relative to text direction.
Values
Properties
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gtk.Widget
Property
halign : Gtk.Align
How to distribute horizontal space if widget gets extra space, see GtkAlign
Gtk.Widget
Property
valign : Gtk.Align
How to distribute vertical space if widget gets extra space, see GtkAlign
Gtk.Widget
Method
get_halign () : Gtk.Align
Gets the value of the GtkWidget:halign property.
Gtk.Widget
Method
get_valign () : Gtk.Align
Gets the value of the GtkWidget:valign property.
Gtk.Widget
Method
set_halign (Align align) : none
Sets the horizontal alignment of widget.
Gtk.Widget
Method
set_valign (Align align) : none
Sets the vertical alignment of widget.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:15:39 GMT+0800 (HKT)