]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
x11: Add function bindings to deal with KeySym and KeyCode
authorAlexander Kurtz <kurtz.alex@googlemail.com>
Mon, 4 Apr 2011 20:30:46 +0000 (22:30 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 29 May 2011 08:27:19 +0000 (10:27 +0200)
vapi/x11.vapi

index 461e37459584f43d0538919ee3a259b7eb8fc8a6..c489f271b53b26896ceb25e04a74596d4c636055 100644 (file)
@@ -135,6 +135,9 @@ namespace X {
                [CCode (cname = "XKeysymToKeycode")]
                public uchar keysym_to_keycode (ulong keysym);
 
+               [CCode (cname = "XKeycodeToKeysym")]
+               public ulong keycode_to_keysym (uchar keycode, int index);
+
                [CCode (cname = "XLastKnownRequestProcessed")]
                public ulong last_known_request_processed ();
 
@@ -948,5 +951,14 @@ namespace X {
        public const uint XK_Scroll_Lock;
        public const uint XK_Super_L;
        public const uint XK_Super_R;
+
+       [CCode (cname = "XStringToKeysym")]
+       public ulong string_to_keysym (string key);
+
+       [CCode (cname = "XKeysymToString")]
+       public unowned string keysym_to_string (ulong keysym);
+
+       [CCode (cname = "XConvertCase")]
+       public void convert_case (ulong keysym, out ulong lower_return, out ulong upper_return);
 }