1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --   Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet   -- 
  5. --                Copyright (C) 2000-2006 AdaCore                    -- 
  6. --                                                                   -- 
  7. -- This library is free software; you can redistribute it and/or     -- 
  8. -- modify it under the terms of the GNU General Public               -- 
  9. -- License as published by the Free Software Foundation; either      -- 
  10. -- version 2 of the License, or (at your option) any later version.  -- 
  11. --                                                                   -- 
  12. -- This library is distributed in the hope that it will be useful,   -- 
  13. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  14. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  15. -- General Public License for more details.                          -- 
  16. --                                                                   -- 
  17. -- You should have received a copy of the GNU General Public         -- 
  18. -- License along with this library; if not, write to the             -- 
  19. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  20. -- Boston, MA 02111-1307, USA.                                       -- 
  21. --                                                                   -- 
  22. -- -- -- -- -- -- -- -- -- -- -- --
  23. ----------------------------------------------------------------------- 
  24.  
  25. --  <description> 
  26. --  A separator is a vertical or horizontal line that can be displayed between 
  27. --  widgets, to provide visual grouping of the widgets into meaningful groups. 
  28. --  It is for instance used in dialogs to isolate the actual contents of the 
  29. --  dialogs and the various buttons to acknowledge the dialog (OK, Cancel,...) 
  30. --  </description> 
  31. --  <c_version>2.8.17</c_version> 
  32. --  <group>Ornaments</group> 
  33. --  <screenshot>gtk-separator</screenshot> 
  34.  
  35. with Gtk.Widget; 
  36.  
  37. package Gtk.Separator is 
  38.  
  39.    type Gtk_Separator_Record is new Gtk.Widget.Gtk_Widget_Record with private; 
  40.    subtype Gtk_Hseparator_Record is Gtk_Separator_Record; 
  41.    subtype Gtk_Vseparator_Record is Gtk_Separator_Record; 
  42.  
  43.    type Gtk_Separator is access all Gtk_Separator_Record'Class; 
  44.    subtype Gtk_Hseparator is Gtk_Separator; 
  45.    subtype Gtk_Vseparator is Gtk_Separator; 
  46.  
  47.    procedure Gtk_New_Hseparator (Separator : out Gtk_Separator); 
  48.    procedure Initialize_Hseparator 
  49.      (Separator : access Gtk_Separator_Record'Class); 
  50.    --  Creates or initializes a horizontal separator 
  51.  
  52.    procedure Gtk_New_Vseparator (Separator : out Gtk_Separator); 
  53.    procedure Initialize_Vseparator 
  54.      (Separator : access Gtk_Separator_Record'Class); 
  55.    --  Creates or initializes a vertical separator 
  56.  
  57.    function Get_Type return Gtk.Gtk_Type; 
  58.    function Hseparator_Get_Type return Gtk.Gtk_Type; 
  59.    function Vseparator_Get_Type return Gtk.Gtk_Type; 
  60.    --  Return the internal value associated with a Gtk_Separator. 
  61.  
  62.    ---------------- 
  63.    -- Properties -- 
  64.    ---------------- 
  65.  
  66.    --  <properties> 
  67.    --  The following properties are defined for this widget. See 
  68.    --  Glib.Properties for more information on properties. 
  69.    -- 
  70.    --  </properties> 
  71.  
  72. private 
  73.    type Gtk_Separator_Record is new 
  74.      Gtk.Widget.Gtk_Widget_Record with null record; 
  75.  
  76.    pragma Import (C, Get_Type, "gtk_separator_get_type"); 
  77.    pragma Import (C, Hseparator_Get_Type, "gtk_hseparator_get_type"); 
  78.    pragma Import (C, Vseparator_Get_Type, "gtk_vseparator_get_type"); 
  79. end Gtk.Separator;