1. ------------------------------------------------------------------------------ 
  2. --                                                                          -- 
  3. --      Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet       -- 
  4. --                     Copyright (C) 2000-2014, AdaCore                     -- 
  5. --                                                                          -- 
  6. -- This library is free software;  you can redistribute it and/or modify it -- 
  7. -- under terms of the  GNU General Public License  as published by the Free -- 
  8. -- Software  Foundation;  either version 3,  or (at your  option) any later -- 
  9. -- version. This library is distributed in the hope that it will be useful, -- 
  10. -- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- -- 
  11. -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            -- 
  12. --                                                                          -- 
  13. -- As a special exception under Section 7 of GPL version 3, you are granted -- 
  14. -- additional permissions described in the GCC Runtime Library Exception,   -- 
  15. -- version 3.1, as published by the Free Software Foundation.               -- 
  16. --                                                                          -- 
  17. -- You should have received a copy of the GNU General Public License and    -- 
  18. -- a copy of the GCC Runtime Library Exception along with this program;     -- 
  19. -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    -- 
  20. -- <http://www.gnu.org/licenses/>.                                          -- 
  21. --                                                                          -- 
  22. ------------------------------------------------------------------------------ 
  23.  
  24. --  <description> 
  25. --  The Gtk.Separator_Menu_Item.Gtk_Separator_Menu_Item is a separator used to 
  26. --  group items within a menu. It displays a horizontal line with a shadow to 
  27. --  make it appear sunken into the interface. 
  28. -- 
  29. --  </description> 
  30. --  <group>Menus and Toolbars</group> 
  31. pragma Ada_2005; 
  32.  
  33. pragma Warnings (Off, "*is already use-visible*"); 
  34. with Glib;            use Glib; 
  35. with Glib.Types;      use Glib.Types; 
  36. with Glib.Variant;    use Glib.Variant; 
  37. with Gtk.Action;      use Gtk.Action; 
  38. with Gtk.Actionable;  use Gtk.Actionable; 
  39. with Gtk.Activatable; use Gtk.Activatable; 
  40. with Gtk.Buildable;   use Gtk.Buildable; 
  41. with Gtk.Menu_Item;   use Gtk.Menu_Item; 
  42.  
  43. package Gtk.Separator_Menu_Item is 
  44.  
  45.    type Gtk_Separator_Menu_Item_Record is new Gtk_Menu_Item_Record with null record; 
  46.    type Gtk_Separator_Menu_Item is access all Gtk_Separator_Menu_Item_Record'Class; 
  47.  
  48.    ------------------ 
  49.    -- Constructors -- 
  50.    ------------------ 
  51.  
  52.    procedure Gtk_New (Widget : out Gtk_Separator_Menu_Item); 
  53.    procedure Initialize 
  54.       (Widget : not null access Gtk_Separator_Menu_Item_Record'Class); 
  55.    --  Creates a new Gtk.Separator_Menu_Item.Gtk_Separator_Menu_Item. 
  56.  
  57.    function Gtk_Separator_Menu_Item_New return Gtk_Separator_Menu_Item; 
  58.    --  Creates a new Gtk.Separator_Menu_Item.Gtk_Separator_Menu_Item. 
  59.  
  60.    function Get_Type return Glib.GType; 
  61.    pragma Import (C, Get_Type, "gtk_separator_menu_item_get_type"); 
  62.  
  63.    --------------------------------------------- 
  64.    -- Inherited subprograms (from interfaces) -- 
  65.    --------------------------------------------- 
  66.    --  Methods inherited from the Buildable interface are not duplicated here 
  67.    --  since they are meant to be used by tools, mostly. If you need to call 
  68.    --  them, use an explicit cast through the "-" operator below. 
  69.  
  70.    function Get_Action_Name 
  71.       (Self : not null access Gtk_Separator_Menu_Item_Record) 
  72.        return UTF8_String; 
  73.  
  74.    procedure Set_Action_Name 
  75.       (Self        : not null access Gtk_Separator_Menu_Item_Record; 
  76.        Action_Name : UTF8_String); 
  77.  
  78.    function Get_Action_Target_Value 
  79.       (Self : not null access Gtk_Separator_Menu_Item_Record) 
  80.        return Glib.Variant.Gvariant; 
  81.  
  82.    procedure Set_Action_Target_Value 
  83.       (Self         : not null access Gtk_Separator_Menu_Item_Record; 
  84.        Target_Value : Glib.Variant.Gvariant); 
  85.  
  86.    procedure Set_Detailed_Action_Name 
  87.       (Self                 : not null access Gtk_Separator_Menu_Item_Record; 
  88.        Detailed_Action_Name : UTF8_String); 
  89.  
  90.    procedure Do_Set_Related_Action 
  91.       (Self   : not null access Gtk_Separator_Menu_Item_Record; 
  92.        Action : not null access Gtk.Action.Gtk_Action_Record'Class); 
  93.  
  94.    function Get_Related_Action 
  95.       (Self : not null access Gtk_Separator_Menu_Item_Record) 
  96.        return Gtk.Action.Gtk_Action; 
  97.  
  98.    procedure Set_Related_Action 
  99.       (Self   : not null access Gtk_Separator_Menu_Item_Record; 
  100.        Action : not null access Gtk.Action.Gtk_Action_Record'Class); 
  101.  
  102.    function Get_Use_Action_Appearance 
  103.       (Self : not null access Gtk_Separator_Menu_Item_Record) return Boolean; 
  104.  
  105.    procedure Set_Use_Action_Appearance 
  106.       (Self           : not null access Gtk_Separator_Menu_Item_Record; 
  107.        Use_Appearance : Boolean); 
  108.  
  109.    procedure Sync_Action_Properties 
  110.       (Self   : not null access Gtk_Separator_Menu_Item_Record; 
  111.        Action : access Gtk.Action.Gtk_Action_Record'Class); 
  112.  
  113.    ---------------- 
  114.    -- Interfaces -- 
  115.    ---------------- 
  116.    --  This class implements several interfaces. See Glib.Types 
  117.    -- 
  118.    --  - "Actionable" 
  119.    -- 
  120.    --  - "Activatable" 
  121.    -- 
  122.    --  - "Buildable" 
  123.  
  124.    package Implements_Gtk_Actionable is new Glib.Types.Implements 
  125.      (Gtk.Actionable.Gtk_Actionable, Gtk_Separator_Menu_Item_Record, Gtk_Separator_Menu_Item); 
  126.    function "+" 
  127.      (Widget : access Gtk_Separator_Menu_Item_Record'Class) 
  128.    return Gtk.Actionable.Gtk_Actionable 
  129.    renames Implements_Gtk_Actionable.To_Interface; 
  130.    function "-" 
  131.      (Interf : Gtk.Actionable.Gtk_Actionable) 
  132.    return Gtk_Separator_Menu_Item 
  133.    renames Implements_Gtk_Actionable.To_Object; 
  134.  
  135.    package Implements_Gtk_Activatable is new Glib.Types.Implements 
  136.      (Gtk.Activatable.Gtk_Activatable, Gtk_Separator_Menu_Item_Record, Gtk_Separator_Menu_Item); 
  137.    function "+" 
  138.      (Widget : access Gtk_Separator_Menu_Item_Record'Class) 
  139.    return Gtk.Activatable.Gtk_Activatable 
  140.    renames Implements_Gtk_Activatable.To_Interface; 
  141.    function "-" 
  142.      (Interf : Gtk.Activatable.Gtk_Activatable) 
  143.    return Gtk_Separator_Menu_Item 
  144.    renames Implements_Gtk_Activatable.To_Object; 
  145.  
  146.    package Implements_Gtk_Buildable is new Glib.Types.Implements 
  147.      (Gtk.Buildable.Gtk_Buildable, Gtk_Separator_Menu_Item_Record, Gtk_Separator_Menu_Item); 
  148.    function "+" 
  149.      (Widget : access Gtk_Separator_Menu_Item_Record'Class) 
  150.    return Gtk.Buildable.Gtk_Buildable 
  151.    renames Implements_Gtk_Buildable.To_Interface; 
  152.    function "-" 
  153.      (Interf : Gtk.Buildable.Gtk_Buildable) 
  154.    return Gtk_Separator_Menu_Item 
  155.    renames Implements_Gtk_Buildable.To_Object; 
  156.  
  157. end Gtk.Separator_Menu_Item;