Gtk.Box.prototype.reorder_child
function reorder_child(child:Gtk.Widget, position:Number):void { // Gjs wrapper for gtk_box_reorder_child() }
Moves child to a new position in the list of box children. The list is the <structfield>children</structfield> field of Gtk.Box-struct, and contains both widgets packed #GTK_PACK_START as well as widgets packed #GTK_PACK_END, in the order that these widgets were added to box.
A widget's position in the box children list determines where the widget is packed into box. A child widget at some position in the list will be packed just after all other widgets of the same packing type that appear earlier in the list.
- child
the Gtk.Widget to move
- position
the new position for child in the list of children of box, starting from 0. If negative, indicates the end of the list