gtk.HBox



class HBox : gtk.Box.Box;
#GtkHBox is a container that organizes child widgets into a single row.

Use the #GtkBox packing interface to determine the arrangement, spacing, width, and alignment of #GtkHBox children.

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 #GtkOrientable:orientation property is %GTK_ORIENTATION_HORIZONTAL. If you don’t need first-child or last-child styling, and want your code to be future-proof, the recommendation is to switch to #GtkGrid instead of nested boxes. For more information about migrating to #GtkGrid, see [Migrating from other containers to GtkGrid][gtk-migrating-GtkGrid].

protected GtkHBox* gtkHBox ;
the main Gtk struct

GtkHBox* getHBoxStruct ();
Get the main Gtk struct

protected void* getStruct ();
the main Gtk struct as a void*

this(GtkHBox* gtkHBox, bool ownedRef = false);
Sets our main struct and passes it to the parent class.

static GType getType ();


this(bool homogeneous, int spacing);
Creates a new #GtkHBox.

Deprecated:
You can use gtk_box_new() with %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][gtk-migrating-GtkGrid].

Params:
bool homogeneous %TRUE if all children are to be given equal space allotments.
int spacing the number of pixels to place by default between children.

Return:
a new #GtkHBox.

Throws:
ConstructionException GTK+ fails to create the object.

Page was generated with on Fri Jan 6 23:09:20 2017