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; 
  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 Glib.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