| 1 |
/* |
| 2 |
|
| 3 |
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group |
| 4 |
|
| 5 |
Permission to use, copy, modify, distribute, and sell this software and its |
| 6 |
documentation for any purpose is hereby granted without fee, provided that |
| 7 |
the above copyright notice appear in all copies and that both that |
| 8 |
copyright notice and this permission notice appear in supporting |
| 9 |
documentation. |
| 10 |
|
| 11 |
The above copyright notice and this permission notice shall be included in |
| 12 |
all copies or substantial portions of the Software. |
| 13 |
|
| 14 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 |
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 18 |
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 19 |
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 20 |
|
| 21 |
Except as contained in this notice, the name of The Open Group shall not be |
| 22 |
used in advertising or otherwise to promote the sale, use or other dealings |
| 23 |
in this Software without prior written authorization from The Open Group. |
| 24 |
|
| 25 |
*/ |
| 26 |
|
| 27 |
|
| 28 |
/* |
| 29 |
* Xlib.h - Header definition and support file for the C subroutine |
| 30 |
* interface library (Xlib) to the X Window System Protocol (V11). |
| 31 |
* Structures and symbols starting with "_" are private to the library. |
| 32 |
*/ |
| 33 |
#if !defined(_X11_XLIB_H_) && !defined(_XLIB_H_) |
| 34 |
#define _X11_XLIB_H_ |
| 35 |
#define _XLIB_H_ |
| 36 |
|
| 37 |
#define XlibSpecificationRelease 6 |
| 38 |
|
| 39 |
#include <sys/types.h> |
| 40 |
|
| 41 |
#if defined(__SCO__) || defined(__UNIXWARE__) |
| 42 |
#include <stdint.h> |
| 43 |
#endif |
| 44 |
|
| 45 |
#include <nx-X11/X.h> |
| 46 |
|
| 47 |
/* applications should not depend on these two headers being included! */ |
| 48 |
#include <nx-X11/Xfuncproto.h> |
| 49 |
#include <nx-X11/Xosdefs.h> |
| 50 |
|
| 51 |
#ifndef X_WCHAR |
| 52 |
#include <stddef.h> |
| 53 |
#else |
| 54 |
/* replace this with #include or typedef appropriate for your system */ |
| 55 |
typedef unsigned long wchar_t; |
| 56 |
#endif |
| 57 |
|
| 58 |
|
| 59 |
extern int |
| 60 |
_Xmblen( |
| 61 |
char *str, |
| 62 |
int len |
| 63 |
); |
| 64 |
|
| 65 |
/* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in |
| 66 |
November 2000. Its presence is indicated through the following macro. */ |
| 67 |
#define X_HAVE_UTF8_STRING 1 |
| 68 |
|
| 69 |
/* The Xlib structs are full of implicit padding to properly align members. |
| 70 |
We can't clean that up without breaking ABI, so tell clang not to bother |
| 71 |
complaining about it. */ |
| 72 |
#ifdef __clang__ |
| 73 |
#pragma clang diagnostic push |
| 74 |
#pragma clang diagnostic ignored "-Wpadded" |
| 75 |
#endif |
| 76 |
|
| 77 |
typedef char *XPointer; |
| 78 |
|
| 79 |
#define Bool int |
| 80 |
#define Status int |
| 81 |
#define True 1 |
| 82 |
#define False 0 |
| 83 |
|
| 84 |
#define QueuedAlready 0 |
| 85 |
#define QueuedAfterReading 1 |
| 86 |
#define QueuedAfterFlush 2 |
| 87 |
|
| 88 |
#define ConnectionNumber(dpy) (((_XPrivDisplay)(dpy))->fd) |
| 89 |
#define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root) |
| 90 |
#define DefaultScreen(dpy) (((_XPrivDisplay)(dpy))->default_screen) |
| 91 |
#define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root) |
| 92 |
#define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual) |
| 93 |
#define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc) |
| 94 |
#define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel) |
| 95 |
#define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel) |
| 96 |
#define AllPlanes ((unsigned long)~0L) |
| 97 |
#define QLength(dpy) (((_XPrivDisplay)(dpy))->qlen) |
| 98 |
#define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width) |
| 99 |
#define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height) |
| 100 |
#define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth) |
| 101 |
#define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight) |
| 102 |
#define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth) |
| 103 |
#define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries) |
| 104 |
#define ScreenCount(dpy) (((_XPrivDisplay)(dpy))->nscreens) |
| 105 |
#define ServerVendor(dpy) (((_XPrivDisplay)(dpy))->vendor) |
| 106 |
#define ProtocolVersion(dpy) (((_XPrivDisplay)(dpy))->proto_major_version) |
| 107 |
#define ProtocolRevision(dpy) (((_XPrivDisplay)(dpy))->proto_minor_version) |
| 108 |
#define VendorRelease(dpy) (((_XPrivDisplay)(dpy))->release) |
| 109 |
#define DisplayString(dpy) (((_XPrivDisplay)(dpy))->display_name) |
| 110 |
#define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth) |
| 111 |
#define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap) |
| 112 |
#define BitmapUnit(dpy) (((_XPrivDisplay)(dpy))->bitmap_unit) |
| 113 |
#define BitmapBitOrder(dpy) (((_XPrivDisplay)(dpy))->bitmap_bit_order) |
| 114 |
#define BitmapPad(dpy) (((_XPrivDisplay)(dpy))->bitmap_pad) |
| 115 |
#define ImageByteOrder(dpy) (((_XPrivDisplay)(dpy))->byte_order) |
| 116 |
#define NextRequest(dpy) (((_XPrivDisplay)(dpy))->request + 1) |
| 117 |
#define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)(dpy))->last_request_read) |
| 118 |
|
| 119 |
/* macros for screen oriented applications (toolkit) */ |
| 120 |
#define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)(dpy))->screens[scr]) |
| 121 |
#define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy)) |
| 122 |
#define DisplayOfScreen(s) ((s)->display) |
| 123 |
#define RootWindowOfScreen(s) ((s)->root) |
| 124 |
#define BlackPixelOfScreen(s) ((s)->black_pixel) |
| 125 |
#define WhitePixelOfScreen(s) ((s)->white_pixel) |
| 126 |
#define DefaultColormapOfScreen(s)((s)->cmap) |
| 127 |
#define DefaultDepthOfScreen(s) ((s)->root_depth) |
| 128 |
#define DefaultGCOfScreen(s) ((s)->default_gc) |
| 129 |
#define DefaultVisualOfScreen(s)((s)->root_visual) |
| 130 |
#define WidthOfScreen(s) ((s)->width) |
| 131 |
#define HeightOfScreen(s) ((s)->height) |
| 132 |
#define WidthMMOfScreen(s) ((s)->mwidth) |
| 133 |
#define HeightMMOfScreen(s) ((s)->mheight) |
| 134 |
#define PlanesOfScreen(s) ((s)->root_depth) |
| 135 |
#define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries) |
| 136 |
#define MinCmapsOfScreen(s) ((s)->min_maps) |
| 137 |
#define MaxCmapsOfScreen(s) ((s)->max_maps) |
| 138 |
#define DoesSaveUnders(s) ((s)->save_unders) |
| 139 |
#define DoesBackingStore(s) ((s)->backing_store) |
| 140 |
#define EventMaskOfScreen(s) ((s)->root_input_mask) |
| 141 |
|
| 142 |
/* |
| 143 |
* Extensions need a way to hang private data on some structures. |
| 144 |
*/ |
| 145 |
typedef struct _XExtData { |
| 146 |
int number; /* number returned by XRegisterExtension */ |
| 147 |
struct _XExtData *next; /* next item on list of data for structure */ |
| 148 |
int (*free_private)( /* called to free private storage */ |
| 149 |
struct _XExtData *extension |
| 150 |
); |
| 151 |
XPointer private_data; /* data private to this extension. */ |
| 152 |
} XExtData; |
| 153 |
|
| 154 |
/* |
| 155 |
* This file contains structures used by the extension mechanism. |
| 156 |
*/ |
| 157 |
typedef struct { /* public to extension, cannot be changed */ |
| 158 |
int extension; /* extension number */ |
| 159 |
int major_opcode; /* major op-code assigned by server */ |
| 160 |
int first_event; /* first event number for the extension */ |
| 161 |
int first_error; /* first error number for the extension */ |
| 162 |
} XExtCodes; |
| 163 |
|
| 164 |
/* |
| 165 |
* Data structure for retrieving info about pixmap formats. |
| 166 |
*/ |
| 167 |
|
| 168 |
typedef struct { |
| 169 |
int depth; |
| 170 |
int bits_per_pixel; |
| 171 |
int scanline_pad; |
| 172 |
} XPixmapFormatValues; |
| 173 |
|
| 174 |
|
| 175 |
/* |
| 176 |
* Data structure for setting graphics context. |
| 177 |
*/ |
| 178 |
typedef struct { |
| 179 |
int function; /* logical operation */ |
| 180 |
unsigned long plane_mask;/* plane mask */ |
| 181 |
unsigned long foreground;/* foreground pixel */ |
| 182 |
unsigned long background;/* background pixel */ |
| 183 |
int line_width; /* line width */ |
| 184 |
int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */ |
| 185 |
int cap_style; /* CapNotLast, CapButt, |
| 186 |
CapRound, CapProjecting */ |
| 187 |
int join_style; /* JoinMiter, JoinRound, JoinBevel */ |
| 188 |
int fill_style; /* FillSolid, FillTiled, |
| 189 |
FillStippled, FillOpaeueStippled */ |
| 190 |
int fill_rule; /* EvenOddRule, WindingRule */ |
| 191 |
int arc_mode; /* ArcChord, ArcPieSlice */ |
| 192 |
Pixmap tile; /* tile pixmap for tiling operations */ |
| 193 |
Pixmap stipple; /* stipple 1 plane pixmap for stipping */ |
| 194 |
int ts_x_origin; /* offset for tile or stipple operations */ |
| 195 |
int ts_y_origin; |
| 196 |
Font font; /* default text font for text operations */ |
| 197 |
int subwindow_mode; /* ClipByChildren, IncludeInferiors */ |
| 198 |
Bool graphics_exposures;/* boolean, should exposures be generated */ |
| 199 |
int clip_x_origin; /* origin for clipping */ |
| 200 |
int clip_y_origin; |
| 201 |
Pixmap clip_mask; /* bitmap clipping; other calls for rects */ |
| 202 |
int dash_offset; /* patterned/dashed line information */ |
| 203 |
char dashes; |
| 204 |
} XGCValues; |
| 205 |
|
| 206 |
/* |
| 207 |
* Graphics context. The contents of this structure are implementation |
| 208 |
* dependent. A GC should be treated as opaque by application code. |
| 209 |
*/ |
| 210 |
|
| 211 |
typedef struct _XGC |
| 212 |
#ifdef XLIB_ILLEGAL_ACCESS |
| 213 |
{ |
| 214 |
XExtData *ext_data; /* hook for extension to hang data */ |
| 215 |
GContext gid; /* protocol ID for graphics context */ |
| 216 |
/* there is more to this structure, but it is private to Xlib */ |
| 217 |
} |
| 218 |
#endif |
| 219 |
*GC; |
| 220 |
|
| 221 |
/* |
| 222 |
* Visual structure; contains information about colormapping possible. |
| 223 |
*/ |
| 224 |
typedef struct { |
| 225 |
XExtData *ext_data; /* hook for extension to hang data */ |
| 226 |
VisualID visualid; /* visual id of this visual */ |
| 227 |
#if defined(__cplusplus) || defined(c_plusplus) |
| 228 |
int c_class; /* C++ class of screen (monochrome, etc.) */ |
| 229 |
#else |
| 230 |
int class; /* class of screen (monochrome, etc.) */ |
| 231 |
#endif |
| 232 |
unsigned long red_mask, green_mask, blue_mask; /* mask values */ |
| 233 |
int bits_per_rgb; /* log base 2 of distinct color values */ |
| 234 |
int map_entries; /* color map entries */ |
| 235 |
} Visual; |
| 236 |
|
| 237 |
/* |
| 238 |
* Depth structure; contains information for each possible depth. |
| 239 |
*/ |
| 240 |
typedef struct { |
| 241 |
int depth; /* this depth (Z) of the depth */ |
| 242 |
int nvisuals; /* number of Visual types at this depth */ |
| 243 |
Visual *visuals; /* list of visuals possible at this depth */ |
| 244 |
} Depth; |
| 245 |
|
| 246 |
/* |
| 247 |
* Information about the screen. The contents of this structure are |
| 248 |
* implementation dependent. A Screen should be treated as opaque |
| 249 |
* by application code. |
| 250 |
*/ |
| 251 |
|
| 252 |
struct _XDisplay; /* Forward declare before use for C++ */ |
| 253 |
|
| 254 |
typedef struct { |
| 255 |
XExtData *ext_data; /* hook for extension to hang data */ |
| 256 |
struct _XDisplay *display;/* back pointer to display structure */ |
| 257 |
Window root; /* Root window id. */ |
| 258 |
int width, height; /* width and height of screen */ |
| 259 |
int mwidth, mheight; /* width and height of in millimeters */ |
| 260 |
int ndepths; /* number of depths possible */ |
| 261 |
Depth *depths; /* list of allowable depths on the screen */ |
| 262 |
int root_depth; /* bits per pixel */ |
| 263 |
Visual *root_visual; /* root visual */ |
| 264 |
GC default_gc; /* GC for the root root visual */ |
| 265 |
Colormap cmap; /* default color map */ |
| 266 |
unsigned long white_pixel; |
| 267 |
unsigned long black_pixel; /* White and Black pixel values */ |
| 268 |
int max_maps, min_maps; /* max and min color maps */ |
| 269 |
int backing_store; /* Never, WhenMapped, Always */ |
| 270 |
Bool save_unders; |
| 271 |
long root_input_mask; /* initial root input mask */ |
| 272 |
} Screen; |
| 273 |
|
| 274 |
/* |
| 275 |
* Format structure; describes ZFormat data the screen will understand. |
| 276 |
*/ |
| 277 |
typedef struct { |
| 278 |
XExtData *ext_data; /* hook for extension to hang data */ |
| 279 |
int depth; /* depth of this image format */ |
| 280 |
int bits_per_pixel; /* bits/pixel at this depth */ |
| 281 |
int scanline_pad; /* scanline must padded to this multiple */ |
| 282 |
} ScreenFormat; |
| 283 |
|
| 284 |
/* |
| 285 |
* Data structure for setting window attributes. |
| 286 |
*/ |
| 287 |
typedef struct { |
| 288 |
Pixmap background_pixmap; /* background or None or ParentRelative */ |
| 289 |
unsigned long background_pixel; /* background pixel */ |
| 290 |
Pixmap border_pixmap; /* border of the window */ |
| 291 |
unsigned long border_pixel; /* border pixel value */ |
| 292 |
int bit_gravity; /* one of bit gravity values */ |
| 293 |
int win_gravity; /* one of the window gravity values */ |
| 294 |
int backing_store; /* NotUseful, WhenMapped, Always */ |
| 295 |
unsigned long backing_planes;/* planes to be preserved if possible */ |
| 296 |
unsigned long backing_pixel;/* value to use in restoring planes */ |
| 297 |
Bool save_under; /* should bits under be saved? (popups) */ |
| 298 |
long event_mask; /* set of events that should be saved */ |
| 299 |
long do_not_propagate_mask; /* set of events that should not propagate */ |
| 300 |
Bool override_redirect; /* boolean value for override-redirect */ |
| 301 |
Colormap colormap; /* color map to be associated with window */ |
| 302 |
Cursor cursor; /* cursor to be displayed (or None) */ |
| 303 |
} XSetWindowAttributes; |
| 304 |
|
| 305 |
typedef struct { |
| 306 |
int x, y; /* location of window */ |
| 307 |
int width, height; /* width and height of window */ |
| 308 |
int border_width; /* border width of window */ |
| 309 |
int depth; /* depth of window */ |
| 310 |
Visual *visual; /* the associated visual structure */ |
| 311 |
Window root; /* root of screen containing window */ |
| 312 |
#if defined(__cplusplus) || defined(c_plusplus) |
| 313 |
int c_class; /* C++ InputOutput, InputOnly*/ |
| 314 |
#else |
| 315 |
int class; /* InputOutput, InputOnly*/ |
| 316 |
#endif |
| 317 |
int bit_gravity; /* one of bit gravity values */ |
| 318 |
int win_gravity; /* one of the window gravity values */ |
| 319 |
int backing_store; /* NotUseful, WhenMapped, Always */ |
| 320 |
unsigned long backing_planes;/* planes to be preserved if possible */ |
| 321 |
unsigned long backing_pixel;/* value to be used when restoring planes */ |
| 322 |
Bool save_under; /* boolean, should bits under be saved? */ |
| 323 |
Colormap colormap; /* color map to be associated with window */ |
| 324 |
Bool map_installed; /* boolean, is color map currently installed*/ |
| 325 |
int map_state; /* IsUnmapped, IsUnviewable, IsViewable */ |
| 326 |
long all_event_masks; /* set of events all people have interest in*/ |
| 327 |
long your_event_mask; /* my event mask */ |
| 328 |
long do_not_propagate_mask; /* set of events that should not propagate */ |
| 329 |
Bool override_redirect; /* boolean value for override-redirect */ |
| 330 |
Screen *screen; /* back pointer to correct screen */ |
| 331 |
} XWindowAttributes; |
| 332 |
|
| 333 |
/* |
| 334 |
* Data structure for host setting; getting routines. |
| 335 |
* |
| 336 |
*/ |
| 337 |
|
| 338 |
typedef struct { |
| 339 |
int family; /* for example FamilyInternet */ |
| 340 |
int length; /* length of address, in bytes */ |
| 341 |
char *address; /* pointer to where to find the bytes */ |
| 342 |
} XHostAddress; |
| 343 |
|
| 344 |
/* |
| 345 |
* Data structure for ServerFamilyInterpreted addresses in host routines |
| 346 |
*/ |
| 347 |
typedef struct { |
| 348 |
int typelength; /* length of type string, in bytes */ |
| 349 |
int valuelength; /* length of value string, in bytes */ |
| 350 |
char *type; /* pointer to where to find the type string */ |
| 351 |
char *value; /* pointer to where to find the address */ |
| 352 |
} XServerInterpretedAddress; |
| 353 |
|
| 354 |
/* |
| 355 |
* Data structure for "image" data, used by image manipulation routines. |
| 356 |
*/ |
| 357 |
typedef struct _XImage { |
| 358 |
int width, height; /* size of image */ |
| 359 |
int xoffset; /* number of pixels offset in X direction */ |
| 360 |
int format; /* XYBitmap, XYPixmap, ZPixmap */ |
| 361 |
char *data; /* pointer to image data */ |
| 362 |
int byte_order; /* data byte order, LSBFirst, MSBFirst */ |
| 363 |
int bitmap_unit; /* quant. of scanline 8, 16, 32 */ |
| 364 |
int bitmap_bit_order; /* LSBFirst, MSBFirst */ |
| 365 |
int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */ |
| 366 |
int depth; /* depth of image */ |
| 367 |
int bytes_per_line; /* accelerator to next line */ |
| 368 |
int bits_per_pixel; /* bits per pixel (ZPixmap) */ |
| 369 |
unsigned long red_mask; /* bits in z arrangement */ |
| 370 |
unsigned long green_mask; |
| 371 |
unsigned long blue_mask; |
| 372 |
XPointer obdata; /* hook for the object routines to hang on */ |
| 373 |
struct funcs { /* image manipulation routines */ |
| 374 |
struct _XImage *(*create_image)( |
| 375 |
struct _XDisplay* /* display */, |
| 376 |
Visual* /* visual */, |
| 377 |
unsigned int /* depth */, |
| 378 |
int /* format */, |
| 379 |
int /* offset */, |
| 380 |
char* /* data */, |
| 381 |
unsigned int /* width */, |
| 382 |
unsigned int /* height */, |
| 383 |
int /* bitmap_pad */, |
| 384 |
int /* bytes_per_line */); |
| 385 |
int (*destroy_image) (struct _XImage *); |
| 386 |
unsigned long (*get_pixel) (struct _XImage *, int, int); |
| 387 |
int (*put_pixel) (struct _XImage *, int, int, unsigned long); |
| 388 |
struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int); |
| 389 |
int (*add_pixel) (struct _XImage *, long); |
| 390 |
} f; |
| 391 |
} XImage; |
| 392 |
|
| 393 |
/* |
| 394 |
* Data structure for XReconfigureWindow |
| 395 |
*/ |
| 396 |
typedef struct { |
| 397 |
int x, y; |
| 398 |
int width, height; |
| 399 |
int border_width; |
| 400 |
Window sibling; |
| 401 |
int stack_mode; |
| 402 |
} XWindowChanges; |
| 403 |
|
| 404 |
/* |
| 405 |
* Data structure used by color operations |
| 406 |
*/ |
| 407 |
typedef struct { |
| 408 |
unsigned long pixel; |
| 409 |
unsigned short red, green, blue; |
| 410 |
char flags; /* do_red, do_green, do_blue */ |
| 411 |
char pad; |
| 412 |
} XColor; |
| 413 |
|
| 414 |
/* |
| 415 |
* Data structures for graphics operations. On most machines, these are |
| 416 |
* congruent with the wire protocol structures, so reformatting the data |
| 417 |
* can be avoided on these architectures. |
| 418 |
*/ |
| 419 |
typedef struct { |
| 420 |
short x1, y1, x2, y2; |
| 421 |
} XSegment; |
| 422 |
|
| 423 |
typedef struct { |
| 424 |
short x, y; |
| 425 |
} XPoint; |
| 426 |
|
| 427 |
typedef struct { |
| 428 |
short x, y; |
| 429 |
unsigned short width, height; |
| 430 |
} XRectangle; |
| 431 |
|
| 432 |
typedef struct { |
| 433 |
short x, y; |
| 434 |
unsigned short width, height; |
| 435 |
short angle1, angle2; |
| 436 |
} XArc; |
| 437 |
|
| 438 |
|
| 439 |
/* Data structure for XChangeKeyboardControl */ |
| 440 |
|
| 441 |
typedef struct { |
| 442 |
int key_click_percent; |
| 443 |
int bell_percent; |
| 444 |
int bell_pitch; |
| 445 |
int bell_duration; |
| 446 |
int led; |
| 447 |
int led_mode; |
| 448 |
int key; |
| 449 |
int auto_repeat_mode; /* On, Off, Default */ |
| 450 |
} XKeyboardControl; |
| 451 |
|
| 452 |
/* Data structure for XGetKeyboardControl */ |
| 453 |
|
| 454 |
typedef struct { |
| 455 |
int key_click_percent; |
| 456 |
int bell_percent; |
| 457 |
unsigned int bell_pitch, bell_duration; |
| 458 |
unsigned long led_mask; |
| 459 |
int global_auto_repeat; |
| 460 |
char auto_repeats[32]; |
| 461 |
} XKeyboardState; |
| 462 |
|
| 463 |
/* Data structure for XGetMotionEvents. */ |
| 464 |
|
| 465 |
typedef struct { |
| 466 |
Time time; |
| 467 |
short x, y; |
| 468 |
} XTimeCoord; |
| 469 |
|
| 470 |
/* Data structure for X{Set,Get}ModifierMapping */ |
| 471 |
|
| 472 |
typedef struct { |
| 473 |
int max_keypermod; /* The server's max # of keys per modifier */ |
| 474 |
KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */ |
| 475 |
} XModifierKeymap; |
| 476 |
|
| 477 |
|
| 478 |
/* |
| 479 |
* Display datatype maintaining display specific data. |
| 480 |
* The contents of this structure are implementation dependent. |
| 481 |
* A Display should be treated as opaque by application code. |
| 482 |
*/ |
| 483 |
#ifndef XLIB_ILLEGAL_ACCESS |
| 484 |
typedef struct _XDisplay Display; |
| 485 |
#endif |
| 486 |
|
| 487 |
struct _XPrivate; /* Forward declare before use for C++ */ |
| 488 |
struct _XrmHashBucketRec; |
| 489 |
|
| 490 |
typedef struct |
| 491 |
#ifdef XLIB_ILLEGAL_ACCESS |
| 492 |
_XDisplay |
| 493 |
#endif |
| 494 |
{ |
| 495 |
XExtData *ext_data; /* hook for extension to hang data */ |
| 496 |
struct _XPrivate *private1; |
| 497 |
int fd; /* Network socket. */ |
| 498 |
int private2; |
| 499 |
int proto_major_version;/* major version of server's X protocol */ |
| 500 |
int proto_minor_version;/* minor version of servers X protocol */ |
| 501 |
char *vendor; /* vendor of the server hardware */ |
| 502 |
XID private3; |
| 503 |
XID private4; |
| 504 |
XID private5; |
| 505 |
int private6; |
| 506 |
XID (*resource_alloc)( /* allocator function */ |
| 507 |
struct _XDisplay* |
| 508 |
); |
| 509 |
int byte_order; /* screen byte order, LSBFirst, MSBFirst */ |
| 510 |
int bitmap_unit; /* padding and data requirements */ |
| 511 |
int bitmap_pad; /* padding requirements on bitmaps */ |
| 512 |
int bitmap_bit_order; /* LeastSignificant or MostSignificant */ |
| 513 |
int nformats; /* number of pixmap formats in list */ |
| 514 |
ScreenFormat *pixmap_format; /* pixmap format list */ |
| 515 |
int private8; |
| 516 |
int release; /* release of the server */ |
| 517 |
struct _XPrivate *private9, *private10; |
| 518 |
int qlen; /* Length of input event queue */ |
| 519 |
unsigned long last_request_read; /* seq number of last event read */ |
| 520 |
unsigned long request; /* sequence number of last request. */ |
| 521 |
XPointer private11; |
| 522 |
XPointer private12; |
| 523 |
XPointer private13; |
| 524 |
XPointer private14; |
| 525 |
unsigned max_request_size; /* maximum number 32 bit words in request*/ |
| 526 |
struct _XrmHashBucketRec *db; |
| 527 |
int (*private15)( |
| 528 |
struct _XDisplay* |
| 529 |
); |
| 530 |
char *display_name; /* "host:display" string used on this connect*/ |
| 531 |
int default_screen; /* default screen for operations */ |
| 532 |
int nscreens; /* number of screens on this server*/ |
| 533 |
Screen *screens; /* pointer to list of screens */ |
| 534 |
unsigned long motion_buffer; /* size of motion buffer */ |
| 535 |
unsigned long private16; |
| 536 |
int min_keycode; /* minimum defined keycode */ |
| 537 |
int max_keycode; /* maximum defined keycode */ |
| 538 |
XPointer private17; |
| 539 |
XPointer private18; |
| 540 |
int private19; |
| 541 |
char *xdefaults; /* contents of defaults from server */ |
| 542 |
/* there is more to this structure, but it is private to Xlib */ |
| 543 |
} |
| 544 |
#ifdef XLIB_ILLEGAL_ACCESS |
| 545 |
Display, |
| 546 |
#endif |
| 547 |
*_XPrivDisplay; |
| 548 |
|
| 549 |
#undef _XEVENT_ |
| 550 |
#ifndef _XEVENT_ |
| 551 |
/* |
| 552 |
* Definitions of specific events. |
| 553 |
*/ |
| 554 |
typedef struct { |
| 555 |
int type; /* of event */ |
| 556 |
unsigned long serial; /* # of last request processed by server */ |
| 557 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 558 |
Display *display; /* Display the event was read from */ |
| 559 |
Window window; /* "event" window it is reported relative to */ |
| 560 |
Window root; /* root window that the event occurred on */ |
| 561 |
Window subwindow; /* child window */ |
| 562 |
Time time; /* milliseconds */ |
| 563 |
int x, y; /* pointer x, y coordinates in event window */ |
| 564 |
int x_root, y_root; /* coordinates relative to root */ |
| 565 |
unsigned int state; /* key or button mask */ |
| 566 |
unsigned int keycode; /* detail */ |
| 567 |
Bool same_screen; /* same screen flag */ |
| 568 |
} XKeyEvent; |
| 569 |
typedef XKeyEvent XKeyPressedEvent; |
| 570 |
typedef XKeyEvent XKeyReleasedEvent; |
| 571 |
|
| 572 |
typedef struct { |
| 573 |
int type; /* of event */ |
| 574 |
unsigned long serial; /* # of last request processed by server */ |
| 575 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 576 |
Display *display; /* Display the event was read from */ |
| 577 |
Window window; /* "event" window it is reported relative to */ |
| 578 |
Window root; /* root window that the event occurred on */ |
| 579 |
Window subwindow; /* child window */ |
| 580 |
Time time; /* milliseconds */ |
| 581 |
int x, y; /* pointer x, y coordinates in event window */ |
| 582 |
int x_root, y_root; /* coordinates relative to root */ |
| 583 |
unsigned int state; /* key or button mask */ |
| 584 |
unsigned int button; /* detail */ |
| 585 |
Bool same_screen; /* same screen flag */ |
| 586 |
} XButtonEvent; |
| 587 |
typedef XButtonEvent XButtonPressedEvent; |
| 588 |
typedef XButtonEvent XButtonReleasedEvent; |
| 589 |
|
| 590 |
typedef struct { |
| 591 |
int type; /* of event */ |
| 592 |
unsigned long serial; /* # of last request processed by server */ |
| 593 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 594 |
Display *display; /* Display the event was read from */ |
| 595 |
Window window; /* "event" window reported relative to */ |
| 596 |
Window root; /* root window that the event occurred on */ |
| 597 |
Window subwindow; /* child window */ |
| 598 |
Time time; /* milliseconds */ |
| 599 |
int x, y; /* pointer x, y coordinates in event window */ |
| 600 |
int x_root, y_root; /* coordinates relative to root */ |
| 601 |
unsigned int state; /* key or button mask */ |
| 602 |
char is_hint; /* detail */ |
| 603 |
Bool same_screen; /* same screen flag */ |
| 604 |
} XMotionEvent; |
| 605 |
typedef XMotionEvent XPointerMovedEvent; |
| 606 |
|
| 607 |
typedef struct { |
| 608 |
int type; /* of event */ |
| 609 |
unsigned long serial; /* # of last request processed by server */ |
| 610 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 611 |
Display *display; /* Display the event was read from */ |
| 612 |
Window window; /* "event" window reported relative to */ |
| 613 |
Window root; /* root window that the event occurred on */ |
| 614 |
Window subwindow; /* child window */ |
| 615 |
Time time; /* milliseconds */ |
| 616 |
int x, y; /* pointer x, y coordinates in event window */ |
| 617 |
int x_root, y_root; /* coordinates relative to root */ |
| 618 |
int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */ |
| 619 |
int detail; |
| 620 |
/* |
| 621 |
* NotifyAncestor, NotifyVirtual, NotifyInferior, |
| 622 |
* NotifyNonlinear,NotifyNonlinearVirtual |
| 623 |
*/ |
| 624 |
Bool same_screen; /* same screen flag */ |
| 625 |
Bool focus; /* boolean focus */ |
| 626 |
unsigned int state; /* key or button mask */ |
| 627 |
} XCrossingEvent; |
| 628 |
typedef XCrossingEvent XEnterWindowEvent; |
| 629 |
typedef XCrossingEvent XLeaveWindowEvent; |
| 630 |
|
| 631 |
typedef struct { |
| 632 |
int type; /* FocusIn or FocusOut */ |
| 633 |
unsigned long serial; /* # of last request processed by server */ |
| 634 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 635 |
Display *display; /* Display the event was read from */ |
| 636 |
Window window; /* window of event */ |
| 637 |
int mode; /* NotifyNormal, NotifyWhileGrabbed, |
| 638 |
NotifyGrab, NotifyUngrab */ |
| 639 |
int detail; |
| 640 |
/* |
| 641 |
* NotifyAncestor, NotifyVirtual, NotifyInferior, |
| 642 |
* NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer, |
| 643 |
* NotifyPointerRoot, NotifyDetailNone |
| 644 |
*/ |
| 645 |
} XFocusChangeEvent; |
| 646 |
typedef XFocusChangeEvent XFocusInEvent; |
| 647 |
typedef XFocusChangeEvent XFocusOutEvent; |
| 648 |
|
| 649 |
/* generated on EnterWindow and FocusIn when KeyMapState selected */ |
| 650 |
typedef struct { |
| 651 |
int type; |
| 652 |
unsigned long serial; /* # of last request processed by server */ |
| 653 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 654 |
Display *display; /* Display the event was read from */ |
| 655 |
Window window; |
| 656 |
char key_vector[32]; |
| 657 |
} XKeymapEvent; |
| 658 |
|
| 659 |
typedef struct { |
| 660 |
int type; |
| 661 |
unsigned long serial; /* # of last request processed by server */ |
| 662 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 663 |
Display *display; /* Display the event was read from */ |
| 664 |
Window window; |
| 665 |
int x, y; |
| 666 |
int width, height; |
| 667 |
int count; /* if non-zero, at least this many more */ |
| 668 |
} XExposeEvent; |
| 669 |
|
| 670 |
typedef struct { |
| 671 |
int type; |
| 672 |
unsigned long serial; /* # of last request processed by server */ |
| 673 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 674 |
Display *display; /* Display the event was read from */ |
| 675 |
Drawable drawable; |
| 676 |
int x, y; |
| 677 |
int width, height; |
| 678 |
int count; /* if non-zero, at least this many more */ |
| 679 |
int major_code; /* core is CopyArea or CopyPlane */ |
| 680 |
int minor_code; /* not defined in the core */ |
| 681 |
} XGraphicsExposeEvent; |
| 682 |
|
| 683 |
typedef struct { |
| 684 |
int type; |
| 685 |
unsigned long serial; /* # of last request processed by server */ |
| 686 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 687 |
Display *display; /* Display the event was read from */ |
| 688 |
Drawable drawable; |
| 689 |
int major_code; /* core is CopyArea or CopyPlane */ |
| 690 |
int minor_code; /* not defined in the core */ |
| 691 |
} XNoExposeEvent; |
| 692 |
|
| 693 |
typedef struct { |
| 694 |
int type; |
| 695 |
unsigned long serial; /* # of last request processed by server */ |
| 696 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 697 |
Display *display; /* Display the event was read from */ |
| 698 |
Window window; |
| 699 |
int state; /* Visibility state */ |
| 700 |
} XVisibilityEvent; |
| 701 |
|
| 702 |
typedef struct { |
| 703 |
int type; |
| 704 |
unsigned long serial; /* # of last request processed by server */ |
| 705 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 706 |
Display *display; /* Display the event was read from */ |
| 707 |
Window parent; /* parent of the window */ |
| 708 |
Window window; /* window id of window created */ |
| 709 |
int x, y; /* window location */ |
| 710 |
int width, height; /* size of window */ |
| 711 |
int border_width; /* border width */ |
| 712 |
Bool override_redirect; /* creation should be overridden */ |
| 713 |
} XCreateWindowEvent; |
| 714 |
|
| 715 |
typedef struct { |
| 716 |
int type; |
| 717 |
unsigned long serial; /* # of last request processed by server */ |
| 718 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 719 |
Display *display; /* Display the event was read from */ |
| 720 |
Window event; |
| 721 |
Window window; |
| 722 |
} XDestroyWindowEvent; |
| 723 |
|
| 724 |
typedef struct { |
| 725 |
int type; |
| 726 |
unsigned long serial; /* # of last request processed by server */ |
| 727 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 728 |
Display *display; /* Display the event was read from */ |
| 729 |
Window event; |
| 730 |
Window window; |
| 731 |
Bool from_configure; |
| 732 |
} XUnmapEvent; |
| 733 |
|
| 734 |
typedef struct { |
| 735 |
int type; |
| 736 |
unsigned long serial; /* # of last request processed by server */ |
| 737 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 738 |
Display *display; /* Display the event was read from */ |
| 739 |
Window event; |
| 740 |
Window window; |
| 741 |
Bool override_redirect; /* boolean, is override set... */ |
| 742 |
} XMapEvent; |
| 743 |
|
| 744 |
typedef struct { |
| 745 |
int type; |
| 746 |
unsigned long serial; /* # of last request processed by server */ |
| 747 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 748 |
Display *display; /* Display the event was read from */ |
| 749 |
Window parent; |
| 750 |
Window window; |
| 751 |
} XMapRequestEvent; |
| 752 |
|
| 753 |
typedef struct { |
| 754 |
int type; |
| 755 |
unsigned long serial; /* # of last request processed by server */ |
| 756 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 757 |
Display *display; /* Display the event was read from */ |
| 758 |
Window event; |
| 759 |
Window window; |
| 760 |
Window parent; |
| 761 |
int x, y; |
| 762 |
Bool override_redirect; |
| 763 |
} XReparentEvent; |
| 764 |
|
| 765 |
typedef struct { |
| 766 |
int type; |
| 767 |
unsigned long serial; /* # of last request processed by server */ |
| 768 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 769 |
Display *display; /* Display the event was read from */ |
| 770 |
Window event; |
| 771 |
Window window; |
| 772 |
int x, y; |
| 773 |
int width, height; |
| 774 |
int border_width; |
| 775 |
Window above; |
| 776 |
Bool override_redirect; |
| 777 |
} XConfigureEvent; |
| 778 |
|
| 779 |
typedef struct { |
| 780 |
int type; |
| 781 |
unsigned long serial; /* # of last request processed by server */ |
| 782 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 783 |
Display *display; /* Display the event was read from */ |
| 784 |
Window event; |
| 785 |
Window window; |
| 786 |
int x, y; |
| 787 |
} XGravityEvent; |
| 788 |
|
| 789 |
typedef struct { |
| 790 |
int type; |
| 791 |
unsigned long serial; /* # of last request processed by server */ |
| 792 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 793 |
Display *display; /* Display the event was read from */ |
| 794 |
Window window; |
| 795 |
int width, height; |
| 796 |
} XResizeRequestEvent; |
| 797 |
|
| 798 |
typedef struct { |
| 799 |
int type; |
| 800 |
unsigned long serial; /* # of last request processed by server */ |
| 801 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 802 |
Display *display; /* Display the event was read from */ |
| 803 |
Window parent; |
| 804 |
Window window; |
| 805 |
int x, y; |
| 806 |
int width, height; |
| 807 |
int border_width; |
| 808 |
Window above; |
| 809 |
int detail; /* Above, Below, TopIf, BottomIf, Opposite */ |
| 810 |
unsigned long value_mask; |
| 811 |
} XConfigureRequestEvent; |
| 812 |
|
| 813 |
typedef struct { |
| 814 |
int type; |
| 815 |
unsigned long serial; /* # of last request processed by server */ |
| 816 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 817 |
Display *display; /* Display the event was read from */ |
| 818 |
Window event; |
| 819 |
Window window; |
| 820 |
int place; /* PlaceOnTop, PlaceOnBottom */ |
| 821 |
} XCirculateEvent; |
| 822 |
|
| 823 |
typedef struct { |
| 824 |
int type; |
| 825 |
unsigned long serial; /* # of last request processed by server */ |
| 826 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 827 |
Display *display; /* Display the event was read from */ |
| 828 |
Window parent; |
| 829 |
Window window; |
| 830 |
int place; /* PlaceOnTop, PlaceOnBottom */ |
| 831 |
} XCirculateRequestEvent; |
| 832 |
|
| 833 |
typedef struct { |
| 834 |
int type; |
| 835 |
unsigned long serial; /* # of last request processed by server */ |
| 836 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 837 |
Display *display; /* Display the event was read from */ |
| 838 |
Window window; |
| 839 |
Atom atom; |
| 840 |
Time time; |
| 841 |
int state; /* NewValue, Deleted */ |
| 842 |
} XPropertyEvent; |
| 843 |
|
| 844 |
typedef struct { |
| 845 |
int type; |
| 846 |
unsigned long serial; /* # of last request processed by server */ |
| 847 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 848 |
Display *display; /* Display the event was read from */ |
| 849 |
Window window; |
| 850 |
Atom selection; |
| 851 |
Time time; |
| 852 |
} XSelectionClearEvent; |
| 853 |
|
| 854 |
typedef struct { |
| 855 |
int type; |
| 856 |
unsigned long serial; /* # of last request processed by server */ |
| 857 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 858 |
Display *display; /* Display the event was read from */ |
| 859 |
Window owner; |
| 860 |
Window requestor; |
| 861 |
Atom selection; |
| 862 |
Atom target; |
| 863 |
Atom property; |
| 864 |
Time time; |
| 865 |
} XSelectionRequestEvent; |
| 866 |
|
| 867 |
typedef struct { |
| 868 |
int type; |
| 869 |
unsigned long serial; /* # of last request processed by server */ |
| 870 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 871 |
Display *display; /* Display the event was read from */ |
| 872 |
Window requestor; |
| 873 |
Atom selection; |
| 874 |
Atom target; |
| 875 |
Atom property; /* ATOM or None */ |
| 876 |
Time time; |
| 877 |
} XSelectionEvent; |
| 878 |
|
| 879 |
typedef struct { |
| 880 |
int type; |
| 881 |
unsigned long serial; /* # of last request processed by server */ |
| 882 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 883 |
Display *display; /* Display the event was read from */ |
| 884 |
Window window; |
| 885 |
Colormap colormap; /* COLORMAP or None */ |
| 886 |
#if defined(__cplusplus) || defined(c_plusplus) |
| 887 |
Bool c_new; /* C++ */ |
| 888 |
#else |
| 889 |
Bool new; |
| 890 |
#endif |
| 891 |
int state; /* ColormapInstalled, ColormapUninstalled */ |
| 892 |
} XColormapEvent; |
| 893 |
|
| 894 |
typedef struct { |
| 895 |
int type; |
| 896 |
unsigned long serial; /* # of last request processed by server */ |
| 897 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 898 |
Display *display; /* Display the event was read from */ |
| 899 |
Window window; |
| 900 |
Atom message_type; |
| 901 |
int format; |
| 902 |
union { |
| 903 |
char b[20]; |
| 904 |
short s[10]; |
| 905 |
long l[5]; |
| 906 |
} data; |
| 907 |
} XClientMessageEvent; |
| 908 |
|
| 909 |
typedef struct { |
| 910 |
int type; |
| 911 |
unsigned long serial; /* # of last request processed by server */ |
| 912 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 913 |
Display *display; /* Display the event was read from */ |
| 914 |
Window window; /* unused */ |
| 915 |
int request; /* one of MappingModifier, MappingKeyboard, |
| 916 |
MappingPointer */ |
| 917 |
int first_keycode; /* first keycode */ |
| 918 |
int count; /* defines range of change w. first_keycode*/ |
| 919 |
} XMappingEvent; |
| 920 |
|
| 921 |
typedef struct { |
| 922 |
int type; |
| 923 |
Display *display; /* Display the event was read from */ |
| 924 |
XID resourceid; /* resource id */ |
| 925 |
unsigned long serial; /* serial number of failed request */ |
| 926 |
unsigned char error_code; /* error code of failed request */ |
| 927 |
unsigned char request_code; /* Major op-code of failed request */ |
| 928 |
unsigned char minor_code; /* Minor op-code of failed request */ |
| 929 |
} XErrorEvent; |
| 930 |
|
| 931 |
typedef struct { |
| 932 |
int type; |
| 933 |
unsigned long serial; /* # of last request processed by server */ |
| 934 |
Bool send_event; /* true if this came from a SendEvent request */ |
| 935 |
Display *display;/* Display the event was read from */ |
| 936 |
Window window; /* window on which event was requested in event mask */ |
| 937 |
} XAnyEvent; |
| 938 |
|
| 939 |
|
| 940 |
/*************************************************************** |
| 941 |
* |
| 942 |
* GenericEvent. This event is the standard event for all newer extensions. |
| 943 |
*/ |
| 944 |
|
| 945 |
typedef struct |
| 946 |
{ |
| 947 |
int type; /* of event. Always GenericEvent */ |
| 948 |
unsigned long serial; /* # of last request processed */ |
| 949 |
Bool send_event; /* true if from SendEvent request */ |
| 950 |
Display *display; /* Display the event was read from */ |
| 951 |
int extension; /* major opcode of extension that caused the event */ |
| 952 |
int evtype; /* actual event type. */ |
| 953 |
} XGenericEvent; |
| 954 |
|
| 955 |
typedef struct { |
| 956 |
int type; /* of event. Always GenericEvent */ |
| 957 |
unsigned long serial; /* # of last request processed */ |
| 958 |
Bool send_event; /* true if from SendEvent request */ |
| 959 |
Display *display; /* Display the event was read from */ |
| 960 |
int extension; /* major opcode of extension that caused the event */ |
| 961 |
int evtype; /* actual event type. */ |
| 962 |
unsigned int cookie; |
| 963 |
void *data; |
| 964 |
} XGenericEventCookie; |
| 965 |
|
| 966 |
/* |
| 967 |
* this union is defined so Xlib can always use the same sized |
| 968 |
* event structure internally, to avoid memory fragmentation. |
| 969 |
*/ |
| 970 |
typedef union _XEvent { |
| 971 |
int type; /* must not be changed; first element */ |
| 972 |
XAnyEvent xany; |
| 973 |
XKeyEvent xkey; |
| 974 |
XButtonEvent xbutton; |
| 975 |
XMotionEvent xmotion; |
| 976 |
XCrossingEvent xcrossing; |
| 977 |
XFocusChangeEvent xfocus; |
| 978 |
XExposeEvent xexpose; |
| 979 |
XGraphicsExposeEvent xgraphicsexpose; |
| 980 |
XNoExposeEvent xnoexpose; |
| 981 |
XVisibilityEvent xvisibility; |
| 982 |
XCreateWindowEvent xcreatewindow; |
| 983 |
XDestroyWindowEvent xdestroywindow; |
| 984 |
XUnmapEvent xunmap; |
| 985 |
XMapEvent xmap; |
| 986 |
XMapRequestEvent xmaprequest; |
| 987 |
XReparentEvent xreparent; |
| 988 |
XConfigureEvent xconfigure; |
| 989 |
XGravityEvent xgravity; |
| 990 |
XResizeRequestEvent xresizerequest; |
| 991 |
XConfigureRequestEvent xconfigurerequest; |
| 992 |
XCirculateEvent xcirculate; |
| 993 |
XCirculateRequestEvent xcirculaterequest; |
| 994 |
XPropertyEvent xproperty; |
| 995 |
XSelectionClearEvent xselectionclear; |
| 996 |
XSelectionRequestEvent xselectionrequest; |
| 997 |
XSelectionEvent xselection; |
| 998 |
XColormapEvent xcolormap; |
| 999 |
XClientMessageEvent xclient; |
| 1000 |
XMappingEvent xmapping; |
| 1001 |
XErrorEvent xerror; |
| 1002 |
XKeymapEvent xkeymap; |
| 1003 |
XGenericEvent xgeneric; |
| 1004 |
XGenericEventCookie xcookie; |
| 1005 |
long pad[24]; |
| 1006 |
} XEvent; |
| 1007 |
#endif |
| 1008 |
|
| 1009 |
#define XAllocID(dpy) ((*((_XPrivDisplay)(dpy))->resource_alloc)((dpy))) |
| 1010 |
|
| 1011 |
/* |
| 1012 |
* per character font metric information. |
| 1013 |
*/ |
| 1014 |
typedef struct { |
| 1015 |
short lbearing; /* origin to left edge of raster */ |
| 1016 |
short rbearing; /* origin to right edge of raster */ |
| 1017 |
short width; /* advance to next char's origin */ |
| 1018 |
short ascent; /* baseline to top edge of raster */ |
| 1019 |
short descent; /* baseline to bottom edge of raster */ |
| 1020 |
unsigned short attributes; /* per char flags (not predefined) */ |
| 1021 |
} XCharStruct; |
| 1022 |
|
| 1023 |
/* |
| 1024 |
* To allow arbitrary information with fonts, there are additional properties |
| 1025 |
* returned. |
| 1026 |
*/ |
| 1027 |
typedef struct { |
| 1028 |
Atom name; |
| 1029 |
unsigned long card32; |
| 1030 |
} XFontProp; |
| 1031 |
|
| 1032 |
typedef struct { |
| 1033 |
XExtData *ext_data; /* hook for extension to hang data */ |
| 1034 |
Font fid; /* Font id for this font */ |
| 1035 |
unsigned direction; /* hint about direction the font is painted */ |
| 1036 |
unsigned min_char_or_byte2;/* first character */ |
| 1037 |
unsigned max_char_or_byte2;/* last character */ |
| 1038 |
unsigned min_byte1; /* first row that exists */ |
| 1039 |
unsigned max_byte1; /* last row that exists */ |
| 1040 |
Bool all_chars_exist;/* flag if all characters have non-zero size*/ |
| 1041 |
unsigned default_char; /* char to print for undefined character */ |
| 1042 |
int n_properties; /* how many properties there are */ |
| 1043 |
XFontProp *properties; /* pointer to array of additional properties*/ |
| 1044 |
XCharStruct min_bounds; /* minimum bounds over all existing char*/ |
| 1045 |
XCharStruct max_bounds; /* maximum bounds over all existing char*/ |
| 1046 |
XCharStruct *per_char; /* first_char to last_char information */ |
| 1047 |
int ascent; /* log. extent above baseline for spacing */ |
| 1048 |
int descent; /* log. descent below baseline for spacing */ |
| 1049 |
} XFontStruct; |
| 1050 |
|
| 1051 |
/* |
| 1052 |
* PolyText routines take these as arguments. |
| 1053 |
*/ |
| 1054 |
typedef struct { |
| 1055 |
char *chars; /* pointer to string */ |
| 1056 |
int nchars; /* number of characters */ |
| 1057 |
int delta; /* delta between strings */ |
| 1058 |
Font font; /* font to print it in, None don't change */ |
| 1059 |
} XTextItem; |
| 1060 |
|
| 1061 |
typedef struct { /* normal 16 bit characters are two bytes */ |
| 1062 |
unsigned char byte1; |
| 1063 |
unsigned char byte2; |
| 1064 |
} XChar2b; |
| 1065 |
|
| 1066 |
typedef struct { |
| 1067 |
XChar2b *chars; /* two byte characters */ |
| 1068 |
int nchars; /* number of characters */ |
| 1069 |
int delta; /* delta between strings */ |
| 1070 |
Font font; /* font to print it in, None don't change */ |
| 1071 |
} XTextItem16; |
| 1072 |
|
| 1073 |
|
| 1074 |
typedef union { Display *display; |
| 1075 |
GC gc; |
| 1076 |
Visual *visual; |
| 1077 |
Screen *screen; |
| 1078 |
ScreenFormat *pixmap_format; |
| 1079 |
XFontStruct *font; } XEDataObject; |
| 1080 |
|
| 1081 |
typedef struct { |
| 1082 |
XRectangle max_ink_extent; |
| 1083 |
XRectangle max_logical_extent; |
| 1084 |
} XFontSetExtents; |
| 1085 |
|
| 1086 |
/* unused: |
| 1087 |
typedef void (*XOMProc)(); |
| 1088 |
*/ |
| 1089 |
|
| 1090 |
typedef struct _XOM *XOM; |
| 1091 |
typedef struct _XOC *XOC, *XFontSet; |
| 1092 |
|
| 1093 |
typedef struct { |
| 1094 |
char *chars; |
| 1095 |
int nchars; |
| 1096 |
int delta; |
| 1097 |
XFontSet font_set; |
| 1098 |
} XmbTextItem; |
| 1099 |
|
| 1100 |
typedef struct { |
| 1101 |
wchar_t *chars; |
| 1102 |
int nchars; |
| 1103 |
int delta; |
| 1104 |
XFontSet font_set; |
| 1105 |
} XwcTextItem; |
| 1106 |
|
| 1107 |
#define XNRequiredCharSet "requiredCharSet" |
| 1108 |
#define XNQueryOrientation "queryOrientation" |
| 1109 |
#define XNBaseFontName "baseFontName" |
| 1110 |
#define XNOMAutomatic "omAutomatic" |
| 1111 |
#define XNMissingCharSet "missingCharSet" |
| 1112 |
#define XNDefaultString "defaultString" |
| 1113 |
#define XNOrientation "orientation" |
| 1114 |
#define XNDirectionalDependentDrawing "directionalDependentDrawing" |
| 1115 |
#define XNContextualDrawing "contextualDrawing" |
| 1116 |
#define XNFontInfo "fontInfo" |
| 1117 |
|
| 1118 |
typedef struct { |
| 1119 |
int charset_count; |
| 1120 |
char **charset_list; |
| 1121 |
} XOMCharSetList; |
| 1122 |
|
| 1123 |
typedef enum { |
| 1124 |
XOMOrientation_LTR_TTB, |
| 1125 |
XOMOrientation_RTL_TTB, |
| 1126 |
XOMOrientation_TTB_LTR, |
| 1127 |
XOMOrientation_TTB_RTL, |
| 1128 |
XOMOrientation_Context |
| 1129 |
} XOrientation; |
| 1130 |
|
| 1131 |
typedef struct { |
| 1132 |
int num_orientation; |
| 1133 |
XOrientation *orientation; /* Input Text description */ |
| 1134 |
} XOMOrientation; |
| 1135 |
|
| 1136 |
typedef struct { |
| 1137 |
int num_font; |
| 1138 |
XFontStruct **font_struct_list; |
| 1139 |
char **font_name_list; |
| 1140 |
} XOMFontInfo; |
| 1141 |
|
| 1142 |
typedef struct _XIM *XIM; |
| 1143 |
typedef struct _XIC *XIC; |
| 1144 |
|
| 1145 |
typedef void (*XIMProc)( |
| 1146 |
XIM, |
| 1147 |
XPointer, |
| 1148 |
XPointer |
| 1149 |
); |
| 1150 |
|
| 1151 |
typedef Bool (*XICProc)( |
| 1152 |
XIC, |
| 1153 |
XPointer, |
| 1154 |
XPointer |
| 1155 |
); |
| 1156 |
|
| 1157 |
typedef void (*XIDProc)( |
| 1158 |
Display*, |
| 1159 |
XPointer, |
| 1160 |
XPointer |
| 1161 |
); |
| 1162 |
|
| 1163 |
typedef unsigned long XIMStyle; |
| 1164 |
|
| 1165 |
typedef struct { |
| 1166 |
unsigned short count_styles; |
| 1167 |
XIMStyle *supported_styles; |
| 1168 |
} XIMStyles; |
| 1169 |
|
| 1170 |
#define XIMPreeditArea 0x0001L |
| 1171 |
#define XIMPreeditCallbacks 0x0002L |
| 1172 |
#define XIMPreeditPosition 0x0004L |
| 1173 |
#define XIMPreeditNothing 0x0008L |
| 1174 |
#define XIMPreeditNone 0x0010L |
| 1175 |
#define XIMStatusArea 0x0100L |
| 1176 |
#define XIMStatusCallbacks 0x0200L |
| 1177 |
#define XIMStatusNothing 0x0400L |
| 1178 |
#define XIMStatusNone 0x0800L |
| 1179 |
|
| 1180 |
#define XNVaNestedList "XNVaNestedList" |
| 1181 |
#define XNQueryInputStyle "queryInputStyle" |
| 1182 |
#define XNClientWindow "clientWindow" |
| 1183 |
#define XNInputStyle "inputStyle" |
| 1184 |
#define XNFocusWindow "focusWindow" |
| 1185 |
#define XNResourceName "resourceName" |
| 1186 |
#define XNResourceClass "resourceClass" |
| 1187 |
#define XNGeometryCallback "geometryCallback" |
| 1188 |
#define XNDestroyCallback "destroyCallback" |
| 1189 |
#define XNFilterEvents "filterEvents" |
| 1190 |
#define XNPreeditStartCallback "preeditStartCallback" |
| 1191 |
#define XNPreeditDoneCallback "preeditDoneCallback" |
| 1192 |
#define XNPreeditDrawCallback "preeditDrawCallback" |
| 1193 |
#define XNPreeditCaretCallback "preeditCaretCallback" |
| 1194 |
#define XNPreeditStateNotifyCallback "preeditStateNotifyCallback" |
| 1195 |
#define XNPreeditAttributes "preeditAttributes" |
| 1196 |
#define XNStatusStartCallback "statusStartCallback" |
| 1197 |
#define XNStatusDoneCallback "statusDoneCallback" |
| 1198 |
#define XNStatusDrawCallback "statusDrawCallback" |
| 1199 |
#define XNStatusAttributes "statusAttributes" |
| 1200 |
#define XNArea "area" |
| 1201 |
#define XNAreaNeeded "areaNeeded" |
| 1202 |
#define XNSpotLocation "spotLocation" |
| 1203 |
#define XNColormap "colorMap" |
| 1204 |
#define XNStdColormap "stdColorMap" |
| 1205 |
#define XNForeground "foreground" |
| 1206 |
#define XNBackground "background" |
| 1207 |
#define XNBackgroundPixmap "backgroundPixmap" |
| 1208 |
#define XNFontSet "fontSet" |
| 1209 |
#define XNLineSpace "lineSpace" |
| 1210 |
#define XNCursor "cursor" |
| 1211 |
|
| 1212 |
#define XNQueryIMValuesList "queryIMValuesList" |
| 1213 |
#define XNQueryICValuesList "queryICValuesList" |
| 1214 |
#define XNVisiblePosition "visiblePosition" |
| 1215 |
#define XNR6PreeditCallback "r6PreeditCallback" |
| 1216 |
#define XNStringConversionCallback "stringConversionCallback" |
| 1217 |
#define XNStringConversion "stringConversion" |
| 1218 |
#define XNResetState "resetState" |
| 1219 |
#define XNHotKey "hotKey" |
| 1220 |
#define XNHotKeyState "hotKeyState" |
| 1221 |
#define XNPreeditState "preeditState" |
| 1222 |
#define XNSeparatorofNestedList "separatorofNestedList" |
| 1223 |
|
| 1224 |
#define XBufferOverflow -1 |
| 1225 |
#define XLookupNone 1 |
| 1226 |
#define XLookupChars 2 |
| 1227 |
#define XLookupKeySym 3 |
| 1228 |
#define XLookupBoth 4 |
| 1229 |
|
| 1230 |
typedef void *XVaNestedList; |
| 1231 |
|
| 1232 |
typedef struct { |
| 1233 |
XPointer client_data; |
| 1234 |
XIMProc callback; |
| 1235 |
} XIMCallback; |
| 1236 |
|
| 1237 |
typedef struct { |
| 1238 |
XPointer client_data; |
| 1239 |
XICProc callback; |
| 1240 |
} XICCallback; |
| 1241 |
|
| 1242 |
typedef unsigned long XIMFeedback; |
| 1243 |
|
| 1244 |
#define XIMReverse 1L |
| 1245 |
#define XIMUnderline (1L<<1) |
| 1246 |
#define XIMHighlight (1L<<2) |
| 1247 |
#define XIMPrimary (1L<<5) |
| 1248 |
#define XIMSecondary (1L<<6) |
| 1249 |
#define XIMTertiary (1L<<7) |
| 1250 |
#define XIMVisibleToForward (1L<<8) |
| 1251 |
#define XIMVisibleToBackword (1L<<9) |
| 1252 |
#define XIMVisibleToCenter (1L<<10) |
| 1253 |
|
| 1254 |
typedef struct _XIMText { |
| 1255 |
unsigned short length; |
| 1256 |
XIMFeedback *feedback; |
| 1257 |
Bool encoding_is_wchar; |
| 1258 |
union { |
| 1259 |
char *multi_byte; |
| 1260 |
wchar_t *wide_char; |
| 1261 |
} string; |
| 1262 |
} XIMText; |
| 1263 |
|
| 1264 |
typedef unsigned long XIMPreeditState; |
| 1265 |
|
| 1266 |
#define XIMPreeditUnKnown 0L |
| 1267 |
#define XIMPreeditEnable 1L |
| 1268 |
#define XIMPreeditDisable (1L<<1) |
| 1269 |
|
| 1270 |
typedef struct _XIMPreeditStateNotifyCallbackStruct { |
| 1271 |
XIMPreeditState state; |
| 1272 |
} XIMPreeditStateNotifyCallbackStruct; |
| 1273 |
|
| 1274 |
typedef unsigned long XIMResetState; |
| 1275 |
|
| 1276 |
#define XIMInitialState 1L |
| 1277 |
#define XIMPreserveState (1L<<1) |
| 1278 |
|
| 1279 |
typedef unsigned long XIMStringConversionFeedback; |
| 1280 |
|
| 1281 |
#define XIMStringConversionLeftEdge (0x00000001) |
| 1282 |
#define XIMStringConversionRightEdge (0x00000002) |
| 1283 |
#define XIMStringConversionTopEdge (0x00000004) |
| 1284 |
#define XIMStringConversionBottomEdge (0x00000008) |
| 1285 |
#define XIMStringConversionConcealed (0x00000010) |
| 1286 |
#define XIMStringConversionWrapped (0x00000020) |
| 1287 |
|
| 1288 |
typedef struct _XIMStringConversionText { |
| 1289 |
unsigned short length; |
| 1290 |
XIMStringConversionFeedback *feedback; |
| 1291 |
Bool encoding_is_wchar; |
| 1292 |
union { |
| 1293 |
char *mbs; |
| 1294 |
wchar_t *wcs; |
| 1295 |
} string; |
| 1296 |
} XIMStringConversionText; |
| 1297 |
|
| 1298 |
typedef unsigned short XIMStringConversionPosition; |
| 1299 |
|
| 1300 |
typedef unsigned short XIMStringConversionType; |
| 1301 |
|
| 1302 |
#define XIMStringConversionBuffer (0x0001) |
| 1303 |
#define XIMStringConversionLine (0x0002) |
| 1304 |
#define XIMStringConversionWord (0x0003) |
| 1305 |
#define XIMStringConversionChar (0x0004) |
| 1306 |
|
| 1307 |
typedef unsigned short XIMStringConversionOperation; |
| 1308 |
|
| 1309 |
#define XIMStringConversionSubstitution (0x0001) |
| 1310 |
#define XIMStringConversionRetrieval (0x0002) |
| 1311 |
|
| 1312 |
typedef enum { |
| 1313 |
XIMForwardChar, XIMBackwardChar, |
| 1314 |
XIMForwardWord, XIMBackwardWord, |
| 1315 |
XIMCaretUp, XIMCaretDown, |
| 1316 |
XIMNextLine, XIMPreviousLine, |
| 1317 |
XIMLineStart, XIMLineEnd, |
| 1318 |
XIMAbsolutePosition, |
| 1319 |
XIMDontChange |
| 1320 |
} XIMCaretDirection; |
| 1321 |
|
| 1322 |
typedef struct _XIMStringConversionCallbackStruct { |
| 1323 |
XIMStringConversionPosition position; |
| 1324 |
XIMCaretDirection direction; |
| 1325 |
XIMStringConversionOperation operation; |
| 1326 |
unsigned short factor; |
| 1327 |
XIMStringConversionText *text; |
| 1328 |
} XIMStringConversionCallbackStruct; |
| 1329 |
|
| 1330 |
typedef struct _XIMPreeditDrawCallbackStruct { |
| 1331 |
int caret; /* Cursor offset within pre-edit string */ |
| 1332 |
int chg_first; /* Starting change position */ |
| 1333 |
int chg_length; /* Length of the change in character count */ |
| 1334 |
XIMText *text; |
| 1335 |
} XIMPreeditDrawCallbackStruct; |
| 1336 |
|
| 1337 |
typedef enum { |
| 1338 |
XIMIsInvisible, /* Disable caret feedback */ |
| 1339 |
XIMIsPrimary, /* UI defined caret feedback */ |
| 1340 |
XIMIsSecondary /* UI defined caret feedback */ |
| 1341 |
} XIMCaretStyle; |
| 1342 |
|
| 1343 |
typedef struct _XIMPreeditCaretCallbackStruct { |
| 1344 |
int position; /* Caret offset within pre-edit string */ |
| 1345 |
XIMCaretDirection direction; /* Caret moves direction */ |
| 1346 |
XIMCaretStyle style; /* Feedback of the caret */ |
| 1347 |
} XIMPreeditCaretCallbackStruct; |
| 1348 |
|
| 1349 |
typedef enum { |
| 1350 |
XIMTextType, |
| 1351 |
XIMBitmapType |
| 1352 |
} XIMStatusDataType; |
| 1353 |
|
| 1354 |
typedef struct _XIMStatusDrawCallbackStruct { |
| 1355 |
XIMStatusDataType type; |
| 1356 |
union { |
| 1357 |
XIMText *text; |
| 1358 |
Pixmap bitmap; |
| 1359 |
} data; |
| 1360 |
} XIMStatusDrawCallbackStruct; |
| 1361 |
|
| 1362 |
typedef struct _XIMHotKeyTrigger { |
| 1363 |
KeySym keysym; |
| 1364 |
int modifier; |
| 1365 |
int modifier_mask; |
| 1366 |
} XIMHotKeyTrigger; |
| 1367 |
|
| 1368 |
typedef struct _XIMHotKeyTriggers { |
| 1369 |
int num_hot_key; |
| 1370 |
XIMHotKeyTrigger *key; |
| 1371 |
} XIMHotKeyTriggers; |
| 1372 |
|
| 1373 |
typedef unsigned long XIMHotKeyState; |
| 1374 |
|
| 1375 |
#define XIMHotKeyStateON (0x0001L) |
| 1376 |
#define XIMHotKeyStateOFF (0x0002L) |
| 1377 |
|
| 1378 |
typedef struct { |
| 1379 |
unsigned short count_values; |
| 1380 |
char **supported_values; |
| 1381 |
} XIMValuesList; |
| 1382 |
|
| 1383 |
_XFUNCPROTOBEGIN |
| 1384 |
|
| 1385 |
#if defined(WIN32) && !defined(_XLIBINT_) |
| 1386 |
#define _Xdebug (*_Xdebug_p) |
| 1387 |
#endif |
| 1388 |
|
| 1389 |
extern int _Xdebug; |
| 1390 |
|
| 1391 |
extern XFontStruct *XLoadQueryFont( |
| 1392 |
Display* /* display */, |
| 1393 |
_Xconst char* /* name */ |
| 1394 |
); |
| 1395 |
|
| 1396 |
extern XFontStruct *XQueryFont( |
| 1397 |
Display* /* display */, |
| 1398 |
XID /* font_ID */ |
| 1399 |
); |
| 1400 |
|
| 1401 |
|
| 1402 |
extern XTimeCoord *XGetMotionEvents( |
| 1403 |
Display* /* display */, |
| 1404 |
Window /* w */, |
| 1405 |
Time /* start */, |
| 1406 |
Time /* stop */, |
| 1407 |
int* /* nevents_return */ |
| 1408 |
); |
| 1409 |
|
| 1410 |
extern XModifierKeymap *XDeleteModifiermapEntry( |
| 1411 |
XModifierKeymap* /* modmap */, |
| 1412 |
#if NeedWidePrototypes |
| 1413 |
unsigned int /* keycode_entry */, |
| 1414 |
#else |
| 1415 |
KeyCode /* keycode_entry */, |
| 1416 |
#endif |
| 1417 |
int /* modifier */ |
| 1418 |
); |
| 1419 |
|
| 1420 |
extern XModifierKeymap *XGetModifierMapping( |
| 1421 |
Display* /* display */ |
| 1422 |
); |
| 1423 |
|
| 1424 |
extern XModifierKeymap *XInsertModifiermapEntry( |
| 1425 |
XModifierKeymap* /* modmap */, |
| 1426 |
#if NeedWidePrototypes |
| 1427 |
unsigned int /* keycode_entry */, |
| 1428 |
#else |
| 1429 |
KeyCode /* keycode_entry */, |
| 1430 |
#endif |
| 1431 |
int /* modifier */ |
| 1432 |
); |
| 1433 |
|
| 1434 |
extern XModifierKeymap *XNewModifiermap( |
| 1435 |
int /* max_keys_per_mod */ |
| 1436 |
); |
| 1437 |
|
| 1438 |
extern XImage *XCreateImage( |
| 1439 |
Display* /* display */, |
| 1440 |
Visual* /* visual */, |
| 1441 |
unsigned int /* depth */, |
| 1442 |
int /* format */, |
| 1443 |
int /* offset */, |
| 1444 |
char* /* data */, |
| 1445 |
unsigned int /* width */, |
| 1446 |
unsigned int /* height */, |
| 1447 |
int /* bitmap_pad */, |
| 1448 |
int /* bytes_per_line */ |
| 1449 |
); |
| 1450 |
extern Status XInitImage( |
| 1451 |
XImage* /* image */ |
| 1452 |
); |
| 1453 |
extern XImage *XGetImage( |
| 1454 |
Display* /* display */, |
| 1455 |
Drawable /* d */, |
| 1456 |
int /* x */, |
| 1457 |
int /* y */, |
| 1458 |
unsigned int /* width */, |
| 1459 |
unsigned int /* height */, |
| 1460 |
unsigned long /* plane_mask */, |
| 1461 |
int /* format */ |
| 1462 |
); |
| 1463 |
extern XImage *XGetSubImage( |
| 1464 |
Display* /* display */, |
| 1465 |
Drawable /* d */, |
| 1466 |
int /* x */, |
| 1467 |
int /* y */, |
| 1468 |
unsigned int /* width */, |
| 1469 |
unsigned int /* height */, |
| 1470 |
unsigned long /* plane_mask */, |
| 1471 |
int /* format */, |
| 1472 |
XImage* /* dest_image */, |
| 1473 |
int /* dest_x */, |
| 1474 |
int /* dest_y */ |
| 1475 |
); |
| 1476 |
|
| 1477 |
/* |
| 1478 |
* X function declarations. |
| 1479 |
*/ |
| 1480 |
extern Display *XOpenDisplay( |
| 1481 |
_Xconst char* /* display_name */ |
| 1482 |
); |
| 1483 |
|
| 1484 |
extern void XrmInitialize( |
| 1485 |
void |
| 1486 |
); |
| 1487 |
|
| 1488 |
extern char *XFetchBytes( |
| 1489 |
Display* /* display */, |
| 1490 |
int* /* nbytes_return */ |
| 1491 |
); |
| 1492 |
extern char *XFetchBuffer( |
| 1493 |
Display* /* display */, |
| 1494 |
int* /* nbytes_return */, |
| 1495 |
int /* buffer */ |
| 1496 |
); |
| 1497 |
extern char *XGetAtomName( |
| 1498 |
Display* /* display */, |
| 1499 |
Atom /* atom */ |
| 1500 |
); |
| 1501 |
extern Status XGetAtomNames( |
| 1502 |
Display* /* dpy */, |
| 1503 |
Atom* /* atoms */, |
| 1504 |
int /* count */, |
| 1505 |
char** /* names_return */ |
| 1506 |
); |
| 1507 |
extern char *XGetDefault( |
| 1508 |
Display* /* display */, |
| 1509 |
_Xconst char* /* program */, |
| 1510 |
_Xconst char* /* option */ |
| 1511 |
); |
| 1512 |
extern char *XDisplayName( |
| 1513 |
_Xconst char* /* string */ |
| 1514 |
); |
| 1515 |
extern char *XKeysymToString( |
| 1516 |
KeySym /* keysym */ |
| 1517 |
); |
| 1518 |
|
| 1519 |
extern int (*XSynchronize( |
| 1520 |
Display* /* display */, |
| 1521 |
Bool /* onoff */ |
| 1522 |
))( |
| 1523 |
Display* /* display */ |
| 1524 |
); |
| 1525 |
extern int (*XSetAfterFunction( |
| 1526 |
Display* /* display */, |
| 1527 |
int (*) ( |
| 1528 |
Display* /* display */ |
| 1529 |
) /* procedure */ |
| 1530 |
))( |
| 1531 |
Display* /* display */ |
| 1532 |
); |
| 1533 |
extern Atom XInternAtom( |
| 1534 |
Display* /* display */, |
| 1535 |
_Xconst char* /* atom_name */, |
| 1536 |
Bool /* only_if_exists */ |
| 1537 |
); |
| 1538 |
extern Status XInternAtoms( |
| 1539 |
Display* /* dpy */, |
| 1540 |
char** /* names */, |
| 1541 |
int /* count */, |
| 1542 |
Bool /* onlyIfExists */, |
| 1543 |
Atom* /* atoms_return */ |
| 1544 |
); |
| 1545 |
extern Colormap XCopyColormapAndFree( |
| 1546 |
Display* /* display */, |
| 1547 |
Colormap /* colormap */ |
| 1548 |
); |
| 1549 |
extern Colormap XCreateColormap( |
| 1550 |
Display* /* display */, |
| 1551 |
Window /* w */, |
| 1552 |
Visual* /* visual */, |
| 1553 |
int /* alloc */ |
| 1554 |
); |
| 1555 |
extern Cursor XCreatePixmapCursor( |
| 1556 |
Display* /* display */, |
| 1557 |
Pixmap /* source */, |
| 1558 |
Pixmap /* mask */, |
| 1559 |
XColor* /* foreground_color */, |
| 1560 |
XColor* /* background_color */, |
| 1561 |
unsigned int /* x */, |
| 1562 |
unsigned int /* y */ |
| 1563 |
); |
| 1564 |
extern Cursor XCreateGlyphCursor( |
| 1565 |
Display* /* display */, |
| 1566 |
Font /* source_font */, |
| 1567 |
Font /* mask_font */, |
| 1568 |
unsigned int /* source_char */, |
| 1569 |
unsigned int /* mask_char */, |
| 1570 |
XColor _Xconst * /* foreground_color */, |
| 1571 |
XColor _Xconst * /* background_color */ |
| 1572 |
); |
| 1573 |
extern Cursor XCreateFontCursor( |
| 1574 |
Display* /* display */, |
| 1575 |
unsigned int /* shape */ |
| 1576 |
); |
| 1577 |
extern Font XLoadFont( |
| 1578 |
Display* /* display */, |
| 1579 |
_Xconst char* /* name */ |
| 1580 |
); |
| 1581 |
extern GC XCreateGC( |
| 1582 |
Display* /* display */, |
| 1583 |
Drawable /* d */, |
| 1584 |
unsigned long /* valuemask */, |
| 1585 |
XGCValues* /* values */ |
| 1586 |
); |
| 1587 |
extern GContext XGContextFromGC( |
| 1588 |
GC /* gc */ |
| 1589 |
); |
| 1590 |
extern void XFlushGC( |
| 1591 |
Display* /* display */, |
| 1592 |
GC /* gc */ |
| 1593 |
); |
| 1594 |
extern Pixmap XCreatePixmap( |
| 1595 |
Display* /* display */, |
| 1596 |
Drawable /* d */, |
| 1597 |
unsigned int /* width */, |
| 1598 |
unsigned int /* height */, |
| 1599 |
unsigned int /* depth */ |
| 1600 |
); |
| 1601 |
extern Pixmap XCreateBitmapFromData( |
| 1602 |
Display* /* display */, |
| 1603 |
Drawable /* d */, |
| 1604 |
_Xconst char* /* data */, |
| 1605 |
unsigned int /* width */, |
| 1606 |
unsigned int /* height */ |
| 1607 |
); |
| 1608 |
extern Pixmap XCreatePixmapFromBitmapData( |
| 1609 |
Display* /* display */, |
| 1610 |
Drawable /* d */, |
| 1611 |
char* /* data */, |
| 1612 |
unsigned int /* width */, |
| 1613 |
unsigned int /* height */, |
| 1614 |
unsigned long /* fg */, |
| 1615 |
unsigned long /* bg */, |
| 1616 |
unsigned int /* depth */ |
| 1617 |
); |
| 1618 |
extern Window XCreateSimpleWindow( |
| 1619 |
Display* /* display */, |
| 1620 |
Window /* parent */, |
| 1621 |
int /* x */, |
| 1622 |
int /* y */, |
| 1623 |
unsigned int /* width */, |
| 1624 |
unsigned int /* height */, |
| 1625 |
unsigned int /* border_width */, |
| 1626 |
unsigned long /* border */, |
| 1627 |
unsigned long /* background */ |
| 1628 |
); |
| 1629 |
extern Window XGetSelectionOwner( |
| 1630 |
Display* /* display */, |
| 1631 |
Atom /* selection */ |
| 1632 |
); |
| 1633 |
extern Window XCreateWindow( |
| 1634 |
Display* /* display */, |
| 1635 |
Window /* parent */, |
| 1636 |
int /* x */, |
| 1637 |
int /* y */, |
| 1638 |
unsigned int /* width */, |
| 1639 |
unsigned int /* height */, |
| 1640 |
unsigned int /* border_width */, |
| 1641 |
int /* depth */, |
| 1642 |
unsigned int /* class */, |
| 1643 |
Visual* /* visual */, |
| 1644 |
unsigned long /* valuemask */, |
| 1645 |
XSetWindowAttributes* /* attributes */ |
| 1646 |
); |
| 1647 |
extern Colormap *XListInstalledColormaps( |
| 1648 |
Display* /* display */, |
| 1649 |
Window /* w */, |
| 1650 |
int* /* num_return */ |
| 1651 |
); |
| 1652 |
extern char **XListFonts( |
| 1653 |
Display* /* display */, |
| 1654 |
_Xconst char* /* pattern */, |
| 1655 |
int /* maxnames */, |
| 1656 |
int* /* actual_count_return */ |
| 1657 |
); |
| 1658 |
extern char **XListFontsWithInfo( |
| 1659 |
Display* /* display */, |
| 1660 |
_Xconst char* /* pattern */, |
| 1661 |
int /* maxnames */, |
| 1662 |
int* /* count_return */, |
| 1663 |
XFontStruct** /* info_return */ |
| 1664 |
); |
| 1665 |
extern char **XGetFontPath( |
| 1666 |
Display* /* display */, |
| 1667 |
int* /* npaths_return */ |
| 1668 |
); |
| 1669 |
extern char **XListExtensions( |
| 1670 |
Display* /* display */, |
| 1671 |
int* /* nextensions_return */ |
| 1672 |
); |
| 1673 |
extern Atom *XListProperties( |
| 1674 |
Display* /* display */, |
| 1675 |
Window /* w */, |
| 1676 |
int* /* num_prop_return */ |
| 1677 |
); |
| 1678 |
extern XHostAddress *XListHosts( |
| 1679 |
Display* /* display */, |
| 1680 |
int* /* nhosts_return */, |
| 1681 |
Bool* /* state_return */ |
| 1682 |
); |
| 1683 |
|
| 1684 |
/* this is marked as_X_DEPRECATED in Xorg's upstream libX11 but NX |
| 1685 |
needs it for performance reasons. Should be moved into the |
| 1686 |
server. */ |
| 1687 |
extern KeySym XKeycodeToKeysym( |
| 1688 |
Display* /* display */, |
| 1689 |
#if NeedWidePrototypes |
| 1690 |
unsigned int /* keycode */, |
| 1691 |
#else |
| 1692 |
KeyCode /* keycode */, |
| 1693 |
#endif |
| 1694 |
int /* index */ |
| 1695 |
); |
| 1696 |
extern KeySym XLookupKeysym( |
| 1697 |
XKeyEvent* /* key_event */, |
| 1698 |
int /* index */ |
| 1699 |
); |
| 1700 |
extern KeySym *XGetKeyboardMapping( |
| 1701 |
Display* /* display */, |
| 1702 |
#if NeedWidePrototypes |
| 1703 |
unsigned int /* first_keycode */, |
| 1704 |
#else |
| 1705 |
KeyCode /* first_keycode */, |
| 1706 |
#endif |
| 1707 |
int /* keycode_count */, |
| 1708 |
int* /* keysyms_per_keycode_return */ |
| 1709 |
); |
| 1710 |
extern KeySym XStringToKeysym( |
| 1711 |
_Xconst char* /* string */ |
| 1712 |
); |
| 1713 |
extern long XMaxRequestSize( |
| 1714 |
Display* /* display */ |
| 1715 |
); |
| 1716 |
extern long XExtendedMaxRequestSize( |
| 1717 |
Display* /* display */ |
| 1718 |
); |
| 1719 |
extern char *XResourceManagerString( |
| 1720 |
Display* /* display */ |
| 1721 |
); |
| 1722 |
extern char *XScreenResourceString( |
| 1723 |
Screen* /* screen */ |
| 1724 |
); |
| 1725 |
extern unsigned long XDisplayMotionBufferSize( |
| 1726 |
Display* /* display */ |
| 1727 |
); |
| 1728 |
extern VisualID XVisualIDFromVisual( |
| 1729 |
Visual* /* visual */ |
| 1730 |
); |
| 1731 |
|
| 1732 |
/* multithread routines */ |
| 1733 |
|
| 1734 |
extern Status XInitThreads( |
| 1735 |
void |
| 1736 |
); |
| 1737 |
|
| 1738 |
extern void XLockDisplay( |
| 1739 |
Display* /* display */ |
| 1740 |
); |
| 1741 |
|
| 1742 |
extern void XUnlockDisplay( |
| 1743 |
Display* /* display */ |
| 1744 |
); |
| 1745 |
|
| 1746 |
/* routines for dealing with extensions */ |
| 1747 |
|
| 1748 |
extern XExtCodes *XInitExtension( |
| 1749 |
Display* /* display */, |
| 1750 |
_Xconst char* /* name */ |
| 1751 |
); |
| 1752 |
|
| 1753 |
extern XExtCodes *XAddExtension( |
| 1754 |
Display* /* display */ |
| 1755 |
); |
| 1756 |
extern XExtData *XFindOnExtensionList( |
| 1757 |
XExtData** /* structure */, |
| 1758 |
int /* number */ |
| 1759 |
); |
| 1760 |
extern XExtData **XEHeadOfExtensionList( |
| 1761 |
XEDataObject /* object */ |
| 1762 |
); |
| 1763 |
|
| 1764 |
/* these are routines for which there are also macros */ |
| 1765 |
extern Window XRootWindow( |
| 1766 |
Display* /* display */, |
| 1767 |
int /* screen_number */ |
| 1768 |
); |
| 1769 |
extern Window XDefaultRootWindow( |
| 1770 |
Display* /* display */ |
| 1771 |
); |
| 1772 |
extern Window XRootWindowOfScreen( |
| 1773 |
Screen* /* screen */ |
| 1774 |
); |
| 1775 |
extern Visual *XDefaultVisual( |
| 1776 |
Display* /* display */, |
| 1777 |
int /* screen_number */ |
| 1778 |
); |
| 1779 |
extern Visual *XDefaultVisualOfScreen( |
| 1780 |
Screen* /* screen */ |
| 1781 |
); |
| 1782 |
extern GC XDefaultGC( |
| 1783 |
Display* /* display */, |
| 1784 |
int /* screen_number */ |
| 1785 |
); |
| 1786 |
extern GC XDefaultGCOfScreen( |
| 1787 |
Screen* /* screen */ |
| 1788 |
); |
| 1789 |
extern unsigned long XBlackPixel( |
| 1790 |
Display* /* display */, |
| 1791 |
int /* screen_number */ |
| 1792 |
); |
| 1793 |
extern unsigned long XWhitePixel( |
| 1794 |
Display* /* display */, |
| 1795 |
int /* screen_number */ |
| 1796 |
); |
| 1797 |
extern unsigned long XAllPlanes( |
| 1798 |
void |
| 1799 |
); |
| 1800 |
extern unsigned long XBlackPixelOfScreen( |
| 1801 |
Screen* /* screen */ |
| 1802 |
); |
| 1803 |
extern unsigned long XWhitePixelOfScreen( |
| 1804 |
Screen* /* screen */ |
| 1805 |
); |
| 1806 |
extern unsigned long XNextRequest( |
| 1807 |
Display* /* display */ |
| 1808 |
); |
| 1809 |
extern unsigned long XLastKnownRequestProcessed( |
| 1810 |
Display* /* display */ |
| 1811 |
); |
| 1812 |
extern char *XServerVendor( |
| 1813 |
Display* /* display */ |
| 1814 |
); |
| 1815 |
extern char *XDisplayString( |
| 1816 |
Display* /* display */ |
| 1817 |
); |
| 1818 |
extern Colormap XDefaultColormap( |
| 1819 |
Display* /* display */, |
| 1820 |
int /* screen_number */ |
| 1821 |
); |
| 1822 |
extern Colormap XDefaultColormapOfScreen( |
| 1823 |
Screen* /* screen */ |
| 1824 |
); |
| 1825 |
extern Display *XDisplayOfScreen( |
| 1826 |
Screen* /* screen */ |
| 1827 |
); |
| 1828 |
extern Screen *XScreenOfDisplay( |
| 1829 |
Display* /* display */, |
| 1830 |
int /* screen_number */ |
| 1831 |
); |
| 1832 |
extern Screen *XDefaultScreenOfDisplay( |
| 1833 |
Display* /* display */ |
| 1834 |
); |
| 1835 |
extern long XEventMaskOfScreen( |
| 1836 |
Screen* /* screen */ |
| 1837 |
); |
| 1838 |
|
| 1839 |
extern int XScreenNumberOfScreen( |
| 1840 |
Screen* /* screen */ |
| 1841 |
); |
| 1842 |
|
| 1843 |
typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ |
| 1844 |
Display* /* display */, |
| 1845 |
XErrorEvent* /* error_event */ |
| 1846 |
); |
| 1847 |
|
| 1848 |
extern XErrorHandler XSetErrorHandler ( |
| 1849 |
XErrorHandler /* handler */ |
| 1850 |
); |
| 1851 |
|
| 1852 |
|
| 1853 |
typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */ |
| 1854 |
Display* /* display */ |
| 1855 |
); |
| 1856 |
|
| 1857 |
extern XIOErrorHandler XSetIOErrorHandler ( |
| 1858 |
XIOErrorHandler /* handler */ |
| 1859 |
); |
| 1860 |
|
| 1861 |
typedef void (*XIOErrorExitHandler) ( /* WARNING, this type not in Xlib spec */ |
| 1862 |
Display*, /* display */ |
| 1863 |
void* /* user_data */ |
| 1864 |
); |
| 1865 |
|
| 1866 |
extern void XSetIOErrorExitHandler ( |
| 1867 |
Display*, /* display */ |
| 1868 |
XIOErrorExitHandler, /* handler */ |
| 1869 |
void* /* user_data */ |
| 1870 |
); |
| 1871 |
|
| 1872 |
extern XPixmapFormatValues *XListPixmapFormats( |
| 1873 |
Display* /* display */, |
| 1874 |
int* /* count_return */ |
| 1875 |
); |
| 1876 |
extern int *XListDepths( |
| 1877 |
Display* /* display */, |
| 1878 |
int /* screen_number */, |
| 1879 |
int* /* count_return */ |
| 1880 |
); |
| 1881 |
|
| 1882 |
/* ICCCM routines for things that don't require special include files; */ |
| 1883 |
/* other declarations are given in Xutil.h */ |
| 1884 |
extern Status XReconfigureWMWindow( |
| 1885 |
Display* /* display */, |
| 1886 |
Window /* w */, |
| 1887 |
int /* screen_number */, |
| 1888 |
unsigned int /* mask */, |
| 1889 |
XWindowChanges* /* changes */ |
| 1890 |
); |
| 1891 |
|
| 1892 |
extern Status XGetWMProtocols( |
| 1893 |
Display* /* display */, |
| 1894 |
Window /* w */, |
| 1895 |
Atom** /* protocols_return */, |
| 1896 |
int* /* count_return */ |
| 1897 |
); |
| 1898 |
extern Status XSetWMProtocols( |
| 1899 |
Display* /* display */, |
| 1900 |
Window /* w */, |
| 1901 |
Atom* /* protocols */, |
| 1902 |
int /* count */ |
| 1903 |
); |
| 1904 |
extern Status XIconifyWindow( |
| 1905 |
Display* /* display */, |
| 1906 |
Window /* w */, |
| 1907 |
int /* screen_number */ |
| 1908 |
); |
| 1909 |
extern Status XWithdrawWindow( |
| 1910 |
Display* /* display */, |
| 1911 |
Window /* w */, |
| 1912 |
int /* screen_number */ |
| 1913 |
); |
| 1914 |
extern Status XGetCommand( |
| 1915 |
Display* /* display */, |
| 1916 |
Window /* w */, |
| 1917 |
char*** /* argv_return */, |
| 1918 |
int* /* argc_return */ |
| 1919 |
); |
| 1920 |
extern Status XGetWMColormapWindows( |
| 1921 |
Display* /* display */, |
| 1922 |
Window /* w */, |
| 1923 |
Window** /* windows_return */, |
| 1924 |
int* /* count_return */ |
| 1925 |
); |
| 1926 |
extern Status XSetWMColormapWindows( |
| 1927 |
Display* /* display */, |
| 1928 |
Window /* w */, |
| 1929 |
Window* /* colormap_windows */, |
| 1930 |
int /* count */ |
| 1931 |
); |
| 1932 |
extern void XFreeStringList( |
| 1933 |
char** /* list */ |
| 1934 |
); |
| 1935 |
extern int XSetTransientForHint( |
| 1936 |
Display* /* display */, |
| 1937 |
Window /* w */, |
| 1938 |
Window /* prop_window */ |
| 1939 |
); |
| 1940 |
|
| 1941 |
/* The following are given in alphabetical order */ |
| 1942 |
|
| 1943 |
extern int XActivateScreenSaver( |
| 1944 |
Display* /* display */ |
| 1945 |
); |
| 1946 |
|
| 1947 |
extern int XAddHost( |
| 1948 |
Display* /* display */, |
| 1949 |
XHostAddress* /* host */ |
| 1950 |
); |
| 1951 |
|
| 1952 |
extern int XAddHosts( |
| 1953 |
Display* /* display */, |
| 1954 |
XHostAddress* /* hosts */, |
| 1955 |
int /* num_hosts */ |
| 1956 |
); |
| 1957 |
|
| 1958 |
extern int XAddToExtensionList( |
| 1959 |
struct _XExtData** /* structure */, |
| 1960 |
XExtData* /* ext_data */ |
| 1961 |
); |
| 1962 |
|
| 1963 |
extern int XAddToSaveSet( |
| 1964 |
Display* /* display */, |
| 1965 |
Window /* w */ |
| 1966 |
); |
| 1967 |
|
| 1968 |
extern Status XAllocColor( |
| 1969 |
Display* /* display */, |
| 1970 |
Colormap /* colormap */, |
| 1971 |
XColor* /* screen_in_out */ |
| 1972 |
); |
| 1973 |
|
| 1974 |
extern Status XAllocColorCells( |
| 1975 |
Display* /* display */, |
| 1976 |
Colormap /* colormap */, |
| 1977 |
Bool /* contig */, |
| 1978 |
unsigned long* /* plane_masks_return */, |
| 1979 |
unsigned int /* nplanes */, |
| 1980 |
unsigned long* /* pixels_return */, |
| 1981 |
unsigned int /* npixels */ |
| 1982 |
); |
| 1983 |
|
| 1984 |
extern Status XAllocColorPlanes( |
| 1985 |
Display* /* display */, |
| 1986 |
Colormap /* colormap */, |
| 1987 |
Bool /* contig */, |
| 1988 |
unsigned long* /* pixels_return */, |
| 1989 |
int /* ncolors */, |
| 1990 |
int /* nreds */, |
| 1991 |
int /* ngreens */, |
| 1992 |
int /* nblues */, |
| 1993 |
unsigned long* /* rmask_return */, |
| 1994 |
unsigned long* /* gmask_return */, |
| 1995 |
unsigned long* /* bmask_return */ |
| 1996 |
); |
| 1997 |
|
| 1998 |
extern Status XAllocNamedColor( |
| 1999 |
Display* /* display */, |
| 2000 |
Colormap /* colormap */, |
| 2001 |
_Xconst char* /* color_name */, |
| 2002 |
XColor* /* screen_def_return */, |
| 2003 |
XColor* /* exact_def_return */ |
| 2004 |
); |
| 2005 |
|
| 2006 |
extern int XAllowEvents( |
| 2007 |
Display* /* display */, |
| 2008 |
int /* event_mode */, |
| 2009 |
Time /* time */ |
| 2010 |
); |
| 2011 |
|
| 2012 |
extern int XAutoRepeatOff( |
| 2013 |
Display* /* display */ |
| 2014 |
); |
| 2015 |
|
| 2016 |
extern int XAutoRepeatOn( |
| 2017 |
Display* /* display */ |
| 2018 |
); |
| 2019 |
|
| 2020 |
extern int XBell( |
| 2021 |
Display* /* display */, |
| 2022 |
int /* percent */ |
| 2023 |
); |
| 2024 |
|
| 2025 |
extern int XBitmapBitOrder( |
| 2026 |
Display* /* display */ |
| 2027 |
); |
| 2028 |
|
| 2029 |
extern int XBitmapPad( |
| 2030 |
Display* /* display */ |
| 2031 |
); |
| 2032 |
|
| 2033 |
extern int XBitmapUnit( |
| 2034 |
Display* /* display */ |
| 2035 |
); |
| 2036 |
|
| 2037 |
extern int XCellsOfScreen( |
| 2038 |
Screen* /* screen */ |
| 2039 |
); |
| 2040 |
|
| 2041 |
extern int XChangeActivePointerGrab( |
| 2042 |
Display* /* display */, |
| 2043 |
unsigned int /* event_mask */, |
| 2044 |
Cursor /* cursor */, |
| 2045 |
Time /* time */ |
| 2046 |
); |
| 2047 |
|
| 2048 |
extern int XChangeGC( |
| 2049 |
Display* /* display */, |
| 2050 |
GC /* gc */, |
| 2051 |
unsigned long /* valuemask */, |
| 2052 |
XGCValues* /* values */ |
| 2053 |
); |
| 2054 |
|
| 2055 |
extern int XChangeKeyboardControl( |
| 2056 |
Display* /* display */, |
| 2057 |
unsigned long /* value_mask */, |
| 2058 |
XKeyboardControl* /* values */ |
| 2059 |
); |
| 2060 |
|
| 2061 |
extern int XChangeKeyboardMapping( |
| 2062 |
Display* /* display */, |
| 2063 |
int /* first_keycode */, |
| 2064 |
int /* keysyms_per_keycode */, |
| 2065 |
KeySym* /* keysyms */, |
| 2066 |
int /* num_codes */ |
| 2067 |
); |
| 2068 |
|
| 2069 |
extern int XChangePointerControl( |
| 2070 |
Display* /* display */, |
| 2071 |
Bool /* do_accel */, |
| 2072 |
Bool /* do_threshold */, |
| 2073 |
int /* accel_numerator */, |
| 2074 |
int /* accel_denominator */, |
| 2075 |
int /* threshold */ |
| 2076 |
); |
| 2077 |
|
| 2078 |
extern int XChangeProperty( |
| 2079 |
Display* /* display */, |
| 2080 |
Window /* w */, |
| 2081 |
Atom /* property */, |
| 2082 |
Atom /* type */, |
| 2083 |
int /* format */, |
| 2084 |
int /* mode */, |
| 2085 |
_Xconst unsigned char* /* data */, |
| 2086 |
int /* nelements */ |
| 2087 |
); |
| 2088 |
|
| 2089 |
extern int XChangeSaveSet( |
| 2090 |
Display* /* display */, |
| 2091 |
Window /* w */, |
| 2092 |
int /* change_mode */ |
| 2093 |
); |
| 2094 |
|
| 2095 |
extern int XChangeWindowAttributes( |
| 2096 |
Display* /* display */, |
| 2097 |
Window /* w */, |
| 2098 |
unsigned long /* valuemask */, |
| 2099 |
XSetWindowAttributes* /* attributes */ |
| 2100 |
); |
| 2101 |
|
| 2102 |
extern Bool XCheckIfEvent( |
| 2103 |
Display* /* display */, |
| 2104 |
XEvent* /* event_return */, |
| 2105 |
Bool (*) ( |
| 2106 |
Display* /* display */, |
| 2107 |
XEvent* /* event */, |
| 2108 |
XPointer /* arg */ |
| 2109 |
) /* predicate */, |
| 2110 |
XPointer /* arg */ |
| 2111 |
); |
| 2112 |
|
| 2113 |
#ifdef NX_TRANS_SOCKET |
| 2114 |
|
| 2115 |
/* |
| 2116 |
* This is just like XCheckIfEvent() but doesn't |
| 2117 |
* flush the output buffer if it can't read new |
| 2118 |
* events. |
| 2119 |
*/ |
| 2120 |
|
| 2121 |
extern Bool XCheckIfEventNoFlush( |
| 2122 |
Display* /* display */, |
| 2123 |
XEvent* /* event_return */, |
| 2124 |
Bool (*) ( |
| 2125 |
Display* /* display */, |
| 2126 |
XEvent* /* event */, |
| 2127 |
XPointer /* arg */ |
| 2128 |
) /* predicate */, |
| 2129 |
XPointer /* arg */ |
| 2130 |
); |
| 2131 |
|
| 2132 |
#endif |
| 2133 |
|
| 2134 |
extern Bool XCheckMaskEvent( |
| 2135 |
Display* /* display */, |
| 2136 |
long /* event_mask */, |
| 2137 |
XEvent* /* event_return */ |
| 2138 |
); |
| 2139 |
|
| 2140 |
extern Bool XCheckTypedEvent( |
| 2141 |
Display* /* display */, |
| 2142 |
int /* event_type */, |
| 2143 |
XEvent* /* event_return */ |
| 2144 |
); |
| 2145 |
|
| 2146 |
extern Bool XCheckTypedWindowEvent( |
| 2147 |
Display* /* display */, |
| 2148 |
Window /* w */, |
| 2149 |
int /* event_type */, |
| 2150 |
XEvent* /* event_return */ |
| 2151 |
); |
| 2152 |
|
| 2153 |
extern Bool XCheckWindowEvent( |
| 2154 |
Display* /* display */, |
| 2155 |
Window /* w */, |
| 2156 |
long /* event_mask */, |
| 2157 |
XEvent* /* event_return */ |
| 2158 |
); |
| 2159 |
|
| 2160 |
extern int XCirculateSubwindows( |
| 2161 |
Display* /* display */, |
| 2162 |
Window /* w */, |
| 2163 |
int /* direction */ |
| 2164 |
); |
| 2165 |
|
| 2166 |
extern int XCirculateSubwindowsDown( |
| 2167 |
Display* /* display */, |
| 2168 |
Window /* w */ |
| 2169 |
); |
| 2170 |
|
| 2171 |
extern int XCirculateSubwindowsUp( |
| 2172 |
Display* /* display */, |
| 2173 |
Window /* w */ |
| 2174 |
); |
| 2175 |
|
| 2176 |
extern int XClearArea( |
| 2177 |
Display* /* display */, |
| 2178 |
Window /* w */, |
| 2179 |
int /* x */, |
| 2180 |
int /* y */, |
| 2181 |
unsigned int /* width */, |
| 2182 |
unsigned int /* height */, |
| 2183 |
Bool /* exposures */ |
| 2184 |
); |
| 2185 |
|
| 2186 |
extern int XClearWindow( |
| 2187 |
Display* /* display */, |
| 2188 |
Window /* w */ |
| 2189 |
); |
| 2190 |
|
| 2191 |
extern int XCloseDisplay( |
| 2192 |
Display* /* display */ |
| 2193 |
); |
| 2194 |
|
| 2195 |
extern int XConfigureWindow( |
| 2196 |
Display* /* display */, |
| 2197 |
Window /* w */, |
| 2198 |
unsigned int /* value_mask */, |
| 2199 |
XWindowChanges* /* values */ |
| 2200 |
); |
| 2201 |
|
| 2202 |
extern int XConnectionNumber( |
| 2203 |
Display* /* display */ |
| 2204 |
); |
| 2205 |
|
| 2206 |
extern int XConvertSelection( |
| 2207 |
Display* /* display */, |
| 2208 |
Atom /* selection */, |
| 2209 |
Atom /* target */, |
| 2210 |
Atom /* property */, |
| 2211 |
Window /* requestor */, |
| 2212 |
Time /* time */ |
| 2213 |
); |
| 2214 |
|
| 2215 |
extern int XCopyArea( |
| 2216 |
Display* /* display */, |
| 2217 |
Drawable /* src */, |
| 2218 |
Drawable /* dest */, |
| 2219 |
GC /* gc */, |
| 2220 |
int /* src_x */, |
| 2221 |
int /* src_y */, |
| 2222 |
unsigned int /* width */, |
| 2223 |
unsigned int /* height */, |
| 2224 |
int /* dest_x */, |
| 2225 |
int /* dest_y */ |
| 2226 |
); |
| 2227 |
|
| 2228 |
extern int XCopyGC( |
| 2229 |
Display* /* display */, |
| 2230 |
GC /* src */, |
| 2231 |
unsigned long /* valuemask */, |
| 2232 |
GC /* dest */ |
| 2233 |
); |
| 2234 |
|
| 2235 |
extern int XCopyPlane( |
| 2236 |
Display* /* display */, |
| 2237 |
Drawable /* src */, |
| 2238 |
Drawable /* dest */, |
| 2239 |
GC /* gc */, |
| 2240 |
int /* src_x */, |
| 2241 |
int /* src_y */, |
| 2242 |
unsigned int /* width */, |
| 2243 |
unsigned int /* height */, |
| 2244 |
int /* dest_x */, |
| 2245 |
int /* dest_y */, |
| 2246 |
unsigned long /* plane */ |
| 2247 |
); |
| 2248 |
|
| 2249 |
extern int XDefaultDepth( |
| 2250 |
Display* /* display */, |
| 2251 |
int /* screen_number */ |
| 2252 |
); |
| 2253 |
|
| 2254 |
extern int XDefaultDepthOfScreen( |
| 2255 |
Screen* /* screen */ |
| 2256 |
); |
| 2257 |
|
| 2258 |
extern int XDefaultScreen( |
| 2259 |
Display* /* display */ |
| 2260 |
); |
| 2261 |
|
| 2262 |
extern int XDefineCursor( |
| 2263 |
Display* /* display */, |
| 2264 |
Window /* w */, |
| 2265 |
Cursor /* cursor */ |
| 2266 |
); |
| 2267 |
|
| 2268 |
extern int XDeleteProperty( |
| 2269 |
Display* /* display */, |
| 2270 |
Window /* w */, |
| 2271 |
Atom /* property */ |
| 2272 |
); |
| 2273 |
|
| 2274 |
extern int XDestroyWindow( |
| 2275 |
Display* /* display */, |
| 2276 |
Window /* w */ |
| 2277 |
); |
| 2278 |
|
| 2279 |
extern int XDestroySubwindows( |
| 2280 |
Display* /* display */, |
| 2281 |
Window /* w */ |
| 2282 |
); |
| 2283 |
|
| 2284 |
extern int XDoesBackingStore( |
| 2285 |
Screen* /* screen */ |
| 2286 |
); |
| 2287 |
|
| 2288 |
extern Bool XDoesSaveUnders( |
| 2289 |
Screen* /* screen */ |
| 2290 |
); |
| 2291 |
|
| 2292 |
extern int XDisableAccessControl( |
| 2293 |
Display* /* display */ |
| 2294 |
); |
| 2295 |
|
| 2296 |
|
| 2297 |
extern int XDisplayCells( |
| 2298 |
Display* /* display */, |
| 2299 |
int /* screen_number */ |
| 2300 |
); |
| 2301 |
|
| 2302 |
extern int XDisplayHeight( |
| 2303 |
Display* /* display */, |
| 2304 |
int /* screen_number */ |
| 2305 |
); |
| 2306 |
|
| 2307 |
extern int XDisplayHeightMM( |
| 2308 |
Display* /* display */, |
| 2309 |
int /* screen_number */ |
| 2310 |
); |
| 2311 |
|
| 2312 |
extern int XDisplayKeycodes( |
| 2313 |
Display* /* display */, |
| 2314 |
int* /* min_keycodes_return */, |
| 2315 |
int* /* max_keycodes_return */ |
| 2316 |
); |
| 2317 |
|
| 2318 |
extern int XDisplayPlanes( |
| 2319 |
Display* /* display */, |
| 2320 |
int /* screen_number */ |
| 2321 |
); |
| 2322 |
|
| 2323 |
extern int XDisplayWidth( |
| 2324 |
Display* /* display */, |
| 2325 |
int /* screen_number */ |
| 2326 |
); |
| 2327 |
|
| 2328 |
extern int XDisplayWidthMM( |
| 2329 |
Display* /* display */, |
| 2330 |
int /* screen_number */ |
| 2331 |
); |
| 2332 |
|
| 2333 |
extern int XDrawArc( |
| 2334 |
Display* /* display */, |
| 2335 |
Drawable /* d */, |
| 2336 |
GC /* gc */, |
| 2337 |
int /* x */, |
| 2338 |
int /* y */, |
| 2339 |
unsigned int /* width */, |
| 2340 |
unsigned int /* height */, |
| 2341 |
int /* angle1 */, |
| 2342 |
int /* angle2 */ |
| 2343 |
); |
| 2344 |
|
| 2345 |
extern int XDrawArcs( |
| 2346 |
Display* /* display */, |
| 2347 |
Drawable /* d */, |
| 2348 |
GC /* gc */, |
| 2349 |
XArc* /* arcs */, |
| 2350 |
int /* narcs */ |
| 2351 |
); |
| 2352 |
|
| 2353 |
extern int XDrawImageString( |
| 2354 |
Display* /* display */, |
| 2355 |
Drawable /* d */, |
| 2356 |
GC /* gc */, |
| 2357 |
int /* x */, |
| 2358 |
int /* y */, |
| 2359 |
_Xconst char* /* string */, |
| 2360 |
int /* length */ |
| 2361 |
); |
| 2362 |
|
| 2363 |
extern int XDrawImageString16( |
| 2364 |
Display* /* display */, |
| 2365 |
Drawable /* d */, |
| 2366 |
GC /* gc */, |
| 2367 |
int /* x */, |
| 2368 |
int /* y */, |
| 2369 |
_Xconst XChar2b* /* string */, |
| 2370 |
int /* length */ |
| 2371 |
); |
| 2372 |
|
| 2373 |
extern int XDrawLine( |
| 2374 |
Display* /* display */, |
| 2375 |
Drawable /* d */, |
| 2376 |
GC /* gc */, |
| 2377 |
int /* x1 */, |
| 2378 |
int /* y1 */, |
| 2379 |
int /* x2 */, |
| 2380 |
int /* y2 */ |
| 2381 |
); |
| 2382 |
|
| 2383 |
extern int XDrawLines( |
| 2384 |
Display* /* display */, |
| 2385 |
Drawable /* d */, |
| 2386 |
GC /* gc */, |
| 2387 |
XPoint* /* points */, |
| 2388 |
int /* npoints */, |
| 2389 |
int /* mode */ |
| 2390 |
); |
| 2391 |
|
| 2392 |
extern int XDrawPoint( |
| 2393 |
Display* /* display */, |
| 2394 |
Drawable /* d */, |
| 2395 |
GC /* gc */, |
| 2396 |
int /* x */, |
| 2397 |
int /* y */ |
| 2398 |
); |
| 2399 |
|
| 2400 |
extern int XDrawPoints( |
| 2401 |
Display* /* display */, |
| 2402 |
Drawable /* d */, |
| 2403 |
GC /* gc */, |
| 2404 |
XPoint* /* points */, |
| 2405 |
int /* npoints */, |
| 2406 |
int /* mode */ |
| 2407 |
); |
| 2408 |
|
| 2409 |
extern int XDrawRectangle( |
| 2410 |
Display* /* display */, |
| 2411 |
Drawable /* d */, |
| 2412 |
GC /* gc */, |
| 2413 |
int /* x */, |
| 2414 |
int /* y */, |
| 2415 |
unsigned int /* width */, |
| 2416 |
unsigned int /* height */ |
| 2417 |
); |
| 2418 |
|
| 2419 |
extern int XDrawRectangles( |
| 2420 |
Display* /* display */, |
| 2421 |
Drawable /* d */, |
| 2422 |
GC /* gc */, |
| 2423 |
XRectangle* /* rectangles */, |
| 2424 |
int /* nrectangles */ |
| 2425 |
); |
| 2426 |
|
| 2427 |
extern int XDrawSegments( |
| 2428 |
Display* /* display */, |
| 2429 |
Drawable /* d */, |
| 2430 |
GC /* gc */, |
| 2431 |
XSegment* /* segments */, |
| 2432 |
int /* nsegments */ |
| 2433 |
); |
| 2434 |
|
| 2435 |
extern int XDrawString( |
| 2436 |
Display* /* display */, |
| 2437 |
Drawable /* d */, |
| 2438 |
GC /* gc */, |
| 2439 |
int /* x */, |
| 2440 |
int /* y */, |
| 2441 |
_Xconst char* /* string */, |
| 2442 |
int /* length */ |
| 2443 |
); |
| 2444 |
|
| 2445 |
extern int XDrawString16( |
| 2446 |
Display* /* display */, |
| 2447 |
Drawable /* d */, |
| 2448 |
GC /* gc */, |
| 2449 |
int /* x */, |
| 2450 |
int /* y */, |
| 2451 |
_Xconst XChar2b* /* string */, |
| 2452 |
int /* length */ |
| 2453 |
); |
| 2454 |
|
| 2455 |
extern int XDrawText( |
| 2456 |
Display* /* display */, |
| 2457 |
Drawable /* d */, |
| 2458 |
GC /* gc */, |
| 2459 |
int /* x */, |
| 2460 |
int /* y */, |
| 2461 |
XTextItem* /* items */, |
| 2462 |
int /* nitems */ |
| 2463 |
); |
| 2464 |
|
| 2465 |
extern int XDrawText16( |
| 2466 |
Display* /* display */, |
| 2467 |
Drawable /* d */, |
| 2468 |
GC /* gc */, |
| 2469 |
int /* x */, |
| 2470 |
int /* y */, |
| 2471 |
XTextItem16* /* items */, |
| 2472 |
int /* nitems */ |
| 2473 |
); |
| 2474 |
|
| 2475 |
extern int XEnableAccessControl( |
| 2476 |
Display* /* display */ |
| 2477 |
); |
| 2478 |
|
| 2479 |
extern int XEventsQueued( |
| 2480 |
Display* /* display */, |
| 2481 |
int /* mode */ |
| 2482 |
); |
| 2483 |
|
| 2484 |
extern Status XFetchName( |
| 2485 |
Display* /* display */, |
| 2486 |
Window /* w */, |
| 2487 |
char** /* window_name_return */ |
| 2488 |
); |
| 2489 |
|
| 2490 |
extern int XFillArc( |
| 2491 |
Display* /* display */, |
| 2492 |
Drawable /* d */, |
| 2493 |
GC /* gc */, |
| 2494 |
int /* x */, |
| 2495 |
int /* y */, |
| 2496 |
unsigned int /* width */, |
| 2497 |
unsigned int /* height */, |
| 2498 |
int /* angle1 */, |
| 2499 |
int /* angle2 */ |
| 2500 |
); |
| 2501 |
|
| 2502 |
extern int XFillArcs( |
| 2503 |
Display* /* display */, |
| 2504 |
Drawable /* d */, |
| 2505 |
GC /* gc */, |
| 2506 |
XArc* /* arcs */, |
| 2507 |
int /* narcs */ |
| 2508 |
); |
| 2509 |
|
| 2510 |
extern int XFillPolygon( |
| 2511 |
Display* /* display */, |
| 2512 |
Drawable /* d */, |
| 2513 |
GC /* gc */, |
| 2514 |
XPoint* /* points */, |
| 2515 |
int /* npoints */, |
| 2516 |
int /* shape */, |
| 2517 |
int /* mode */ |
| 2518 |
); |
| 2519 |
|
| 2520 |
extern int XFillRectangle( |
| 2521 |
Display* /* display */, |
| 2522 |
Drawable /* d */, |
| 2523 |
GC /* gc */, |
| 2524 |
int /* x */, |
| 2525 |
int /* y */, |
| 2526 |
unsigned int /* width */, |
| 2527 |
unsigned int /* height */ |
| 2528 |
); |
| 2529 |
|
| 2530 |
extern int XFillRectangles( |
| 2531 |
Display* /* display */, |
| 2532 |
Drawable /* d */, |
| 2533 |
GC /* gc */, |
| 2534 |
XRectangle* /* rectangles */, |
| 2535 |
int /* nrectangles */ |
| 2536 |
); |
| 2537 |
|
| 2538 |
extern int XFlush( |
| 2539 |
Display* /* display */ |
| 2540 |
); |
| 2541 |
|
| 2542 |
extern int XForceScreenSaver( |
| 2543 |
Display* /* display */, |
| 2544 |
int /* mode */ |
| 2545 |
); |
| 2546 |
|
| 2547 |
extern int XFree( |
| 2548 |
void* /* data */ |
| 2549 |
); |
| 2550 |
|
| 2551 |
extern int XFreeColormap( |
| 2552 |
Display* /* display */, |
| 2553 |
Colormap /* colormap */ |
| 2554 |
); |
| 2555 |
|
| 2556 |
extern int XFreeColors( |
| 2557 |
Display* /* display */, |
| 2558 |
Colormap /* colormap */, |
| 2559 |
unsigned long* /* pixels */, |
| 2560 |
int /* npixels */, |
| 2561 |
unsigned long /* planes */ |
| 2562 |
); |
| 2563 |
|
| 2564 |
extern int XFreeCursor( |
| 2565 |
Display* /* display */, |
| 2566 |
Cursor /* cursor */ |
| 2567 |
); |
| 2568 |
|
| 2569 |
extern int XFreeExtensionList( |
| 2570 |
char** /* list */ |
| 2571 |
); |
| 2572 |
|
| 2573 |
extern int XFreeFont( |
| 2574 |
Display* /* display */, |
| 2575 |
XFontStruct* /* font_struct */ |
| 2576 |
); |
| 2577 |
|
| 2578 |
extern int XFreeFontInfo( |
| 2579 |
char** /* names */, |
| 2580 |
XFontStruct* /* free_info */, |
| 2581 |
int /* actual_count */ |
| 2582 |
); |
| 2583 |
|
| 2584 |
extern int XFreeFontNames( |
| 2585 |
char** /* list */ |
| 2586 |
); |
| 2587 |
|
| 2588 |
extern int XFreeFontPath( |
| 2589 |
char** /* list */ |
| 2590 |
); |
| 2591 |
|
| 2592 |
extern int XFreeGC( |
| 2593 |
Display* /* display */, |
| 2594 |
GC /* gc */ |
| 2595 |
); |
| 2596 |
|
| 2597 |
extern int XFreeModifiermap( |
| 2598 |
XModifierKeymap* /* modmap */ |
| 2599 |
); |
| 2600 |
|
| 2601 |
extern int XFreePixmap( |
| 2602 |
Display* /* display */, |
| 2603 |
Pixmap /* pixmap */ |
| 2604 |
); |
| 2605 |
|
| 2606 |
extern int XGeometry( |
| 2607 |
Display* /* display */, |
| 2608 |
int /* screen */, |
| 2609 |
_Xconst char* /* position */, |
| 2610 |
_Xconst char* /* default_position */, |
| 2611 |
unsigned int /* bwidth */, |
| 2612 |
unsigned int /* fwidth */, |
| 2613 |
unsigned int /* fheight */, |
| 2614 |
int /* xadder */, |
| 2615 |
int /* yadder */, |
| 2616 |
int* /* x_return */, |
| 2617 |
int* /* y_return */, |
| 2618 |
int* /* width_return */, |
| 2619 |
int* /* height_return */ |
| 2620 |
); |
| 2621 |
|
| 2622 |
extern int XGetErrorDatabaseText( |
| 2623 |
Display* /* display */, |
| 2624 |
_Xconst char* /* name */, |
| 2625 |
_Xconst char* /* message */, |
| 2626 |
_Xconst char* /* default_string */, |
| 2627 |
char* /* buffer_return */, |
| 2628 |
int /* length */ |
| 2629 |
); |
| 2630 |
|
| 2631 |
extern int XGetErrorText( |
| 2632 |
Display* /* display */, |
| 2633 |
int /* code */, |
| 2634 |
char* /* buffer_return */, |
| 2635 |
int /* length */ |
| 2636 |
); |
| 2637 |
|
| 2638 |
extern Bool XGetFontProperty( |
| 2639 |
XFontStruct* /* font_struct */, |
| 2640 |
Atom /* atom */, |
| 2641 |
unsigned long* /* value_return */ |
| 2642 |
); |
| 2643 |
|
| 2644 |
extern Status XGetGCValues( |
| 2645 |
Display* /* display */, |
| 2646 |
GC /* gc */, |
| 2647 |
unsigned long /* valuemask */, |
| 2648 |
XGCValues* /* values_return */ |
| 2649 |
); |
| 2650 |
|
| 2651 |
extern Status XGetGeometry( |
| 2652 |
Display* /* display */, |
| 2653 |
Drawable /* d */, |
| 2654 |
Window* /* root_return */, |
| 2655 |
int* /* x_return */, |
| 2656 |
int* /* y_return */, |
| 2657 |
unsigned int* /* width_return */, |
| 2658 |
unsigned int* /* height_return */, |
| 2659 |
unsigned int* /* border_width_return */, |
| 2660 |
unsigned int* /* depth_return */ |
| 2661 |
); |
| 2662 |
|
| 2663 |
extern Status XGetIconName( |
| 2664 |
Display* /* display */, |
| 2665 |
Window /* w */, |
| 2666 |
char** /* icon_name_return */ |
| 2667 |
); |
| 2668 |
|
| 2669 |
extern int XGetInputFocus( |
| 2670 |
Display* /* display */, |
| 2671 |
Window* /* focus_return */, |
| 2672 |
int* /* revert_to_return */ |
| 2673 |
); |
| 2674 |
|
| 2675 |
extern int XGetKeyboardControl( |
| 2676 |
Display* /* display */, |
| 2677 |
XKeyboardState* /* values_return */ |
| 2678 |
); |
| 2679 |
|
| 2680 |
extern int XGetPointerControl( |
| 2681 |
Display* /* display */, |
| 2682 |
int* /* accel_numerator_return */, |
| 2683 |
int* /* accel_denominator_return */, |
| 2684 |
int* /* threshold_return */ |
| 2685 |
); |
| 2686 |
|
| 2687 |
extern int XGetPointerMapping( |
| 2688 |
Display* /* display */, |
| 2689 |
unsigned char* /* map_return */, |
| 2690 |
int /* nmap */ |
| 2691 |
); |
| 2692 |
|
| 2693 |
extern int XGetScreenSaver( |
| 2694 |
Display* /* display */, |
| 2695 |
int* /* timeout_return */, |
| 2696 |
int* /* interval_return */, |
| 2697 |
int* /* prefer_blanking_return */, |
| 2698 |
int* /* allow_exposures_return */ |
| 2699 |
); |
| 2700 |
|
| 2701 |
extern Status XGetTransientForHint( |
| 2702 |
Display* /* display */, |
| 2703 |
Window /* w */, |
| 2704 |
Window* /* prop_window_return */ |
| 2705 |
); |
| 2706 |
|
| 2707 |
extern int XGetWindowProperty( |
| 2708 |
Display* /* display */, |
| 2709 |
Window /* w */, |
| 2710 |
Atom /* property */, |
| 2711 |
long /* long_offset */, |
| 2712 |
long /* long_length */, |
| 2713 |
Bool /* delete */, |
| 2714 |
Atom /* req_type */, |
| 2715 |
Atom* /* actual_type_return */, |
| 2716 |
int* /* actual_format_return */, |
| 2717 |
unsigned long* /* nitems_return */, |
| 2718 |
unsigned long* /* bytes_after_return */, |
| 2719 |
unsigned char** /* prop_return */ |
| 2720 |
); |
| 2721 |
|
| 2722 |
extern Status XGetWindowAttributes( |
| 2723 |
Display* /* display */, |
| 2724 |
Window /* w */, |
| 2725 |
XWindowAttributes* /* window_attributes_return */ |
| 2726 |
); |
| 2727 |
|
| 2728 |
extern int XGrabButton( |
| 2729 |
Display* /* display */, |
| 2730 |
unsigned int /* button */, |
| 2731 |
unsigned int /* modifiers */, |
| 2732 |
Window /* grab_window */, |
| 2733 |
Bool /* owner_events */, |
| 2734 |
unsigned int /* event_mask */, |
| 2735 |
int /* pointer_mode */, |
| 2736 |
int /* keyboard_mode */, |
| 2737 |
Window /* confine_to */, |
| 2738 |
Cursor /* cursor */ |
| 2739 |
); |
| 2740 |
|
| 2741 |
extern int XGrabKey( |
| 2742 |
Display* /* display */, |
| 2743 |
int /* keycode */, |
| 2744 |
unsigned int /* modifiers */, |
| 2745 |
Window /* grab_window */, |
| 2746 |
Bool /* owner_events */, |
| 2747 |
int /* pointer_mode */, |
| 2748 |
int /* keyboard_mode */ |
| 2749 |
); |
| 2750 |
|
| 2751 |
extern int XGrabKeyboard( |
| 2752 |
Display* /* display */, |
| 2753 |
Window /* grab_window */, |
| 2754 |
Bool /* owner_events */, |
| 2755 |
int /* pointer_mode */, |
| 2756 |
int /* keyboard_mode */, |
| 2757 |
Time /* time */ |
| 2758 |
); |
| 2759 |
|
| 2760 |
extern int XGrabPointer( |
| 2761 |
Display* /* display */, |
| 2762 |
Window /* grab_window */, |
| 2763 |
Bool /* owner_events */, |
| 2764 |
unsigned int /* event_mask */, |
| 2765 |
int /* pointer_mode */, |
| 2766 |
int /* keyboard_mode */, |
| 2767 |
Window /* confine_to */, |
| 2768 |
Cursor /* cursor */, |
| 2769 |
Time /* time */ |
| 2770 |
); |
| 2771 |
|
| 2772 |
extern int XGrabServer( |
| 2773 |
Display* /* display */ |
| 2774 |
); |
| 2775 |
|
| 2776 |
extern int XHeightMMOfScreen( |
| 2777 |
Screen* /* screen */ |
| 2778 |
); |
| 2779 |
|
| 2780 |
extern int XHeightOfScreen( |
| 2781 |
Screen* /* screen */ |
| 2782 |
); |
| 2783 |
|
| 2784 |
extern int XIfEvent( |
| 2785 |
Display* /* display */, |
| 2786 |
XEvent* /* event_return */, |
| 2787 |
Bool (*) ( |
| 2788 |
Display* /* display */, |
| 2789 |
XEvent* /* event */, |
| 2790 |
XPointer /* arg */ |
| 2791 |
) /* predicate */, |
| 2792 |
XPointer /* arg */ |
| 2793 |
); |
| 2794 |
|
| 2795 |
extern int XImageByteOrder( |
| 2796 |
Display* /* display */ |
| 2797 |
); |
| 2798 |
|
| 2799 |
extern int XInstallColormap( |
| 2800 |
Display* /* display */, |
| 2801 |
Colormap /* colormap */ |
| 2802 |
); |
| 2803 |
|
| 2804 |
extern KeyCode XKeysymToKeycode( |
| 2805 |
Display* /* display */, |
| 2806 |
KeySym /* keysym */ |
| 2807 |
); |
| 2808 |
|
| 2809 |
extern int XKillClient( |
| 2810 |
Display* /* display */, |
| 2811 |
XID /* resource */ |
| 2812 |
); |
| 2813 |
|
| 2814 |
extern Status XLookupColor( |
| 2815 |
Display* /* display */, |
| 2816 |
Colormap /* colormap */, |
| 2817 |
_Xconst char* /* color_name */, |
| 2818 |
XColor* /* exact_def_return */, |
| 2819 |
XColor* /* screen_def_return */ |
| 2820 |
); |
| 2821 |
|
| 2822 |
extern int XLowerWindow( |
| 2823 |
Display* /* display */, |
| 2824 |
Window /* w */ |
| 2825 |
); |
| 2826 |
|
| 2827 |
extern int XMapRaised( |
| 2828 |
Display* /* display */, |
| 2829 |
Window /* w */ |
| 2830 |
); |
| 2831 |
|
| 2832 |
extern int XMapSubwindows( |
| 2833 |
Display* /* display */, |
| 2834 |
Window /* w */ |
| 2835 |
); |
| 2836 |
|
| 2837 |
extern int XMapWindow( |
| 2838 |
Display* /* display */, |
| 2839 |
Window /* w */ |
| 2840 |
); |
| 2841 |
|
| 2842 |
extern int XMaskEvent( |
| 2843 |
Display* /* display */, |
| 2844 |
long /* event_mask */, |
| 2845 |
XEvent* /* event_return */ |
| 2846 |
); |
| 2847 |
|
| 2848 |
extern int XMaxCmapsOfScreen( |
| 2849 |
Screen* /* screen */ |
| 2850 |
); |
| 2851 |
|
| 2852 |
extern int XMinCmapsOfScreen( |
| 2853 |
Screen* /* screen */ |
| 2854 |
); |
| 2855 |
|
| 2856 |
extern int XMoveResizeWindow( |
| 2857 |
Display* /* display */, |
| 2858 |
Window /* w */, |
| 2859 |
int /* x */, |
| 2860 |
int /* y */, |
| 2861 |
unsigned int /* width */, |
| 2862 |
unsigned int /* height */ |
| 2863 |
); |
| 2864 |
|
| 2865 |
extern int XMoveWindow( |
| 2866 |
Display* /* display */, |
| 2867 |
Window /* w */, |
| 2868 |
int /* x */, |
| 2869 |
int /* y */ |
| 2870 |
); |
| 2871 |
|
| 2872 |
extern int XNextEvent( |
| 2873 |
Display* /* display */, |
| 2874 |
XEvent* /* event_return */ |
| 2875 |
); |
| 2876 |
|
| 2877 |
extern int XNoOp( |
| 2878 |
Display* /* display */ |
| 2879 |
); |
| 2880 |
|
| 2881 |
extern Status XParseColor( |
| 2882 |
Display* /* display */, |
| 2883 |
Colormap /* colormap */, |
| 2884 |
_Xconst char* /* spec */, |
| 2885 |
XColor* /* exact_def_return */ |
| 2886 |
); |
| 2887 |
|
| 2888 |
extern int XParseGeometry( |
| 2889 |
_Xconst char* /* parsestring */, |
| 2890 |
int* /* x_return */, |
| 2891 |
int* /* y_return */, |
| 2892 |
unsigned int* /* width_return */, |
| 2893 |
unsigned int* /* height_return */ |
| 2894 |
); |
| 2895 |
|
| 2896 |
extern int XPeekEvent( |
| 2897 |
Display* /* display */, |
| 2898 |
XEvent* /* event_return */ |
| 2899 |
); |
| 2900 |
|
| 2901 |
extern int XPeekIfEvent( |
| 2902 |
Display* /* display */, |
| 2903 |
XEvent* /* event_return */, |
| 2904 |
Bool (*) ( |
| 2905 |
Display* /* display */, |
| 2906 |
XEvent* /* event */, |
| 2907 |
XPointer /* arg */ |
| 2908 |
) /* predicate */, |
| 2909 |
XPointer /* arg */ |
| 2910 |
); |
| 2911 |
|
| 2912 |
extern int XPending( |
| 2913 |
Display* /* display */ |
| 2914 |
); |
| 2915 |
|
| 2916 |
extern int XPlanesOfScreen( |
| 2917 |
Screen* /* screen */ |
| 2918 |
); |
| 2919 |
|
| 2920 |
extern int XProtocolRevision( |
| 2921 |
Display* /* display */ |
| 2922 |
); |
| 2923 |
|
| 2924 |
extern int XProtocolVersion( |
| 2925 |
Display* /* display */ |
| 2926 |
); |
| 2927 |
|
| 2928 |
|
| 2929 |
extern int XPutBackEvent( |
| 2930 |
Display* /* display */, |
| 2931 |
XEvent* /* event */ |
| 2932 |
); |
| 2933 |
|
| 2934 |
extern int XPutImage( |
| 2935 |
Display* /* display */, |
| 2936 |
Drawable /* d */, |
| 2937 |
GC /* gc */, |
| 2938 |
XImage* /* image */, |
| 2939 |
int /* src_x */, |
| 2940 |
int /* src_y */, |
| 2941 |
int /* dest_x */, |
| 2942 |
int /* dest_y */, |
| 2943 |
unsigned int /* width */, |
| 2944 |
unsigned int /* height */ |
| 2945 |
); |
| 2946 |
|
| 2947 |
extern int XQLength( |
| 2948 |
Display* /* display */ |
| 2949 |
); |
| 2950 |
|
| 2951 |
extern Status XQueryBestCursor( |
| 2952 |
Display* /* display */, |
| 2953 |
Drawable /* d */, |
| 2954 |
unsigned int /* width */, |
| 2955 |
unsigned int /* height */, |
| 2956 |
unsigned int* /* width_return */, |
| 2957 |
unsigned int* /* height_return */ |
| 2958 |
); |
| 2959 |
|
| 2960 |
extern Status XQueryBestSize( |
| 2961 |
Display* /* display */, |
| 2962 |
int /* class */, |
| 2963 |
Drawable /* which_screen */, |
| 2964 |
unsigned int /* width */, |
| 2965 |
unsigned int /* height */, |
| 2966 |
unsigned int* /* width_return */, |
| 2967 |
unsigned int* /* height_return */ |
| 2968 |
); |
| 2969 |
|
| 2970 |
extern Status XQueryBestStipple( |
| 2971 |
Display* /* display */, |
| 2972 |
Drawable /* which_screen */, |
| 2973 |
unsigned int /* width */, |
| 2974 |
unsigned int /* height */, |
| 2975 |
unsigned int* /* width_return */, |
| 2976 |
unsigned int* /* height_return */ |
| 2977 |
); |
| 2978 |
|
| 2979 |
extern Status XQueryBestTile( |
| 2980 |
Display* /* display */, |
| 2981 |
Drawable /* which_screen */, |
| 2982 |
unsigned int /* width */, |
| 2983 |
unsigned int /* height */, |
| 2984 |
unsigned int* /* width_return */, |
| 2985 |
unsigned int* /* height_return */ |
| 2986 |
); |
| 2987 |
|
| 2988 |
extern int XQueryColor( |
| 2989 |
Display* /* display */, |
| 2990 |
Colormap /* colormap */, |
| 2991 |
XColor* /* def_in_out */ |
| 2992 |
); |
| 2993 |
|
| 2994 |
extern int XQueryColors( |
| 2995 |
Display* /* display */, |
| 2996 |
Colormap /* colormap */, |
| 2997 |
XColor* /* defs_in_out */, |
| 2998 |
int /* ncolors */ |
| 2999 |
); |
| 3000 |
|
| 3001 |
extern Bool XQueryExtension( |
| 3002 |
Display* /* display */, |
| 3003 |
_Xconst char* /* name */, |
| 3004 |
int* /* major_opcode_return */, |
| 3005 |
int* /* first_event_return */, |
| 3006 |
int* /* first_error_return */ |
| 3007 |
); |
| 3008 |
|
| 3009 |
extern int XQueryKeymap( |
| 3010 |
Display* /* display */, |
| 3011 |
char [32] /* keys_return */ |
| 3012 |
); |
| 3013 |
|
| 3014 |
extern Bool XQueryPointer( |
| 3015 |
Display* /* display */, |
| 3016 |
Window /* w */, |
| 3017 |
Window* /* root_return */, |
| 3018 |
Window* /* child_return */, |
| 3019 |
int* /* root_x_return */, |
| 3020 |
int* /* root_y_return */, |
| 3021 |
int* /* win_x_return */, |
| 3022 |
int* /* win_y_return */, |
| 3023 |
unsigned int* /* mask_return */ |
| 3024 |
); |
| 3025 |
|
| 3026 |
extern int XQueryTextExtents( |
| 3027 |
Display* /* display */, |
| 3028 |
XID /* font_ID */, |
| 3029 |
_Xconst char* /* string */, |
| 3030 |
int /* nchars */, |
| 3031 |
int* /* direction_return */, |
| 3032 |
int* /* font_ascent_return */, |
| 3033 |
int* /* font_descent_return */, |
| 3034 |
XCharStruct* /* overall_return */ |
| 3035 |
); |
| 3036 |
|
| 3037 |
extern int XQueryTextExtents16( |
| 3038 |
Display* /* display */, |
| 3039 |
XID /* font_ID */, |
| 3040 |
_Xconst XChar2b* /* string */, |
| 3041 |
int /* nchars */, |
| 3042 |
int* /* direction_return */, |
| 3043 |
int* /* font_ascent_return */, |
| 3044 |
int* /* font_descent_return */, |
| 3045 |
XCharStruct* /* overall_return */ |
| 3046 |
); |
| 3047 |
|
| 3048 |
extern Status XQueryTree( |
| 3049 |
Display* /* display */, |
| 3050 |
Window /* w */, |
| 3051 |
Window* /* root_return */, |
| 3052 |
Window* /* parent_return */, |
| 3053 |
Window** /* children_return */, |
| 3054 |
unsigned int* /* nchildren_return */ |
| 3055 |
); |
| 3056 |
|
| 3057 |
extern int XRaiseWindow( |
| 3058 |
Display* /* display */, |
| 3059 |
Window /* w */ |
| 3060 |
); |
| 3061 |
|
| 3062 |
extern int XReadBitmapFile( |
| 3063 |
Display* /* display */, |
| 3064 |
Drawable /* d */, |
| 3065 |
_Xconst char* /* filename */, |
| 3066 |
unsigned int* /* width_return */, |
| 3067 |
unsigned int* /* height_return */, |
| 3068 |
Pixmap* /* bitmap_return */, |
| 3069 |
int* /* x_hot_return */, |
| 3070 |
int* /* y_hot_return */ |
| 3071 |
); |
| 3072 |
|
| 3073 |
extern int XReadBitmapFileData( |
| 3074 |
_Xconst char* /* filename */, |
| 3075 |
unsigned int* /* width_return */, |
| 3076 |
unsigned int* /* height_return */, |
| 3077 |
unsigned char** /* data_return */, |
| 3078 |
int* /* x_hot_return */, |
| 3079 |
int* /* y_hot_return */ |
| 3080 |
); |
| 3081 |
|
| 3082 |
extern int XRebindKeysym( |
| 3083 |
Display* /* display */, |
| 3084 |
KeySym /* keysym */, |
| 3085 |
KeySym* /* list */, |
| 3086 |
int /* mod_count */, |
| 3087 |
_Xconst unsigned char* /* string */, |
| 3088 |
int /* bytes_string */ |
| 3089 |
); |
| 3090 |
|
| 3091 |
extern int XRecolorCursor( |
| 3092 |
Display* /* display */, |
| 3093 |
Cursor /* cursor */, |
| 3094 |
XColor* /* foreground_color */, |
| 3095 |
XColor* /* background_color */ |
| 3096 |
); |
| 3097 |
|
| 3098 |
extern int XRefreshKeyboardMapping( |
| 3099 |
XMappingEvent* /* event_map */ |
| 3100 |
); |
| 3101 |
|
| 3102 |
extern int XRemoveFromSaveSet( |
| 3103 |
Display* /* display */, |
| 3104 |
Window /* w */ |
| 3105 |
); |
| 3106 |
|
| 3107 |
extern int XRemoveHost( |
| 3108 |
Display* /* display */, |
| 3109 |
XHostAddress* /* host */ |
| 3110 |
); |
| 3111 |
|
| 3112 |
extern int XRemoveHosts( |
| 3113 |
Display* /* display */, |
| 3114 |
XHostAddress* /* hosts */, |
| 3115 |
int /* num_hosts */ |
| 3116 |
); |
| 3117 |
|
| 3118 |
extern int XReparentWindow( |
| 3119 |
Display* /* display */, |
| 3120 |
Window /* w */, |
| 3121 |
Window /* parent */, |
| 3122 |
int /* x */, |
| 3123 |
int /* y */ |
| 3124 |
); |
| 3125 |
|
| 3126 |
extern int XResetScreenSaver( |
| 3127 |
Display* /* display */ |
| 3128 |
); |
| 3129 |
|
| 3130 |
extern int XResizeWindow( |
| 3131 |
Display* /* display */, |
| 3132 |
Window /* w */, |
| 3133 |
unsigned int /* width */, |
| 3134 |
unsigned int /* height */ |
| 3135 |
); |
| 3136 |
|
| 3137 |
extern int XRestackWindows( |
| 3138 |
Display* /* display */, |
| 3139 |
Window* /* windows */, |
| 3140 |
int /* nwindows */ |
| 3141 |
); |
| 3142 |
|
| 3143 |
extern int XRotateBuffers( |
| 3144 |
Display* /* display */, |
| 3145 |
int /* rotate */ |
| 3146 |
); |
| 3147 |
|
| 3148 |
extern int XRotateWindowProperties( |
| 3149 |
Display* /* display */, |
| 3150 |
Window /* w */, |
| 3151 |
Atom* /* properties */, |
| 3152 |
int /* num_prop */, |
| 3153 |
int /* npositions */ |
| 3154 |
); |
| 3155 |
|
| 3156 |
extern int XScreenCount( |
| 3157 |
Display* /* display */ |
| 3158 |
); |
| 3159 |
|
| 3160 |
extern int XSelectInput( |
| 3161 |
Display* /* display */, |
| 3162 |
Window /* w */, |
| 3163 |
long /* event_mask */ |
| 3164 |
); |
| 3165 |
|
| 3166 |
extern Status XSendEvent( |
| 3167 |
Display* /* display */, |
| 3168 |
Window /* w */, |
| 3169 |
Bool /* propagate */, |
| 3170 |
long /* event_mask */, |
| 3171 |
XEvent* /* event_send */ |
| 3172 |
); |
| 3173 |
|
| 3174 |
extern int XSetAccessControl( |
| 3175 |
Display* /* display */, |
| 3176 |
int /* mode */ |
| 3177 |
); |
| 3178 |
|
| 3179 |
extern int XSetArcMode( |
| 3180 |
Display* /* display */, |
| 3181 |
GC /* gc */, |
| 3182 |
int /* arc_mode */ |
| 3183 |
); |
| 3184 |
|
| 3185 |
extern int XSetBackground( |
| 3186 |
Display* /* display */, |
| 3187 |
GC /* gc */, |
| 3188 |
unsigned long /* background */ |
| 3189 |
); |
| 3190 |
|
| 3191 |
extern int XSetClipMask( |
| 3192 |
Display* /* display */, |
| 3193 |
GC /* gc */, |
| 3194 |
Pixmap /* pixmap */ |
| 3195 |
); |
| 3196 |
|
| 3197 |
extern int XSetClipOrigin( |
| 3198 |
Display* /* display */, |
| 3199 |
GC /* gc */, |
| 3200 |
int /* clip_x_origin */, |
| 3201 |
int /* clip_y_origin */ |
| 3202 |
); |
| 3203 |
|
| 3204 |
extern int XSetClipRectangles( |
| 3205 |
Display* /* display */, |
| 3206 |
GC /* gc */, |
| 3207 |
int /* clip_x_origin */, |
| 3208 |
int /* clip_y_origin */, |
| 3209 |
XRectangle* /* rectangles */, |
| 3210 |
int /* n */, |
| 3211 |
int /* ordering */ |
| 3212 |
); |
| 3213 |
|
| 3214 |
extern int XSetCloseDownMode( |
| 3215 |
Display* /* display */, |
| 3216 |
int /* close_mode */ |
| 3217 |
); |
| 3218 |
|
| 3219 |
extern int XSetCommand( |
| 3220 |
Display* /* display */, |
| 3221 |
Window /* w */, |
| 3222 |
char** /* argv */, |
| 3223 |
int /* argc */ |
| 3224 |
); |
| 3225 |
|
| 3226 |
extern int XSetDashes( |
| 3227 |
Display* /* display */, |
| 3228 |
GC /* gc */, |
| 3229 |
int /* dash_offset */, |
| 3230 |
_Xconst char* /* dash_list */, |
| 3231 |
int /* n */ |
| 3232 |
); |
| 3233 |
|
| 3234 |
extern int XSetFillRule( |
| 3235 |
Display* /* display */, |
| 3236 |
GC /* gc */, |
| 3237 |
int /* fill_rule */ |
| 3238 |
); |
| 3239 |
|
| 3240 |
extern int XSetFillStyle( |
| 3241 |
Display* /* display */, |
| 3242 |
GC /* gc */, |
| 3243 |
int /* fill_style */ |
| 3244 |
); |
| 3245 |
|
| 3246 |
extern int XSetFont( |
| 3247 |
Display* /* display */, |
| 3248 |
GC /* gc */, |
| 3249 |
Font /* font */ |
| 3250 |
); |
| 3251 |
|
| 3252 |
extern int XSetFontPath( |
| 3253 |
Display* /* display */, |
| 3254 |
char** /* directories */, |
| 3255 |
int /* ndirs */ |
| 3256 |
); |
| 3257 |
|
| 3258 |
extern int XSetForeground( |
| 3259 |
Display* /* display */, |
| 3260 |
GC /* gc */, |
| 3261 |
unsigned long /* foreground */ |
| 3262 |
); |
| 3263 |
|
| 3264 |
extern int XSetFunction( |
| 3265 |
Display* /* display */, |
| 3266 |
GC /* gc */, |
| 3267 |
int /* function */ |
| 3268 |
); |
| 3269 |
|
| 3270 |
extern int XSetGraphicsExposures( |
| 3271 |
Display* /* display */, |
| 3272 |
GC /* gc */, |
| 3273 |
Bool /* graphics_exposures */ |
| 3274 |
); |
| 3275 |
|
| 3276 |
extern int XSetIconName( |
| 3277 |
Display* /* display */, |
| 3278 |
Window /* w */, |
| 3279 |
_Xconst char* /* icon_name */ |
| 3280 |
); |
| 3281 |
|
| 3282 |
extern int XSetInputFocus( |
| 3283 |
Display* /* display */, |
| 3284 |
Window /* focus */, |
| 3285 |
int /* revert_to */, |
| 3286 |
Time /* time */ |
| 3287 |
); |
| 3288 |
|
| 3289 |
extern int XSetLineAttributes( |
| 3290 |
Display* /* display */, |
| 3291 |
GC /* gc */, |
| 3292 |
unsigned int /* line_width */, |
| 3293 |
int /* line_style */, |
| 3294 |
int /* cap_style */, |
| 3295 |
int /* join_style */ |
| 3296 |
); |
| 3297 |
|
| 3298 |
extern int XSetModifierMapping( |
| 3299 |
Display* /* display */, |
| 3300 |
XModifierKeymap* /* modmap */ |
| 3301 |
); |
| 3302 |
|
| 3303 |
extern int XSetPlaneMask( |
| 3304 |
Display* /* display */, |
| 3305 |
GC /* gc */, |
| 3306 |
unsigned long /* plane_mask */ |
| 3307 |
); |
| 3308 |
|
| 3309 |
extern int XSetPointerMapping( |
| 3310 |
Display* /* display */, |
| 3311 |
_Xconst unsigned char* /* map */, |
| 3312 |
int /* nmap */ |
| 3313 |
); |
| 3314 |
|
| 3315 |
extern int XSetScreenSaver( |
| 3316 |
Display* /* display */, |
| 3317 |
int /* timeout */, |
| 3318 |
int /* interval */, |
| 3319 |
int /* prefer_blanking */, |
| 3320 |
int /* allow_exposures */ |
| 3321 |
); |
| 3322 |
|
| 3323 |
extern int XSetSelectionOwner( |
| 3324 |
Display* /* display */, |
| 3325 |
Atom /* selection */, |
| 3326 |
Window /* owner */, |
| 3327 |
Time /* time */ |
| 3328 |
); |
| 3329 |
|
| 3330 |
extern int XSetState( |
| 3331 |
Display* /* display */, |
| 3332 |
GC /* gc */, |
| 3333 |
unsigned long /* foreground */, |
| 3334 |
unsigned long /* background */, |
| 3335 |
int /* function */, |
| 3336 |
unsigned long /* plane_mask */ |
| 3337 |
); |
| 3338 |
|
| 3339 |
extern int XSetStipple( |
| 3340 |
Display* /* display */, |
| 3341 |
GC /* gc */, |
| 3342 |
Pixmap /* stipple */ |
| 3343 |
); |
| 3344 |
|
| 3345 |
extern int XSetSubwindowMode( |
| 3346 |
Display* /* display */, |
| 3347 |
GC /* gc */, |
| 3348 |
int /* subwindow_mode */ |
| 3349 |
); |
| 3350 |
|
| 3351 |
extern int XSetTSOrigin( |
| 3352 |
Display* /* display */, |
| 3353 |
GC /* gc */, |
| 3354 |
int /* ts_x_origin */, |
| 3355 |
int /* ts_y_origin */ |
| 3356 |
); |
| 3357 |
|
| 3358 |
extern int XSetTile( |
| 3359 |
Display* /* display */, |
| 3360 |
GC /* gc */, |
| 3361 |
Pixmap /* tile */ |
| 3362 |
); |
| 3363 |
|
| 3364 |
extern int XSetWindowBackground( |
| 3365 |
Display* /* display */, |
| 3366 |
Window /* w */, |
| 3367 |
unsigned long /* background_pixel */ |
| 3368 |
); |
| 3369 |
|
| 3370 |
extern int XSetWindowBackgroundPixmap( |
| 3371 |
Display* /* display */, |
| 3372 |
Window /* w */, |
| 3373 |
Pixmap /* background_pixmap */ |
| 3374 |
); |
| 3375 |
|
| 3376 |
extern int XSetWindowBorder( |
| 3377 |
Display* /* display */, |
| 3378 |
Window /* w */, |
| 3379 |
unsigned long /* border_pixel */ |
| 3380 |
); |
| 3381 |
|
| 3382 |
extern int XSetWindowBorderPixmap( |
| 3383 |
Display* /* display */, |
| 3384 |
Window /* w */, |
| 3385 |
Pixmap /* border_pixmap */ |
| 3386 |
); |
| 3387 |
|
| 3388 |
extern int XSetWindowBorderWidth( |
| 3389 |
Display* /* display */, |
| 3390 |
Window /* w */, |
| 3391 |
unsigned int /* width */ |
| 3392 |
); |
| 3393 |
|
| 3394 |
extern int XSetWindowColormap( |
| 3395 |
Display* /* display */, |
| 3396 |
Window /* w */, |
| 3397 |
Colormap /* colormap */ |
| 3398 |
); |
| 3399 |
|
| 3400 |
extern int XStoreBuffer( |
| 3401 |
Display* /* display */, |
| 3402 |
_Xconst char* /* bytes */, |
| 3403 |
int /* nbytes */, |
| 3404 |
int /* buffer */ |
| 3405 |
); |
| 3406 |
|
| 3407 |
extern int XStoreBytes( |
| 3408 |
Display* /* display */, |
| 3409 |
_Xconst char* /* bytes */, |
| 3410 |
int /* nbytes */ |
| 3411 |
); |
| 3412 |
|
| 3413 |
extern int XStoreColor( |
| 3414 |
Display* /* display */, |
| 3415 |
Colormap /* colormap */, |
| 3416 |
XColor* /* color */ |
| 3417 |
); |
| 3418 |
|
| 3419 |
extern int XStoreColors( |
| 3420 |
Display* /* display */, |
| 3421 |
Colormap /* colormap */, |
| 3422 |
XColor* /* color */, |
| 3423 |
int /* ncolors */ |
| 3424 |
); |
| 3425 |
|
| 3426 |
extern int XStoreName( |
| 3427 |
Display* /* display */, |
| 3428 |
Window /* w */, |
| 3429 |
_Xconst char* /* window_name */ |
| 3430 |
); |
| 3431 |
|
| 3432 |
extern int XStoreNamedColor( |
| 3433 |
Display* /* display */, |
| 3434 |
Colormap /* colormap */, |
| 3435 |
_Xconst char* /* color */, |
| 3436 |
unsigned long /* pixel */, |
| 3437 |
int /* flags */ |
| 3438 |
); |
| 3439 |
|
| 3440 |
extern int XSync( |
| 3441 |
Display* /* display */, |
| 3442 |
Bool /* discard */ |
| 3443 |
); |
| 3444 |
|
| 3445 |
extern int XTextExtents( |
| 3446 |
XFontStruct* /* font_struct */, |
| 3447 |
_Xconst char* /* string */, |
| 3448 |
int /* nchars */, |
| 3449 |
int* /* direction_return */, |
| 3450 |
int* /* font_ascent_return */, |
| 3451 |
int* /* font_descent_return */, |
| 3452 |
XCharStruct* /* overall_return */ |
| 3453 |
); |
| 3454 |
|
| 3455 |
extern int XTextExtents16( |
| 3456 |
XFontStruct* /* font_struct */, |
| 3457 |
_Xconst XChar2b* /* string */, |
| 3458 |
int /* nchars */, |
| 3459 |
int* /* direction_return */, |
| 3460 |
int* /* font_ascent_return */, |
| 3461 |
int* /* font_descent_return */, |
| 3462 |
XCharStruct* /* overall_return */ |
| 3463 |
); |
| 3464 |
|
| 3465 |
extern int XTextWidth( |
| 3466 |
XFontStruct* /* font_struct */, |
| 3467 |
_Xconst char* /* string */, |
| 3468 |
int /* count */ |
| 3469 |
); |
| 3470 |
|
| 3471 |
extern int XTextWidth16( |
| 3472 |
XFontStruct* /* font_struct */, |
| 3473 |
_Xconst XChar2b* /* string */, |
| 3474 |
int /* count */ |
| 3475 |
); |
| 3476 |
|
| 3477 |
extern Bool XTranslateCoordinates( |
| 3478 |
Display* /* display */, |
| 3479 |
Window /* src_w */, |
| 3480 |
Window /* dest_w */, |
| 3481 |
int /* src_x */, |
| 3482 |
int /* src_y */, |
| 3483 |
int* /* dest_x_return */, |
| 3484 |
int* /* dest_y_return */, |
| 3485 |
Window* /* child_return */ |
| 3486 |
); |
| 3487 |
|
| 3488 |
extern int XUndefineCursor( |
| 3489 |
Display* /* display */, |
| 3490 |
Window /* w */ |
| 3491 |
); |
| 3492 |
|
| 3493 |
extern int XUngrabButton( |
| 3494 |
Display* /* display */, |
| 3495 |
unsigned int /* button */, |
| 3496 |
unsigned int /* modifiers */, |
| 3497 |
Window /* grab_window */ |
| 3498 |
); |
| 3499 |
|
| 3500 |
extern int XUngrabKey( |
| 3501 |
Display* /* display */, |
| 3502 |
int /* keycode */, |
| 3503 |
unsigned int /* modifiers */, |
| 3504 |
Window /* grab_window */ |
| 3505 |
); |
| 3506 |
|
| 3507 |
extern int XUngrabKeyboard( |
| 3508 |
Display* /* display */, |
| 3509 |
Time /* time */ |
| 3510 |
); |
| 3511 |
|
| 3512 |
extern int XUngrabPointer( |
| 3513 |
Display* /* display */, |
| 3514 |
Time /* time */ |
| 3515 |
); |
| 3516 |
|
| 3517 |
extern int XUngrabServer( |
| 3518 |
Display* /* display */ |
| 3519 |
); |
| 3520 |
|
| 3521 |
extern int XUninstallColormap( |
| 3522 |
Display* /* display */, |
| 3523 |
Colormap /* colormap */ |
| 3524 |
); |
| 3525 |
|
| 3526 |
extern int XUnloadFont( |
| 3527 |
Display* /* display */, |
| 3528 |
Font /* font */ |
| 3529 |
); |
| 3530 |
|
| 3531 |
extern int XUnmapSubwindows( |
| 3532 |
Display* /* display */, |
| 3533 |
Window /* w */ |
| 3534 |
); |
| 3535 |
|
| 3536 |
extern int XUnmapWindow( |
| 3537 |
Display* /* display */, |
| 3538 |
Window /* w */ |
| 3539 |
); |
| 3540 |
|
| 3541 |
extern int XVendorRelease( |
| 3542 |
Display* /* display */ |
| 3543 |
); |
| 3544 |
|
| 3545 |
extern int XWarpPointer( |
| 3546 |
Display* /* display */, |
| 3547 |
Window /* src_w */, |
| 3548 |
Window /* dest_w */, |
| 3549 |
int /* src_x */, |
| 3550 |
int /* src_y */, |
| 3551 |
unsigned int /* src_width */, |
| 3552 |
unsigned int /* src_height */, |
| 3553 |
int /* dest_x */, |
| 3554 |
int /* dest_y */ |
| 3555 |
); |
| 3556 |
|
| 3557 |
extern int XWidthMMOfScreen( |
| 3558 |
Screen* /* screen */ |
| 3559 |
); |
| 3560 |
|
| 3561 |
extern int XWidthOfScreen( |
| 3562 |
Screen* /* screen */ |
| 3563 |
); |
| 3564 |
|
| 3565 |
extern int XWindowEvent( |
| 3566 |
Display* /* display */, |
| 3567 |
Window /* w */, |
| 3568 |
long /* event_mask */, |
| 3569 |
XEvent* /* event_return */ |
| 3570 |
); |
| 3571 |
|
| 3572 |
extern int XWriteBitmapFile( |
| 3573 |
Display* /* display */, |
| 3574 |
_Xconst char* /* filename */, |
| 3575 |
Pixmap /* bitmap */, |
| 3576 |
unsigned int /* width */, |
| 3577 |
unsigned int /* height */, |
| 3578 |
int /* x_hot */, |
| 3579 |
int /* y_hot */ |
| 3580 |
); |
| 3581 |
|
| 3582 |
extern Bool XSupportsLocale (void); |
| 3583 |
|
| 3584 |
extern char *XSetLocaleModifiers( |
| 3585 |
const char* /* modifier_list */ |
| 3586 |
); |
| 3587 |
|
| 3588 |
extern XOM XOpenOM( |
| 3589 |
Display* /* display */, |
| 3590 |
struct _XrmHashBucketRec* /* rdb */, |
| 3591 |
_Xconst char* /* res_name */, |
| 3592 |
_Xconst char* /* res_class */ |
| 3593 |
); |
| 3594 |
|
| 3595 |
extern Status XCloseOM( |
| 3596 |
XOM /* om */ |
| 3597 |
); |
| 3598 |
|
| 3599 |
extern char *XSetOMValues( |
| 3600 |
XOM /* om */, |
| 3601 |
... |
| 3602 |
) _X_SENTINEL(0); |
| 3603 |
|
| 3604 |
extern char *XGetOMValues( |
| 3605 |
XOM /* om */, |
| 3606 |
... |
| 3607 |
) _X_SENTINEL(0); |
| 3608 |
|
| 3609 |
extern Display *XDisplayOfOM( |
| 3610 |
XOM /* om */ |
| 3611 |
); |
| 3612 |
|
| 3613 |
extern char *XLocaleOfOM( |
| 3614 |
XOM /* om */ |
| 3615 |
); |
| 3616 |
|
| 3617 |
extern XOC XCreateOC( |
| 3618 |
XOM /* om */, |
| 3619 |
... |
| 3620 |
) _X_SENTINEL(0); |
| 3621 |
|
| 3622 |
extern void XDestroyOC( |
| 3623 |
XOC /* oc */ |
| 3624 |
); |
| 3625 |
|
| 3626 |
extern XOM XOMOfOC( |
| 3627 |
XOC /* oc */ |
| 3628 |
); |
| 3629 |
|
| 3630 |
extern char *XSetOCValues( |
| 3631 |
XOC /* oc */, |
| 3632 |
... |
| 3633 |
) _X_SENTINEL(0); |
| 3634 |
|
| 3635 |
extern char *XGetOCValues( |
| 3636 |
XOC /* oc */, |
| 3637 |
... |
| 3638 |
) _X_SENTINEL(0); |
| 3639 |
|
| 3640 |
extern XFontSet XCreateFontSet( |
| 3641 |
Display* /* display */, |
| 3642 |
_Xconst char* /* base_font_name_list */, |
| 3643 |
char*** /* missing_charset_list */, |
| 3644 |
int* /* missing_charset_count */, |
| 3645 |
char** /* def_string */ |
| 3646 |
); |
| 3647 |
|
| 3648 |
extern void XFreeFontSet( |
| 3649 |
Display* /* display */, |
| 3650 |
XFontSet /* font_set */ |
| 3651 |
); |
| 3652 |
|
| 3653 |
extern int XFontsOfFontSet( |
| 3654 |
XFontSet /* font_set */, |
| 3655 |
XFontStruct*** /* font_struct_list */, |
| 3656 |
char*** /* font_name_list */ |
| 3657 |
); |
| 3658 |
|
| 3659 |
extern char *XBaseFontNameListOfFontSet( |
| 3660 |
XFontSet /* font_set */ |
| 3661 |
); |
| 3662 |
|
| 3663 |
extern char *XLocaleOfFontSet( |
| 3664 |
XFontSet /* font_set */ |
| 3665 |
); |
| 3666 |
|
| 3667 |
extern Bool XContextDependentDrawing( |
| 3668 |
XFontSet /* font_set */ |
| 3669 |
); |
| 3670 |
|
| 3671 |
extern Bool XDirectionalDependentDrawing( |
| 3672 |
XFontSet /* font_set */ |
| 3673 |
); |
| 3674 |
|
| 3675 |
extern Bool XContextualDrawing( |
| 3676 |
XFontSet /* font_set */ |
| 3677 |
); |
| 3678 |
|
| 3679 |
extern XFontSetExtents *XExtentsOfFontSet( |
| 3680 |
XFontSet /* font_set */ |
| 3681 |
); |
| 3682 |
|
| 3683 |
extern int XmbTextEscapement( |
| 3684 |
XFontSet /* font_set */, |
| 3685 |
_Xconst char* /* text */, |
| 3686 |
int /* bytes_text */ |
| 3687 |
); |
| 3688 |
|
| 3689 |
extern int XwcTextEscapement( |
| 3690 |
XFontSet /* font_set */, |
| 3691 |
_Xconst wchar_t* /* text */, |
| 3692 |
int /* num_wchars */ |
| 3693 |
); |
| 3694 |
|
| 3695 |
extern int Xutf8TextEscapement( |
| 3696 |
XFontSet /* font_set */, |
| 3697 |
_Xconst char* /* text */, |
| 3698 |
int /* bytes_text */ |
| 3699 |
); |
| 3700 |
|
| 3701 |
extern int XmbTextExtents( |
| 3702 |
XFontSet /* font_set */, |
| 3703 |
_Xconst char* /* text */, |
| 3704 |
int /* bytes_text */, |
| 3705 |
XRectangle* /* overall_ink_return */, |
| 3706 |
XRectangle* /* overall_logical_return */ |
| 3707 |
); |
| 3708 |
|
| 3709 |
extern int XwcTextExtents( |
| 3710 |
XFontSet /* font_set */, |
| 3711 |
_Xconst wchar_t* /* text */, |
| 3712 |
int /* num_wchars */, |
| 3713 |
XRectangle* /* overall_ink_return */, |
| 3714 |
XRectangle* /* overall_logical_return */ |
| 3715 |
); |
| 3716 |
|
| 3717 |
extern int Xutf8TextExtents( |
| 3718 |
XFontSet /* font_set */, |
| 3719 |
_Xconst char* /* text */, |
| 3720 |
int /* bytes_text */, |
| 3721 |
XRectangle* /* overall_ink_return */, |
| 3722 |
XRectangle* /* overall_logical_return */ |
| 3723 |
); |
| 3724 |
|
| 3725 |
extern Status XmbTextPerCharExtents( |
| 3726 |
XFontSet /* font_set */, |
| 3727 |
_Xconst char* /* text */, |
| 3728 |
int /* bytes_text */, |
| 3729 |
XRectangle* /* ink_extents_buffer */, |
| 3730 |
XRectangle* /* logical_extents_buffer */, |
| 3731 |
int /* buffer_size */, |
| 3732 |
int* /* num_chars */, |
| 3733 |
XRectangle* /* overall_ink_return */, |
| 3734 |
XRectangle* /* overall_logical_return */ |
| 3735 |
); |
| 3736 |
|
| 3737 |
extern Status XwcTextPerCharExtents( |
| 3738 |
XFontSet /* font_set */, |
| 3739 |
_Xconst wchar_t* /* text */, |
| 3740 |
int /* num_wchars */, |
| 3741 |
XRectangle* /* ink_extents_buffer */, |
| 3742 |
XRectangle* /* logical_extents_buffer */, |
| 3743 |
int /* buffer_size */, |
| 3744 |
int* /* num_chars */, |
| 3745 |
XRectangle* /* overall_ink_return */, |
| 3746 |
XRectangle* /* overall_logical_return */ |
| 3747 |
); |
| 3748 |
|
| 3749 |
extern Status Xutf8TextPerCharExtents( |
| 3750 |
XFontSet /* font_set */, |
| 3751 |
_Xconst char* /* text */, |
| 3752 |
int /* bytes_text */, |
| 3753 |
XRectangle* /* ink_extents_buffer */, |
| 3754 |
XRectangle* /* logical_extents_buffer */, |
| 3755 |
int /* buffer_size */, |
| 3756 |
int* /* num_chars */, |
| 3757 |
XRectangle* /* overall_ink_return */, |
| 3758 |
XRectangle* /* overall_logical_return */ |
| 3759 |
); |
| 3760 |
|
| 3761 |
extern void XmbDrawText( |
| 3762 |
Display* /* display */, |
| 3763 |
Drawable /* d */, |
| 3764 |
GC /* gc */, |
| 3765 |
int /* x */, |
| 3766 |
int /* y */, |
| 3767 |
XmbTextItem* /* text_items */, |
| 3768 |
int /* nitems */ |
| 3769 |
); |
| 3770 |
|
| 3771 |
extern void XwcDrawText( |
| 3772 |
Display* /* display */, |
| 3773 |
Drawable /* d */, |
| 3774 |
GC /* gc */, |
| 3775 |
int /* x */, |
| 3776 |
int /* y */, |
| 3777 |
XwcTextItem* /* text_items */, |
| 3778 |
int /* nitems */ |
| 3779 |
); |
| 3780 |
|
| 3781 |
extern void Xutf8DrawText( |
| 3782 |
Display* /* display */, |
| 3783 |
Drawable /* d */, |
| 3784 |
GC /* gc */, |
| 3785 |
int /* x */, |
| 3786 |
int /* y */, |
| 3787 |
XmbTextItem* /* text_items */, |
| 3788 |
int /* nitems */ |
| 3789 |
); |
| 3790 |
|
| 3791 |
extern void XmbDrawString( |
| 3792 |
Display* /* display */, |
| 3793 |
Drawable /* d */, |
| 3794 |
XFontSet /* font_set */, |
| 3795 |
GC /* gc */, |
| 3796 |
int /* x */, |
| 3797 |
int /* y */, |
| 3798 |
_Xconst char* /* text */, |
| 3799 |
int /* bytes_text */ |
| 3800 |
); |
| 3801 |
|
| 3802 |
extern void XwcDrawString( |
| 3803 |
Display* /* display */, |
| 3804 |
Drawable /* d */, |
| 3805 |
XFontSet /* font_set */, |
| 3806 |
GC /* gc */, |
| 3807 |
int /* x */, |
| 3808 |
int /* y */, |
| 3809 |
_Xconst wchar_t* /* text */, |
| 3810 |
int /* num_wchars */ |
| 3811 |
); |
| 3812 |
|
| 3813 |
extern void Xutf8DrawString( |
| 3814 |
Display* /* display */, |
| 3815 |
Drawable /* d */, |
| 3816 |
XFontSet /* font_set */, |
| 3817 |
GC /* gc */, |
| 3818 |
int /* x */, |
| 3819 |
int /* y */, |
| 3820 |
_Xconst char* /* text */, |
| 3821 |
int /* bytes_text */ |
| 3822 |
); |
| 3823 |
|
| 3824 |
extern void XmbDrawImageString( |
| 3825 |
Display* /* display */, |
| 3826 |
Drawable /* d */, |
| 3827 |
XFontSet /* font_set */, |
| 3828 |
GC /* gc */, |
| 3829 |
int /* x */, |
| 3830 |
int /* y */, |
| 3831 |
_Xconst char* /* text */, |
| 3832 |
int /* bytes_text */ |
| 3833 |
); |
| 3834 |
|
| 3835 |
extern void XwcDrawImageString( |
| 3836 |
Display* /* display */, |
| 3837 |
Drawable /* d */, |
| 3838 |
XFontSet /* font_set */, |
| 3839 |
GC /* gc */, |
| 3840 |
int /* x */, |
| 3841 |
int /* y */, |
| 3842 |
_Xconst wchar_t* /* text */, |
| 3843 |
int /* num_wchars */ |
| 3844 |
); |
| 3845 |
|
| 3846 |
extern void Xutf8DrawImageString( |
| 3847 |
Display* /* display */, |
| 3848 |
Drawable /* d */, |
| 3849 |
XFontSet /* font_set */, |
| 3850 |
GC /* gc */, |
| 3851 |
int /* x */, |
| 3852 |
int /* y */, |
| 3853 |
_Xconst char* /* text */, |
| 3854 |
int /* bytes_text */ |
| 3855 |
); |
| 3856 |
|
| 3857 |
extern XIM XOpenIM( |
| 3858 |
Display* /* dpy */, |
| 3859 |
struct _XrmHashBucketRec* /* rdb */, |
| 3860 |
char* /* res_name */, |
| 3861 |
char* /* res_class */ |
| 3862 |
); |
| 3863 |
|
| 3864 |
extern Status XCloseIM( |
| 3865 |
XIM /* im */ |
| 3866 |
); |
| 3867 |
|
| 3868 |
extern char *XGetIMValues( |
| 3869 |
XIM /* im */, ... |
| 3870 |
) _X_SENTINEL(0); |
| 3871 |
|
| 3872 |
extern char *XSetIMValues( |
| 3873 |
XIM /* im */, ... |
| 3874 |
) _X_SENTINEL(0); |
| 3875 |
|
| 3876 |
extern Display *XDisplayOfIM( |
| 3877 |
XIM /* im */ |
| 3878 |
); |
| 3879 |
|
| 3880 |
extern char *XLocaleOfIM( |
| 3881 |
XIM /* im*/ |
| 3882 |
); |
| 3883 |
|
| 3884 |
extern XIC XCreateIC( |
| 3885 |
XIM /* im */, ... |
| 3886 |
) _X_SENTINEL(0); |
| 3887 |
|
| 3888 |
extern void XDestroyIC( |
| 3889 |
XIC /* ic */ |
| 3890 |
); |
| 3891 |
|
| 3892 |
extern void XSetICFocus( |
| 3893 |
XIC /* ic */ |
| 3894 |
); |
| 3895 |
|
| 3896 |
extern void XUnsetICFocus( |
| 3897 |
XIC /* ic */ |
| 3898 |
); |
| 3899 |
|
| 3900 |
extern wchar_t *XwcResetIC( |
| 3901 |
XIC /* ic */ |
| 3902 |
); |
| 3903 |
|
| 3904 |
extern char *XmbResetIC( |
| 3905 |
XIC /* ic */ |
| 3906 |
); |
| 3907 |
|
| 3908 |
extern char *Xutf8ResetIC( |
| 3909 |
XIC /* ic */ |
| 3910 |
); |
| 3911 |
|
| 3912 |
extern char *XSetICValues( |
| 3913 |
XIC /* ic */, ... |
| 3914 |
) _X_SENTINEL(0); |
| 3915 |
|
| 3916 |
extern char *XGetICValues( |
| 3917 |
XIC /* ic */, ... |
| 3918 |
) _X_SENTINEL(0); |
| 3919 |
|
| 3920 |
extern XIM XIMOfIC( |
| 3921 |
XIC /* ic */ |
| 3922 |
); |
| 3923 |
|
| 3924 |
extern Bool XFilterEvent( |
| 3925 |
XEvent* /* event */, |
| 3926 |
Window /* window */ |
| 3927 |
); |
| 3928 |
|
| 3929 |
extern int XmbLookupString( |
| 3930 |
XIC /* ic */, |
| 3931 |
XKeyPressedEvent* /* event */, |
| 3932 |
char* /* buffer_return */, |
| 3933 |
int /* bytes_buffer */, |
| 3934 |
KeySym* /* keysym_return */, |
| 3935 |
Status* /* status_return */ |
| 3936 |
); |
| 3937 |
|
| 3938 |
extern int XwcLookupString( |
| 3939 |
XIC /* ic */, |
| 3940 |
XKeyPressedEvent* /* event */, |
| 3941 |
wchar_t* /* buffer_return */, |
| 3942 |
int /* wchars_buffer */, |
| 3943 |
KeySym* /* keysym_return */, |
| 3944 |
Status* /* status_return */ |
| 3945 |
); |
| 3946 |
|
| 3947 |
extern int Xutf8LookupString( |
| 3948 |
XIC /* ic */, |
| 3949 |
XKeyPressedEvent* /* event */, |
| 3950 |
char* /* buffer_return */, |
| 3951 |
int /* bytes_buffer */, |
| 3952 |
KeySym* /* keysym_return */, |
| 3953 |
Status* /* status_return */ |
| 3954 |
); |
| 3955 |
|
| 3956 |
extern XVaNestedList XVaCreateNestedList( |
| 3957 |
int /*unused*/, ... |
| 3958 |
) _X_SENTINEL(0); |
| 3959 |
|
| 3960 |
/* internal connections for IMs */ |
| 3961 |
|
| 3962 |
extern Bool XRegisterIMInstantiateCallback( |
| 3963 |
Display* /* dpy */, |
| 3964 |
struct _XrmHashBucketRec* /* rdb */, |
| 3965 |
char* /* res_name */, |
| 3966 |
char* /* res_class */, |
| 3967 |
XIDProc /* callback */, |
| 3968 |
XPointer /* client_data */ |
| 3969 |
); |
| 3970 |
|
| 3971 |
extern Bool XUnregisterIMInstantiateCallback( |
| 3972 |
Display* /* dpy */, |
| 3973 |
struct _XrmHashBucketRec* /* rdb */, |
| 3974 |
char* /* res_name */, |
| 3975 |
char* /* res_class */, |
| 3976 |
XIDProc /* callback */, |
| 3977 |
XPointer /* client_data */ |
| 3978 |
); |
| 3979 |
|
| 3980 |
typedef void (*XConnectionWatchProc)( |
| 3981 |
Display* /* dpy */, |
| 3982 |
XPointer /* client_data */, |
| 3983 |
int /* fd */, |
| 3984 |
Bool /* opening */, /* open or close flag */ |
| 3985 |
XPointer* /* watch_data */ /* open sets, close uses */ |
| 3986 |
); |
| 3987 |
|
| 3988 |
|
| 3989 |
extern Status XInternalConnectionNumbers( |
| 3990 |
Display* /* dpy */, |
| 3991 |
int** /* fd_return */, |
| 3992 |
int* /* count_return */ |
| 3993 |
); |
| 3994 |
|
| 3995 |
extern void XProcessInternalConnection( |
| 3996 |
Display* /* dpy */, |
| 3997 |
int /* fd */ |
| 3998 |
); |
| 3999 |
|
| 4000 |
extern Status XAddConnectionWatch( |
| 4001 |
Display* /* dpy */, |
| 4002 |
XConnectionWatchProc /* callback */, |
| 4003 |
XPointer /* client_data */ |
| 4004 |
); |
| 4005 |
|
| 4006 |
extern void XRemoveConnectionWatch( |
| 4007 |
Display* /* dpy */, |
| 4008 |
XConnectionWatchProc /* callback */, |
| 4009 |
XPointer /* client_data */ |
| 4010 |
); |
| 4011 |
|
| 4012 |
extern void XSetAuthorization( |
| 4013 |
char * /* name */, |
| 4014 |
int /* namelen */, |
| 4015 |
char * /* data */, |
| 4016 |
int /* datalen */ |
| 4017 |
); |
| 4018 |
|
| 4019 |
extern int _Xmbtowc( |
| 4020 |
wchar_t * /* wstr */, |
| 4021 |
char * /* str */, |
| 4022 |
int /* len */ |
| 4023 |
); |
| 4024 |
|
| 4025 |
extern int _Xwctomb( |
| 4026 |
char * /* str */, |
| 4027 |
wchar_t /* wc */ |
| 4028 |
); |
| 4029 |
|
| 4030 |
extern Bool XGetEventData( |
| 4031 |
Display* /* dpy */, |
| 4032 |
XGenericEventCookie* /* cookie*/ |
| 4033 |
); |
| 4034 |
|
| 4035 |
extern void XFreeEventData( |
| 4036 |
Display* /* dpy */, |
| 4037 |
XGenericEventCookie* /* cookie*/ |
| 4038 |
); |
| 4039 |
|
| 4040 |
#ifdef __clang__ |
| 4041 |
#pragma clang diagnostic pop |
| 4042 |
#endif |
| 4043 |
|
| 4044 |
_XFUNCPROTOEND |
| 4045 |
|
| 4046 |
#endif /* #if !defined(_X11_XLIB_H_) && !defined(_XLIB_H_) */ |