gtk.vbox

Module for [VBox] class

Types 3

A #GtkVBox is a container that organizes child widgets into a single column.

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

All children are allocated the same width.

GtkVBox has been deprecated. You can use #GtkBox with a #GtkOrientable:orientation set to [gtk.types.Orientation.Vertical] instead when calling [gtk.box.Box.new_], which is a very quick and easy change.

If you have derived your own classes from GtkVBox, you can change the inheritance to derive directly from #GtkBox, and set the #GtkOrientable:orientation property to [gtk.types.Orientation.Vertical] in your instance init function, with a call like:

gtk_orientable_set_orientation (GTK_ORIENTABLE (object),
                                 GTK_ORIENTATION_VERTICAL);

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][gtk-migrating-GtkGrid].

Methods
GType _gType() @property
VBox self()Returns `this`, for use in `with` statements.
VBoxGidBuilder builder()Get builder for [gtk.vbox.VBox] Returns: New builder object
Constructors
this(void * ptr, Flag!"Take" take)
this(bool homogeneous, int spacing)Creates a new #GtkVBox.

Fluent builder for [gtk.vbox.VBox]

Methods