1. ----------------------------------------------------------------------- 
  2. --          GtkAda - Ada95 binding for the Gimp Toolkit              -- 
  3. --                                                                   -- 
  4. --                     Copyright (C) 2008-2013, AdaCore              -- 
  5. --                                                                   -- 
  6. -- This library is free software; you can redistribute it and/or     -- 
  7. -- modify it under the terms of the GNU General Public               -- 
  8. -- License as published by the Free Software Foundation; either      -- 
  9. -- version 2 of the License, or (at your option) any later version.  -- 
  10. --                                                                   -- 
  11. -- This library is distributed in the hope that it will be useful,   -- 
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  14. -- General Public License for more details.                          -- 
  15. --                                                                   -- 
  16. -- You should have received a copy of the GNU General Public         -- 
  17. -- License along with this library; if not, write to the             -- 
  18. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  19. -- Boston, MA 02111-1307, USA.                                       -- 
  20. --                                                                   -- 
  21. -- As a special exception, if other files instantiate generics from  -- 
  22. -- this unit, or you link this unit with other files to produce an   -- 
  23. -- executable, this  unit  does not  by itself cause  the resulting  -- 
  24. -- executable to be covered by the GNU General Public License. This  -- 
  25. -- exception does not however invalidate any other reasons why the   -- 
  26. -- executable file  might be covered by the  GNU Public License.     -- 
  27. ----------------------------------------------------------------------- 
  28.  
  29. package Gtk.Tree_Model.Utils is 
  30.  
  31.    function Init_Tree_Iter 
  32.      (Stamp       : Glib.Gint; 
  33.       User_Data_1 : System.Address := System.Null_Address; 
  34.       User_Data_2 : System.Address := System.Null_Address; 
  35.       User_Data_3 : System.Address := System.Null_Address) 
  36.       return Gtk.Tree_Model.Gtk_Tree_Iter; 
  37.  
  38.    function Is_Null (Self : Gtk.Tree_Model.Gtk_Tree_Iter) return Boolean; 
  39.    --  Returns True if specified iterator is null (its internal stamp equals 
  40.    --  to zero). 
  41.  
  42.    function Is_Valid 
  43.      (Self  : Gtk.Tree_Model.Gtk_Tree_Iter; 
  44.       Stamp : Glib.Gint) return Boolean; 
  45.    --  Returns True if specified iterator is null iterator or its internal 
  46.    --  stamp is equal to the specified stamp. 
  47.  
  48.    function Get_Stamp (Self : Gtk.Tree_Model.Gtk_Tree_Iter) return Glib.Gint; 
  49.  
  50.    function Get_User_Data_1 
  51.      (Self : Gtk.Tree_Model.Gtk_Tree_Iter) return System.Address; 
  52.  
  53.    function Get_User_Data_2 
  54.      (Self : Gtk.Tree_Model.Gtk_Tree_Iter) return System.Address; 
  55.  
  56.    function Get_User_Data_3 
  57.      (Self : Gtk.Tree_Model.Gtk_Tree_Iter) return System.Address; 
  58.  
  59. end Gtk.Tree_Model.Utils;