src/solaris/classes/sun/awt/X11/XlibWrapper.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 24,39 ****
*/
package sun.awt.X11;
import java.security.AccessController;
! import java.security.PrivilegedAction;
import sun.security.action.GetPropertyAction;
- import sun.misc.*;
! final public class XlibWrapper
! {
static Unsafe unsafe = Unsafe.getUnsafe();
// strange constants
static final int MAXSIZE = 32767;
static final int MINSIZE = 1;
--- 24,39 ----
*/
package sun.awt.X11;
import java.security.AccessController;
!
! import sun.misc.Unsafe;
import sun.security.action.GetPropertyAction;
! final class XlibWrapper {
!
static Unsafe unsafe = Unsafe.getUnsafe();
// strange constants
static final int MAXSIZE = 32767;
static final int MINSIZE = 1;
*** 46,56 ****
/*
Display *XOpenDisplay(display_name)
char *display_name;
*/
! public final static String eventToString[]=
{"<none:0>", "<none:1>", "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease",
"MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn", "FocusOut",
"KeymapNotify", "Expose", "GraphicsExpose", "NoExpose", "VisibilityNotify",
"CreateNotify", "DestroyNotify", "UnmapNotify", "MapNotify", "MapRequest",
"ReparentNotify", "ConfigureNotify", "ConfigureRequest", "GravityNotify",
--- 46,56 ----
/*
Display *XOpenDisplay(display_name)
char *display_name;
*/
! static final String[] eventToString =
{"<none:0>", "<none:1>", "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease",
"MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn", "FocusOut",
"KeymapNotify", "Expose", "GraphicsExpose", "NoExpose", "VisibilityNotify",
"CreateNotify", "DestroyNotify", "UnmapNotify", "MapNotify", "MapRequest",
"ReparentNotify", "ConfigureNotify", "ConfigureRequest", "GravityNotify",
*** 64,74 ****
static native void copyIntArray(long dest_ptr, Object array, int size_bytes);
static native void copyLongArray(long dest_ptr, Object array, int size_bytes);
/**
* Gets byte string from str_ptr and copies it into byte array
! * String should be NULL terminated
*/
static native byte[] getStringBytes(long str_ptr);
static native long XOpenDisplay(long display);
--- 64,74 ----
static native void copyIntArray(long dest_ptr, Object array, int size_bytes);
static native void copyLongArray(long dest_ptr, Object array, int size_bytes);
/**
* Gets byte string from str_ptr and copies it into byte array
! * String should be NULL terminated.
*/
static native byte[] getStringBytes(long str_ptr);
static native long XOpenDisplay(long display);
*** 527,537 ****
/*
int (*XSynchronize(Display *display, Bool onoff))();
display Specifies the connection to the X server.
onoff Specifies a Boolean value that indicates whether to enable or disable synchronization.
*/
! public static native int XSynchronize(long display, boolean onoff);
/**
* Extracts an X event that can be processed in a secondary loop.
* Should only be called on the toolkit thread.
* Returns false if this secondary event was terminated.
--- 527,537 ----
/*
int (*XSynchronize(Display *display, Bool onoff))();
display Specifies the connection to the X server.
onoff Specifies a Boolean value that indicates whether to enable or disable synchronization.
*/
! static native int XSynchronize(long display, boolean onoff);
/**
* Extracts an X event that can be processed in a secondary loop.
* Should only be called on the toolkit thread.
* Returns false if this secondary event was terminated.