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-2002 ACT-Europe                 -- 
  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. --  <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. with Gdk.Window; 
  32.  
  33. package Gdk.Property is 
  34.  
  35.    type Gdk_Prop_Mode is 
  36.      (Prop_Mode_Replace, Prop_Mode_Prepend, Prop_Mode_Append); 
  37.    pragma Convention (C, Gdk_Prop_Mode); 
  38.  
  39.    function Atom_Intern 
  40.      (Atom_Name      : String; 
  41.       Only_If_Exists : Boolean := True) return Gdk.Types.Gdk_Atom; 
  42.    --  Convert from a string to an atom 
  43.  
  44.    function Atom_Name (Atom : Gdk.Types.Gdk_Atom) return String; 
  45.    --  Convert from an atom to a string 
  46.  
  47.    procedure Get 
  48.      (Window               : Gdk.Window.Gdk_Window; 
  49.       Property             : Gdk.Types.Gdk_Atom; 
  50.       The_Type             : Gdk.Types.Gdk_Atom; 
  51.       Offset               : Gulong; 
  52.       Length               : Gulong; 
  53.       Pdelete              : Boolean; 
  54.       Actual_Property_Type : out Gdk.Types.Gdk_Atom; 
  55.       Actual_Format        : out Gint; 
  56.       Data                 : out Guchar_Array_Access; 
  57.       Success              : out Boolean); 
  58.  
  59.    procedure Change 
  60.      (Window    : Gdk.Window.Gdk_Window; 
  61.       Property  : Gdk.Types.Gdk_Atom; 
  62.       The_Type  : Gdk.Types.Gdk_Atom; 
  63.       Format    : Gint; 
  64.       Mode      : Gdk_Prop_Mode; 
  65.       Data      : Guchar_Array); 
  66.  
  67.    procedure Delete 
  68.      (Window   : Gdk.Window.Gdk_Window; 
  69.       Property : Gdk.Types.Gdk_Atom); 
  70.  
  71. private 
  72.    pragma Import (C, Delete, "gdk_property_delete"); 
  73. end Gdk.Property; 
  74.  
  75. --  missing: 
  76. --  gdk_text_property_to_text_list 
  77. --  gdk_text_property_to_utf8_list 
  78. --  gdk_utf8_to_string_target 
  79. --  gdk_utf8_to_compound_text 
  80. --  gdk_free_text_list 
  81. --  gdk_string_to_compound_text 
  82. --  gdk_free_compound_text