Gtk.HBox
const Gtk = imports.gi.Gtk; let h_box = new Gtk.HBox();
Gtk.HBox is a container that organizes child widgets into a single row.
Use the Gtk.Box packing interface to determine the arrangement, spacing, width, and alignment of Gtk.HBox children.
All children are allocated the same height.
GtkHBox has been deprecated. You can use Gtk.Box instead, which is a very quick and easy change. If you have derived your own classes from GtkHBox, you can simply change the inheritance to derive directly from Gtk.Box. No further changes are needed, since the default value of the Gtk.orientation property is Gtk.Orientation.horizontal. If you want your code to be future-proof, the recommendation is to switch to Gtk.Grid, since Gtk.Box is going to be deprecated in favor of the more flexible grid widget eventually. For more information about migrating to Gtk.Grid, see <xref linkend="gtk-migrating-GtkGrid"/>
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Box
- Gtk.HBox
-
-
-
-