1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --                Copyright (C) 2006 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. -- -- -- -- -- -- -- -- -- -- -- --
  22. ----------------------------------------------------------------------- 
  23.  
  24. --  <description> 
  25. --  This package defines a separator widget that can be inserted in a 
  26. --  toolbar, to create groups of widgets in the latter. 
  27. --  </description> 
  28. --  <c_version>2.8.17</c_version> 
  29. --  <group>Menus and Toolbars</group> 
  30.  
  31. with Glib.Properties; 
  32. with Gtk.Tool_Item; 
  33.  
  34. package Gtk.Separator_Tool_Item is 
  35.  
  36.    type Gtk_Separator_Tool_Item_Record is 
  37.      new Gtk.Tool_Item.Gtk_Tool_Item_Record with null record; 
  38.    type Gtk_Separator_Tool_Item 
  39.      is access all Gtk_Separator_Tool_Item_Record'Class; 
  40.  
  41.    procedure Gtk_New 
  42.      (Separator : out Gtk_Separator_Tool_Item); 
  43.    procedure Initialize 
  44.      (Separator : access Gtk_Separator_Tool_Item_Record'Class); 
  45.    --  Create or initialize a new separator 
  46.  
  47.    function Get_Type return GType; 
  48.    --  Return the internal type used for separators 
  49.  
  50.    procedure Set_Draw 
  51.      (Item : access Gtk_Separator_Tool_Item_Record; 
  52.       Draw : Boolean); 
  53.    function Get_Draw 
  54.      (Item : access Gtk_Separator_Tool_Item_Record) 
  55.       return Boolean; 
  56.    --  Sets whether the separator is drawn as a vertical line, or just a 
  57.    --  blank. 
  58.    --  Settings this to False along with using Gtk.Tool_Item.Set_Expand is 
  59.    --  useful to create an item that forces the following items to the end of 
  60.    --  the toolbar. 
  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.    --  Name: Draw_Property 
  71.    --  Type: Boolean 
  72.    --  See:  Set_Draw / Get_Draw 
  73.    -- 
  74.    --  </properties> 
  75.  
  76.    Draw_Property : constant Glib.Properties.Property_Boolean; 
  77.  
  78. private 
  79.    Draw_Property : constant Glib.Properties.Property_Boolean := 
  80.      Glib.Properties.Build ("draw"); 
  81.  
  82.    pragma Import (C, Get_Type, "gtk_separator_tool_item_get_type"); 
  83. end Gtk.Separator_Tool_Item;