[vala/0.12] x11: Add function bindings to deal with KeySym and KeyCode



commit b88427bc8b41dfb41145e8dd05ff88123ee580c4
Author: Alexander Kurtz <kurtz alex googlemail com>
Date:   Mon Apr 4 22:30:46 2011 +0200

    x11: Add function bindings to deal with KeySym and KeyCode

 vapi/x11.vapi |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index 461e374..c489f27 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);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]