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