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.Invisible.Gtk_Invisible widget is used internally in GTK+, and is 
  26. --  probably not very useful for application developers. 
  27. -- 
  28. --  It is used for reliable pointer grabs and selection handling in the code 
  29. --  for drag-and-drop. 
  30. -- 
  31. --  </description> 
  32. pragma Ada_2005; 
  33.  
  34. pragma Warnings (Off, "*is already use-visible*"); 
  35. with Gdk.Screen;      use Gdk.Screen; 
  36. with Glib;            use Glib; 
  37. with Glib.Properties; use Glib.Properties; 
  38. with Glib.Types;      use Glib.Types; 
  39. with Gtk.Buildable;   use Gtk.Buildable; 
  40. with Gtk.Widget;      use Gtk.Widget; 
  41.  
  42. package Gtk.Invisible is 
  43.  
  44.    type Gtk_Invisible_Record is new Gtk_Widget_Record with null record; 
  45.    type Gtk_Invisible is access all Gtk_Invisible_Record'Class; 
  46.  
  47.    ------------------ 
  48.    -- Constructors -- 
  49.    ------------------ 
  50.  
  51.    procedure Gtk_New (Self : out Gtk_Invisible); 
  52.    procedure Initialize (Self : not null access Gtk_Invisible_Record'Class); 
  53.    --  Creates a new Gtk.Invisible.Gtk_Invisible. 
  54.  
  55.    function Gtk_Invisible_New return Gtk_Invisible; 
  56.    --  Creates a new Gtk.Invisible.Gtk_Invisible. 
  57.  
  58.    procedure Gtk_New_For_Screen 
  59.       (Self   : out Gtk_Invisible; 
  60.        Screen : not null access Gdk.Screen.Gdk_Screen_Record'Class); 
  61.    procedure Initialize_For_Screen 
  62.       (Self   : not null access Gtk_Invisible_Record'Class; 
  63.        Screen : not null access Gdk.Screen.Gdk_Screen_Record'Class); 
  64.    --  Creates a new Gtk.Invisible.Gtk_Invisible object for a specified screen 
  65.    --  Since: gtk+ 2.2 
  66.    --  "screen": a Gdk.Screen.Gdk_Screen which identifies on which the new 
  67.    --  Gtk.Invisible.Gtk_Invisible will be created. 
  68.  
  69.    function Gtk_Invisible_New_For_Screen 
  70.       (Screen : not null access Gdk.Screen.Gdk_Screen_Record'Class) 
  71.        return Gtk_Invisible; 
  72.    --  Creates a new Gtk.Invisible.Gtk_Invisible object for a specified screen 
  73.    --  Since: gtk+ 2.2 
  74.    --  "screen": a Gdk.Screen.Gdk_Screen which identifies on which the new 
  75.    --  Gtk.Invisible.Gtk_Invisible will be created. 
  76.  
  77.    function Get_Type return Glib.GType; 
  78.    pragma Import (C, Get_Type, "gtk_invisible_get_type"); 
  79.  
  80.    ------------- 
  81.    -- Methods -- 
  82.    ------------- 
  83.  
  84.    function Get_Screen 
  85.       (Self : not null access Gtk_Invisible_Record) 
  86.        return Gdk.Screen.Gdk_Screen; 
  87.    --  Returns the Gdk.Screen.Gdk_Screen object associated with Invisible 
  88.    --  Since: gtk+ 2.2 
  89.  
  90.    procedure Set_Screen 
  91.       (Self   : not null access Gtk_Invisible_Record; 
  92.        Screen : not null access Gdk.Screen.Gdk_Screen_Record'Class); 
  93.    --  Sets the Gdk.Screen.Gdk_Screen where the Gtk.Invisible.Gtk_Invisible 
  94.    --  object will be displayed. 
  95.    --  Since: gtk+ 2.2 
  96.    --  "screen": a Gdk.Screen.Gdk_Screen. 
  97.  
  98.    ---------------- 
  99.    -- Properties -- 
  100.    ---------------- 
  101.    --  The following properties are defined for this widget. See 
  102.    --  Glib.Properties for more information on properties) 
  103.  
  104.    Screen_Property : constant Glib.Properties.Property_Object; 
  105.    --  Type: Gdk.Screen.Gdk_Screen 
  106.  
  107.    ---------------- 
  108.    -- Interfaces -- 
  109.    ---------------- 
  110.    --  This class implements several interfaces. See Glib.Types 
  111.    -- 
  112.    --  - "Buildable" 
  113.  
  114.    package Implements_Gtk_Buildable is new Glib.Types.Implements 
  115.      (Gtk.Buildable.Gtk_Buildable, Gtk_Invisible_Record, Gtk_Invisible); 
  116.    function "+" 
  117.      (Widget : access Gtk_Invisible_Record'Class) 
  118.    return Gtk.Buildable.Gtk_Buildable 
  119.    renames Implements_Gtk_Buildable.To_Interface; 
  120.    function "-" 
  121.      (Interf : Gtk.Buildable.Gtk_Buildable) 
  122.    return Gtk_Invisible 
  123.    renames Implements_Gtk_Buildable.To_Object; 
  124.  
  125. private 
  126.    Screen_Property : constant Glib.Properties.Property_Object := 
  127.      Glib.Properties.Build ("screen"); 
  128. end Gtk.Invisible;