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-2008, 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. -- -- -- -- -- -- -- -- -- -- -- --
  23. ----------------------------------------------------------------------- 
  24.  
  25. --  <c_version>1.3.6</c_version> 
  26. --  <group>Gdk, the low-level API</group> 
  27.  
  28. with Glib; 
  29. with Gdk.Types; 
  30.  
  31. package Gdk.Keyval is 
  32.  
  33.    type Gdk_Keymap is private; 
  34.  
  35.    function Get_Type return Glib.GType; 
  36.  
  37.    function Name (Keyval : Gdk.Types.Gdk_Key_Type) return String; 
  38.  
  39.    function From_Name (Keyval_Name : String) return Gdk.Types.Gdk_Key_Type; 
  40.  
  41.    function To_Upper 
  42.      (Keyval : Gdk.Types.Gdk_Key_Type) return Gdk.Types.Gdk_Key_Type; 
  43.  
  44.    function To_Lower 
  45.      (Keyval : Gdk.Types.Gdk_Key_Type) return Gdk.Types.Gdk_Key_Type; 
  46.  
  47.    function Is_Upper (Keyval : Gdk.Types.Gdk_Key_Type) return Boolean; 
  48.  
  49.    function Is_Lower (Keyval : Gdk.Types.Gdk_Key_Type) return Boolean; 
  50.  
  51.    function To_Unicode (Keyval : Gdk.Types.Gdk_Key_Type) return Glib.Gunichar; 
  52.  
  53. private 
  54.    pragma Import (C, To_Upper, "gdk_keyval_to_upper"); 
  55.    pragma Import (C, To_Lower, "gdk_keyval_to_lower"); 
  56.    pragma Import (C, Get_Type, "gdk_keymap_get_type"); 
  57.    pragma Import (C, To_Unicode, "gdk_keyval_to_unicode"); 
  58.  
  59.    type Gdk_Keymap is new C_Proxy; 
  60. end Gdk.Keyval; 
  61.  
  62. --  missing: 
  63. --  gdk_keymap_lookup_key 
  64. --  gdk_keymap_translate_keyboard_state 
  65. --  gdk_keymap_get_entries_for_keyval 
  66. --  gdk_keymap_get_entries_for_keycode 
  67. --  gdk_keyval_convert_case 
  68. --  gdk_unicode_to_keyval