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-2011, 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. --  This widget serves as separator between menu items. It is represented 
  27. --  graphically as a horizontal line between two items, and is used to group 
  28. --  items into meaningful groups. 
  29. -- 
  30. --  </description> 
  31. --  <group>Menus and Toolbars</group> 
  32.  
  33. pragma Warnings (Off, "*is already use-visible*"); 
  34. with Glib;            use Glib; 
  35. with Glib.Types;      use Glib.Types; 
  36. with Gtk.Action;      use Gtk.Action; 
  37. with Gtk.Activatable; use Gtk.Activatable; 
  38. with Gtk.Buildable;   use Gtk.Buildable; 
  39. with Gtk.Menu_Item;   use Gtk.Menu_Item; 
  40. with Gtk.Widget;      use Gtk.Widget; 
  41.  
  42. package Gtk.Separator_Menu_Item is 
  43.  
  44.    type Gtk_Separator_Menu_Item_Record is new Gtk_Menu_Item_Record with null record; 
  45.    type Gtk_Separator_Menu_Item is access all Gtk_Separator_Menu_Item_Record'Class; 
  46.  
  47.    ------------------ 
  48.    -- Constructors -- 
  49.    ------------------ 
  50.  
  51.    procedure Gtk_New (Widget : out Gtk_Separator_Menu_Item); 
  52.    procedure Initialize 
  53.       (Widget : access Gtk_Separator_Menu_Item_Record'Class); 
  54.  
  55.    function Get_Type return Glib.GType; 
  56.    pragma Import (C, Get_Type, "gtk_separator_menu_item_get_type"); 
  57.  
  58.    --------------------- 
  59.    -- Interfaces_Impl -- 
  60.    --------------------- 
  61.  
  62.    procedure Do_Set_Related_Action 
  63.       (Self   : access Gtk_Separator_Menu_Item_Record; 
  64.        Action : access Gtk.Action.Gtk_Action_Record'Class); 
  65.  
  66.    function Get_Related_Action 
  67.       (Self : access Gtk_Separator_Menu_Item_Record) 
  68.        return Gtk.Action.Gtk_Action; 
  69.    procedure Set_Related_Action 
  70.       (Self   : access Gtk_Separator_Menu_Item_Record; 
  71.        Action : access Gtk.Action.Gtk_Action_Record'Class); 
  72.  
  73.    function Get_Use_Action_Appearance 
  74.       (Self : access Gtk_Separator_Menu_Item_Record) return Boolean; 
  75.    procedure Set_Use_Action_Appearance 
  76.       (Self           : access Gtk_Separator_Menu_Item_Record; 
  77.        Use_Appearance : Boolean); 
  78.  
  79.    procedure Sync_Action_Properties 
  80.       (Self   : access Gtk_Separator_Menu_Item_Record; 
  81.        Action : access Gtk.Action.Gtk_Action_Record'Class); 
  82.  
  83.    ---------------- 
  84.    -- Interfaces -- 
  85.    ---------------- 
  86.    --  This class implements several interfaces. See Glib.Types 
  87.    -- 
  88.    --  - "Activatable" 
  89.    -- 
  90.    --  - "Buildable" 
  91.  
  92.    package Implements_Activatable is new Glib.Types.Implements 
  93.      (Gtk.Activatable.Gtk_Activatable, Gtk_Separator_Menu_Item_Record, Gtk_Separator_Menu_Item); 
  94.    function "+" 
  95.      (Widget : access Gtk_Separator_Menu_Item_Record'Class) 
  96.    return Gtk.Activatable.Gtk_Activatable 
  97.    renames Implements_Activatable.To_Interface; 
  98.    function "-" 
  99.      (Interf : Gtk.Activatable.Gtk_Activatable) 
  100.    return Gtk_Separator_Menu_Item 
  101.    renames Implements_Activatable.To_Object; 
  102.  
  103.    package Implements_Buildable is new Glib.Types.Implements 
  104.      (Gtk.Buildable.Gtk_Buildable, Gtk_Separator_Menu_Item_Record, Gtk_Separator_Menu_Item); 
  105.    function "+" 
  106.      (Widget : access Gtk_Separator_Menu_Item_Record'Class) 
  107.    return Gtk.Buildable.Gtk_Buildable 
  108.    renames Implements_Buildable.To_Interface; 
  109.    function "-" 
  110.      (Interf : Gtk.Buildable.Gtk_Buildable) 
  111.    return Gtk_Separator_Menu_Item 
  112.    renames Implements_Buildable.To_Object; 
  113.  
  114. end Gtk.Separator_Menu_Item;