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-2013, 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. -- As a special exception, if other files instantiate generics from  -- 
  23. -- this unit, or you link this unit with other files to produce an   -- 
  24. -- executable, this  unit  does not  by itself cause  the resulting  -- 
  25. -- executable to be covered by the GNU General Public License. This  -- 
  26. -- exception does not however invalidate any other reasons why the   -- 
  27. -- executable file  might be covered by the  GNU Public License.     -- 
  28. ----------------------------------------------------------------------- 
  29.  
  30. --  <c_version>1.3.6</c_version> 
  31. --  <group>Gdk, the low-level API</group> 
  32.  
  33. with Glib; 
  34. with Gdk.Types; 
  35.  
  36. package Gdk.Keyval is 
  37.  
  38.    type Gdk_Keymap is private; 
  39.  
  40.    function Get_Type return Glib.GType; 
  41.  
  42.    function Name (Keyval : Gdk.Types.Gdk_Key_Type) return String; 
  43.  
  44.    function From_Name (Keyval_Name : String) return Gdk.Types.Gdk_Key_Type; 
  45.  
  46.    function To_Upper 
  47.      (Keyval : Gdk.Types.Gdk_Key_Type) return Gdk.Types.Gdk_Key_Type; 
  48.  
  49.    function To_Lower 
  50.      (Keyval : Gdk.Types.Gdk_Key_Type) return Gdk.Types.Gdk_Key_Type; 
  51.  
  52.    function Is_Upper (Keyval : Gdk.Types.Gdk_Key_Type) return Boolean; 
  53.  
  54.    function Is_Lower (Keyval : Gdk.Types.Gdk_Key_Type) return Boolean; 
  55.  
  56.    function To_Unicode (Keyval : Gdk.Types.Gdk_Key_Type) return Glib.Gunichar; 
  57.  
  58. private 
  59.    pragma Import (C, To_Upper, "gdk_keyval_to_upper"); 
  60.    pragma Import (C, To_Lower, "gdk_keyval_to_lower"); 
  61.    pragma Import (C, Get_Type, "gdk_keymap_get_type"); 
  62.    pragma Import (C, To_Unicode, "gdk_keyval_to_unicode"); 
  63.  
  64.    type Gdk_Keymap is new C_Proxy; 
  65. end Gdk.Keyval; 
  66.  
  67. --  missing: 
  68. --  gdk_keymap_lookup_key 
  69. --  gdk_keymap_translate_keyboard_state 
  70. --  gdk_keymap_get_entries_for_keyval 
  71. --  gdk_keymap_get_entries_for_keycode 
  72. --  gdk_keyval_convert_case 
  73. --  gdk_unicode_to_keyval