summaryrefslogtreecommitdiff
path: root/vapi/x11.vapi
diff options
context:
space:
mode:
authorAlexander Kurtz <kurtz.alex@googlemail.com>2011-04-04 22:30:46 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-04-04 22:33:09 +0200
commit6b5a77e7feb7bc3d33f3c3b8919289bdc72bb8e1 (patch)
tree2797c6e11858405a120573302688a84926b69e4a /vapi/x11.vapi
parentd3f3dbf16787e95f7bf26b2ce57e8f769f3d8309 (diff)
downloadvala-6b5a77e7feb7bc3d33f3c3b8919289bdc72bb8e1.tar.gz
x11: Add function bindings to deal with KeySym and KeyCode
Diffstat (limited to 'vapi/x11.vapi')
-rw-r--r--vapi/x11.vapi12
1 files changed, 12 insertions, 0 deletions
diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index 461e37459..c489f271b 100644
--- a/vapi/x11.vapi
+++ b/vapi/x11.vapi
@@ -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);
}