### ----------------------------------------------------
### -- Gnome::Gtk3
### -- Licenses: Artistic-2.0
### -- Authors: Marcel Timmerman
### -- File: lib/Gnome/Gtk3/TreeStore.rakumod
### ----------------------------------------------------
### -- Chunk 2 of 2
nome::Gtk3::TreeIter $parent; (nullable): An iterator, or C<Any>
=item Int $new_order; (array): an array of integers mapping the new position of each child to its old position before the re-ordering, i.e. I<new_order>`[newpos] = oldpos`.

=end pod

sub gtk_tree_store_reorder (
  N-GObject $tree_store, N-GtkTreeIter $parent, int32 $new_order
) is native(&gtk-lib)
  { * }

#-------------------------------------------------------------------------------
#TM:0:gtk_tree_store_swap:
=begin pod
=head2 [gtk_] tree_store_swap

Swaps I<$a> and I<$b> in the same level of $list_store. Note that this function only works with unsorted stores.

Since: 2.2

  method gtk_tree_store_swap (
    Gnome::Gtk3::TreeIter $a, Gnome::Gtk3::TreeIter $b
  )

=item Gnome::Gtk3::TreeIter $a; An iterator.
=item Gnome::Gtk3::TreeIter $b; Another iterator.

=end pod

sub gtk_tree_store_swap ( N-GObject $tree_store, N-GtkTreeIter $a, N-GtkTreeIter $b )
  is native(&gtk-lib)
  { * }

#-------------------------------------------------------------------------------
#TM:0:gtk_tree_store_move_before:
=begin pod
=head2 [[gtk_] tree_store_] move_before

Moves I<$iter> in $list_store to the position before I<$position>. I<$iter> and I<$position> should be in the same level. Note that this function only works with unsorted stores. If I<$position> is C<Any>, I<$iter> will be moved to the end of the level.

Since: 2.2

  method gtk_tree_store_move_before (
    Gnome::Gtk3::TreeIter $iter, Gnome::Gtk3::TreeIter $position
  )

=item Gnome::Gtk3::TreeIter $iter; An iterator.
=item Gnome::Gtk3::TreeIter $position; (allow-none): An iterator or C<Any>.

=end pod

sub gtk_tree_store_move_before ( N-GObject $tree_store, N-GtkTreeIter $iter, N-GtkTreeIter $position )
  is native(&gtk-lib)
  { * }

#-------------------------------------------------------------------------------
#TM:0:gtk_tree_store_move_after:
=begin pod
=head2 [[gtk_] tree_store_] move_after

Moves I<$iter> in $list_store to the position after I<$position>. I<$iter> and I<position> should be in the same level. Note that this function only works with unsorted stores. If I<$position> is C<Any>, I<$iter> will be moved to the start of the level.

Since: 2.2

  method gtk_tree_store_move_after (
    Gnome::Gtk3::TreeIter $iter, Gnome::Gtk3::TreeIter $position
  )

=item Gnome::Gtk3::TreeIter $iter; A B<Gnome::Gtk3::TreeIter>.
=item Gnome::Gtk3::TreeIter $position; (allow-none): A B<Gnome::Gtk3::TreeIter>.

=end pod

sub gtk_tree_store_move_after ( N-GObject $tree_store, N-GtkTreeIter $iter, N-GtkTreeIter $position )
  is native(&gtk-lib)
  { * }


