1. ----------------------------------------------------------------------- 
  2. --          GtkAda - Ada95 binding for the Gimp Toolkit              -- 
  3. --                                                                   -- 
  4. --                     Copyright (C) 1998-1999                       -- 
  5. --        Emmanuel Briot, Joel Brobecker and Arnaud Charlet          -- 
  6. --                     Copyright 2000-2007 AdaCore                   -- 
  7. --                                                                   -- 
  8. -- This library is free software; you can redistribute it and/or     -- 
  9. -- modify it under the terms of the GNU General Public               -- 
  10. -- License as published by the Free Software Foundation; either      -- 
  11. -- version 2 of the License, or (at your option) any later version.  -- 
  12. --                                                                   -- 
  13. -- This library is distributed in the hope that it will be useful,   -- 
  14. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  15. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  16. -- General Public License for more details.                          -- 
  17. --                                                                   -- 
  18. -- You should have received a copy of the GNU General Public         -- 
  19. -- License along with this library; if not, write to the             -- 
  20. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  21. -- Boston, MA 02111-1307, USA.                                       -- 
  22. --                                                                   -- 
  23. -- -- -- -- -- -- -- -- -- -- -- --
  24. ----------------------------------------------------------------------- 
  25.  
  26. --  <c_version>2.8.17</c_version> 
  27. --  <doc_ignore> 
  28. --  <group>Obsolescent widgets</group> 
  29. --  <testgtk>create_list.adb</testgtk> 
  30.  
  31. with Gtk.Container; 
  32. with Gtk.Enums;  use Gtk.Enums; 
  33. with Gtk.Widget; use Gtk.Widget; 
  34.  
  35. package Gtk.List is 
  36.    pragma Obsolescent;  --  Gtk.List 
  37.  
  38.    type Gtk_List_Record is new Gtk.Container.Gtk_Container_Record with private; 
  39.    type Gtk_List is access all Gtk_List_Record'Class; 
  40.  
  41.    function Get_Type return Gtk.Gtk_Type; 
  42.    --  Return the internal value associated with a Gtk_List. 
  43.  
  44.    procedure Append_Items 
  45.      (List  : access Gtk_List_Record; 
  46.       Items : in Widget_List.Glist); 
  47.  
  48.    function Child_Position 
  49.      (List   : access Gtk_List_Record; 
  50.       Child  : in Gtk.Widget.Gtk_Widget) return Gint; 
  51.  
  52.    procedure Clear_Items 
  53.      (List    : access Gtk_List_Record; 
  54.       Start   : in Gint; 
  55.       The_End : in Gint); 
  56.    --  Remove some items from the list. 
  57.    --  if The_End is negative, it is assigned the position of the last item 
  58.    --  in the list. 
  59.    --  The first item in the list has an index of 0. 
  60.  
  61.    function Get_Children 
  62.      (Widget : access Gtk.List.Gtk_List_Record) return Widget_List.Glist; 
  63.    --  The returned list mustn't be freed by the caller, it references internal 
  64.    --  data of gtk+ 
  65.  
  66.    function Get_Selection 
  67.      (Widget : access Gtk.List.Gtk_List_Record) return Widget_List.Glist; 
  68.  
  69.    procedure Gtk_New (Widget : out Gtk_List); 
  70.  
  71.    procedure Initialize (Widget : access Gtk_List_Record'Class); 
  72.  
  73.    procedure Insert_Items 
  74.      (List     : access Gtk_List_Record; 
  75.       Items    : in Widget_List.Glist; 
  76.       Position : in Gint); 
  77.  
  78.    procedure Prepend_Items 
  79.      (List  : access Gtk_List_Record; 
  80.       Items : in Widget_List.Glist); 
  81.  
  82.    procedure Remove_Items 
  83.      (List  : access Gtk_List_Record; 
  84.       Items : in Widget_List.Glist); 
  85.  
  86.    procedure Remove_Items_No_Unref 
  87.      (List  : access Gtk_List_Record; 
  88.       Items : in Widget_List.Glist); 
  89.  
  90.    procedure Select_Child 
  91.      (List  : access Gtk_List_Record; 
  92.       Child : in Gtk.Widget.Gtk_Widget); 
  93.  
  94.    procedure Select_Item 
  95.      (List : access Gtk_List_Record; 
  96.       Item : in Gint); 
  97.  
  98.    procedure Set_Selection_Mode 
  99.      (List : access Gtk_List_Record; 
  100.       Mode : in Gtk_Selection_Mode); 
  101.  
  102.    procedure Unselect_Child 
  103.      (List  : access Gtk_List_Record; 
  104.       Child : in Gtk.Widget.Gtk_Widget); 
  105.  
  106.    procedure Unselect_Item 
  107.      (List : access Gtk_List_Record; 
  108.       Item : in Gint); 
  109.  
  110.    ---------------- 
  111.    -- Properties -- 
  112.    ---------------- 
  113.  
  114.    --  <properties> 
  115.    --  The following properties are defined for this widget. See 
  116.    --  Glib.Properties for more information on properties. 
  117.    -- 
  118.    --  </properties> 
  119.  
  120.    ------------- 
  121.    -- Signals -- 
  122.    ------------- 
  123.  
  124.    --  <signals> 
  125.    --  The following new signals are defined for this widget: 
  126.    -- 
  127.    --  - "select_child" 
  128.    --  - "selection_changed" 
  129.    --  - "unselect_child" 
  130.    -- 
  131.    --  </signals> 
  132.  
  133.    Signal_Select_Child      : constant Glib.Signal_Name := "select_child"; 
  134.    Signal_Selection_Changed : constant Glib.Signal_Name := "selection_changed"; 
  135.    Signal_Unselect_Child    : constant Glib.Signal_Name := "unselect_child"; 
  136.  
  137. private 
  138.    type Gtk_List_Record is new Gtk.Container.Gtk_Container_Record 
  139.      with null record; 
  140.  
  141.    pragma Import (C, Get_Type, "gtk_list_get_type"); 
  142. end Gtk.List; 
  143.  
  144. --  </doc_ignore> 
  145.  
  146. --  These subprograms have never been bound, and the whole package is now 
  147. --  obsolescent anyway 
  148. --  No binding: gtk_list_end_drag_selection 
  149. --  No binding: gtk_list_end_selection 
  150. --  No binding: gtk_list_extend_selection 
  151. --  No binding: gtk_list_scroll_horizontal 
  152. --  No binding: gtk_list_scroll_vertical 
  153. --  No binding: gtk_list_select_all 
  154. --  No binding: gtk_list_start_selection 
  155. --  No binding: gtk_list_toggle_add_mode 
  156. --  No binding: gtk_list_toggle_focus_row 
  157. --  No binding: gtk_list_toggle_row 
  158. --  No binding: gtk_list_undo_selection 
  159. --  No binding: gtk_list_unselect_all