2362N/A * Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A // strange constants 0N/A // define a private constructor here to prevent this class and all 0N/A // its descendants from being created 0N/A Display *XOpenDisplay(display_name) 0N/A {
"<none:0>",
"<none:1>",
"KeyPress",
"KeyRelease",
"ButtonPress",
"ButtonRelease",
0N/A "MotionNotify",
"EnterNotify",
"LeaveNotify",
"FocusIn",
"FocusOut",
0N/A "KeymapNotify",
"Expose",
"GraphicsExpose",
"NoExpose",
"VisibilityNotify",
0N/A "CreateNotify",
"DestroyNotify",
"UnmapNotify",
"MapNotify",
"MapRequest",
0N/A "ReparentNotify",
"ConfigureNotify",
"ConfigureRequest",
"GravityNotify",
0N/A "ResizeRequest",
"CirculateNotify",
"CirculateRequest",
"PropertyNotify",
0N/A "SelectionClear",
"SelectionRequest",
"SelectionNotify",
"ColormapNotify",
0N/A "ClientMessage",
"MappingNotify",
"LASTEvent"};
0N/A * Gets byte string from str_ptr and copies it into byte array 0N/A * String should be NULL terminated 0N/A Window XCreateWindow(display, parent, x, y, width, height, 0N/A border_width, depth, 0N/A class, visual, valuemask, attributes) 0N/A unsigned int width, height; 0N/A unsigned int border_width; 0N/A unsigned long valuemask; 0N/A XSetWindowAttributes *attributes; 0N/A static native long XCreateWindow(
long display,
long parent,
int x,
int y,
int width,
int height,
int border_width,
int depth,
long wclass,
long visual,
long valuemask,
long attributes);
0N/Avoid XSetWMProperties(display, w, window_name, icon_name, 0N/Aargv, argc, normal_hints, wm_hints, class_hints) 0N/AXTextProperty *window_name; 0N/AXTextProperty *icon_name; 0N/AXSizeHints *normal_hints; 0N/AXClassHint *class_hints; 0N/AXMapWindow(display, w) 0N/AXUnmapWindow(display, w) 0N/A XSelectInput(display, w, event_mask) 0N/A XNextEvent(display, event_return) 0N/A XEvent *event_return; 0N/A XMaskEvent(display, event_mask, event_return) 0N/A XEvent *event_return; 0N/A Bool XFilterEvent(event, w) 0N/A Bool XSupportsLocale() 0N/A char *XSetLocaleModifiers(modifier_list) 0N/A char *modifier_list; 0N/A XPeekEvent(display, event_return) 0N/A XEvent *event_return; 0N/A XSync(display, discard) 0N/A/* XMoveResizeWindow(display, w, x, y, width, height) 0N/A unsigned int width, height; 0N/A Bool XQueryPointer(display, w, root_return, child_return, 0N/A root_x_return, root_y_return, 0N/A win_x_return, win_y_return, 0N/A Window *root_return, *child_return; 0N/A int *root_x_return, *root_y_return; 0N/A int *win_x_return, *win_y_return; 0N/A unsigned int *mask_return; 0N/A/* XFreeCursor(display, cursor) 0N/A XSetWindowBackground(display, w, background_pixel) 0N/A unsigned long background_pixel; 0N/A Atom XInternAtom(display, atom_name, only_if_exists) 0N/A Bool only_if_exists; 0N/A // TODO: handling of XChangePropertyImpl return value, if not Success - don't cache 0N/A Cursor XCreateFontCursor(display, shape) 0N/A we always pass int as shape param. 0N/A perhaps later we will need to change type of shape to long. 0N/A Pixmap XCreateBitmapFromData(display, d, data, width, 0N/A unsigned int width, height; 0N/A XFreePixmap(display, pixmap) 0N/A Cursor XCreatePixmapCursor(display, source, mask, 0N/A foreground_color, background_color, x, y) 0N/A XColor *foreground_color; 0N/A XColor *background_color; 0N/A Status XQueryBestCursor(display, d, width, height, 0N/A width_return, height_return) 0N/A unsigned int width, height; 0N/A unsigned int *width_return, *height_return; 0N/A Status XAllocColor(display, colormap, screen_in_out) 0N/A XColor *screen_in_out; 0N/A XChangeWindowAttributes(display, w, valuemask, attributes) 0N/A unsigned long valuemask; 0N/A XSetWindowAttributes *attributes; 0N/A int (*XSynchronize(Display *display, Bool onoff))(); 0N/A display Specifies the connection to the X server. 0N/A onoff Specifies a Boolean value that indicates whether to enable or disable synchronization. 0N/A * Extracts an X event that can be processed in a secondary loop. 0N/A * Should only be called on the toolkit thread. 0N/A * Returns false if this secondary event was terminated. 0N/A * Terminates the topmost secondary loop (if any). 0N/A * Should never be called on the toolkit thread. 0N/A * Calls XTextPropertyToStringList on the specified byte array and returns 0N/A * the array of strings. 0N/A * XSHAPE extension support. 1066N/A /** Each int in the bitmap array is one pixel with a 32-bit color: 0N/A/* Global memory area used for X lib parameter passing */ 0N/A// System.loadLibrary("mawt"); 1067N/A //XXX TODO various xkb types