512 static native void XkbSetDetectableAutoRepeat(long display, boolean detectable);
513
514
515 static native void XConvertCase(long keysym,
516 long keysym_lowercase,
517 long keysym_uppercase);
518
519 static native long XGetModifierMapping(long display);
520 static native void XFreeModifiermap(long keymap);
521 static native void XRefreshKeyboardMapping(long event);
522
523
524 static native void XChangeActivePointerGrab(long display, int mask,
525 long cursor, long time);
526
527 /*
528 int (*XSynchronize(Display *display, Bool onoff))();
529 display Specifies the connection to the X server.
530 onoff Specifies a Boolean value that indicates whether to enable or disable synchronization.
531 */
532 static native int XSynchronize(long display, boolean onoff);
533
534 /**
535 * Extracts an X event that can be processed in a secondary loop.
536 * Should only be called on the toolkit thread.
537 * Returns false if this secondary event was terminated.
538 */
539 static native boolean XNextSecondaryLoopEvent(long display, long ptr);
540 /**
541 * Terminates the topmost secondary loop (if any).
542 * Should never be called on the toolkit thread.
543 */
544 static native void ExitSecondaryLoop();
545
546 /**
547 * Calls XTextPropertyToStringList on the specified byte array and returns
548 * the array of strings.
549 */
550 static native String[] XTextPropertyToStringList(byte[] bytes, long encoding_atom);
551
552 /**
|
512 static native void XkbSetDetectableAutoRepeat(long display, boolean detectable);
513
514
515 static native void XConvertCase(long keysym,
516 long keysym_lowercase,
517 long keysym_uppercase);
518
519 static native long XGetModifierMapping(long display);
520 static native void XFreeModifiermap(long keymap);
521 static native void XRefreshKeyboardMapping(long event);
522
523
524 static native void XChangeActivePointerGrab(long display, int mask,
525 long cursor, long time);
526
527 /*
528 int (*XSynchronize(Display *display, Bool onoff))();
529 display Specifies the connection to the X server.
530 onoff Specifies a Boolean value that indicates whether to enable or disable synchronization.
531 */
532 static native long XSynchronize(long display, boolean onoff);
533
534 /**
535 * Extracts an X event that can be processed in a secondary loop.
536 * Should only be called on the toolkit thread.
537 * Returns false if this secondary event was terminated.
538 */
539 static native boolean XNextSecondaryLoopEvent(long display, long ptr);
540 /**
541 * Terminates the topmost secondary loop (if any).
542 * Should never be called on the toolkit thread.
543 */
544 static native void ExitSecondaryLoop();
545
546 /**
547 * Calls XTextPropertyToStringList on the specified byte array and returns
548 * the array of strings.
549 */
550 static native String[] XTextPropertyToStringList(byte[] bytes, long encoding_atom);
551
552 /**
|