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