Gtk.VBox

const Gtk = imports.gi.Gtk;

let v_box = new Gtk.VBox();
  

A Gtk.VBox is a container that organizes child widgets into a single column.

Use the Gtk.Box packing interface to determine the arrangement, spacing, height, and alignment of Gtk.VBox children.

All children are allocated the same width.

GtkVBox 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 GtkVBox, you can simply change the inheritance to derive directly from Gtk.Box, and set the Gtk.orientation property to Gtk.Orientation.vertical in your instance init function, with a call like: |[ gtk_orientable_set_orientation (GTK_ORIENTABLE (object), GTK_ORIENTATION_VERTICAL); ]| 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.VBox