GtkHBox — A horizontal container box
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GtkHBox
GtkHBox is a container that organizes child widgets into a single row.
All children are allocated the same height.
GtkHBox has been deprecated. You can use GtkBox 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 GtkBox. No further changes are needed, since the default value of the “orientation” property is
If you have a grid-like layout composed of nested boxes, and you don’t need first-child or last-child styling, the recommendation is to switch to GtkGrid. For more information about migrating to GtkGrid, see Migrating from other containers to GtkGrid.
GtkWidget * gtk_hbox_new (
gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code.
You can use
GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid.
Creates a new GtkHBox.
the number of pixels to place by default between children.
a new GtkHBox.
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.