Gtk.Box.new

function new(orientation:Gtk.Orientation, spacing:Number):Gtk.Widget {
    // Gjs wrapper for gtk_box_new()
}

Creates a new Gtk.Box.

Since 3.0

orientation

the box's orientation.

spacing

the number of pixels to place by default between children.

Returns

a new Gtk.Box.