1. ------------------------------------------------------------------------------ 
  2. --                  GtkAda - Ada95 binding for Gtk+/Gnome                   -- 
  3. --                                                                          -- 
  4. --      Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet       -- 
  5. --                     Copyright (C) 1998-2014, AdaCore                     -- 
  6. --                                                                          -- 
  7. -- This library is free software;  you can redistribute it and/or modify it -- 
  8. -- under terms of the  GNU General Public License  as published by the Free -- 
  9. -- Software  Foundation;  either version 3,  or (at your  option) any later -- 
  10. -- version. This library is distributed in the hope that it will be useful, -- 
  11. -- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- -- 
  12. -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            -- 
  13. --                                                                          -- 
  14. -- As a special exception under Section 7 of GPL version 3, you are granted -- 
  15. -- additional permissions described in the GCC Runtime Library Exception,   -- 
  16. -- version 3.1, as published by the Free Software Foundation.               -- 
  17. --                                                                          -- 
  18. -- You should have received a copy of the GNU General Public License and    -- 
  19. -- a copy of the GCC Runtime Library Exception along with this program;     -- 
  20. -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    -- 
  21. -- <http://www.gnu.org/licenses/>.                                          -- 
  22. --                                                                          -- 
  23. ------------------------------------------------------------------------------ 
  24.  
  25. --  <c_version>1.3.6</c_version> 
  26. --  <group>Gdk, the low-level API</group> 
  27.  
  28. with Glib; use Glib; 
  29.  
  30. with Gdk.Types; 
  31.  
  32. package Gdk.Property is 
  33.  
  34.    type Gdk_Prop_Mode is 
  35.      (Prop_Mode_Replace, Prop_Mode_Prepend, Prop_Mode_Append); 
  36.    pragma Convention (C, Gdk_Prop_Mode); 
  37.  
  38.    function Atom_Intern 
  39.      (Atom_Name      : String; 
  40.       Only_If_Exists : Boolean := True) return Gdk.Types.Gdk_Atom; 
  41.    --  Convert from a string to an atom 
  42.  
  43.    function Atom_Name (Atom : Gdk.Types.Gdk_Atom) return String; 
  44.    --  Convert from an atom to a string 
  45.  
  46.    procedure Get 
  47.      (Window               : Gdk.Gdk_Window; 
  48.       Property             : Gdk.Types.Gdk_Atom; 
  49.       The_Type             : Gdk.Types.Gdk_Atom; 
  50.       Offset               : Gulong; 
  51.       Length               : Gulong; 
  52.       Pdelete              : Boolean; 
  53.       Actual_Property_Type : out Gdk.Types.Gdk_Atom; 
  54.       Actual_Format        : out Gint; 
  55.       Data                 : out Guchar_Array_Access; 
  56.       Success              : out Boolean); 
  57.  
  58.    procedure Change 
  59.      (Window    : Gdk.Gdk_Window; 
  60.       Property  : Gdk.Types.Gdk_Atom; 
  61.       The_Type  : Gdk.Types.Gdk_Atom; 
  62.       Format    : Gint; 
  63.       Mode      : Gdk_Prop_Mode; 
  64.       Data      : Guchar_Array); 
  65.  
  66.    procedure Delete 
  67.      (Window   : Gdk.Gdk_Window; 
  68.       Property : Gdk.Types.Gdk_Atom); 
  69.  
  70. private 
  71.    pragma Import (C, Delete, "gdk_property_delete"); 
  72. end Gdk.Property; 
  73.  
  74. --  missing: 
  75. --  gdk_text_property_to_text_list 
  76. --  gdk_text_property_to_utf8_list 
  77. --  gdk_utf8_to_string_target 
  78. --  gdk_utf8_to_compound_text 
  79. --  gdk_free_text_list 
  80. --  gdk_string_to_compound_text 
  81. --  gdk_free_compound_text