File indexing completed on 2025-01-18 10:14:33
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifndef _X11_XLIB_H_
0034 #define _X11_XLIB_H_
0035
0036 #define XlibSpecificationRelease 6
0037
0038 #include <sys/types.h>
0039
0040 #if defined(__SCO__) || defined(__UNIXWARE__)
0041 #include <stdint.h>
0042 #endif
0043
0044 #include <X11/X.h>
0045
0046
0047 #include <X11/Xfuncproto.h>
0048 #include <X11/Xosdefs.h>
0049
0050 #ifndef X_WCHAR
0051 #include <stddef.h>
0052 #else
0053
0054 typedef unsigned long wchar_t;
0055 #endif
0056
0057
0058 extern int
0059 _Xmblen(
0060 char *str,
0061 int len
0062 );
0063
0064
0065
0066 #define X_HAVE_UTF8_STRING 1
0067
0068
0069
0070
0071 #ifdef __clang__
0072 #pragma clang diagnostic push
0073 #pragma clang diagnostic ignored "-Wpadded"
0074 #endif
0075
0076 typedef char *XPointer;
0077
0078 #define Bool int
0079 #define Status int
0080 #define True 1
0081 #define False 0
0082
0083 #define QueuedAlready 0
0084 #define QueuedAfterReading 1
0085 #define QueuedAfterFlush 2
0086
0087 #define ConnectionNumber(dpy) (((_XPrivDisplay)(dpy))->fd)
0088 #define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root)
0089 #define DefaultScreen(dpy) (((_XPrivDisplay)(dpy))->default_screen)
0090 #define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root)
0091 #define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual)
0092 #define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc)
0093 #define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel)
0094 #define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel)
0095 #define AllPlanes ((unsigned long)~0L)
0096 #define QLength(dpy) (((_XPrivDisplay)(dpy))->qlen)
0097 #define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width)
0098 #define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height)
0099 #define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth)
0100 #define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight)
0101 #define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
0102 #define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries)
0103 #define ScreenCount(dpy) (((_XPrivDisplay)(dpy))->nscreens)
0104 #define ServerVendor(dpy) (((_XPrivDisplay)(dpy))->vendor)
0105 #define ProtocolVersion(dpy) (((_XPrivDisplay)(dpy))->proto_major_version)
0106 #define ProtocolRevision(dpy) (((_XPrivDisplay)(dpy))->proto_minor_version)
0107 #define VendorRelease(dpy) (((_XPrivDisplay)(dpy))->release)
0108 #define DisplayString(dpy) (((_XPrivDisplay)(dpy))->display_name)
0109 #define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
0110 #define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap)
0111 #define BitmapUnit(dpy) (((_XPrivDisplay)(dpy))->bitmap_unit)
0112 #define BitmapBitOrder(dpy) (((_XPrivDisplay)(dpy))->bitmap_bit_order)
0113 #define BitmapPad(dpy) (((_XPrivDisplay)(dpy))->bitmap_pad)
0114 #define ImageByteOrder(dpy) (((_XPrivDisplay)(dpy))->byte_order)
0115 #define NextRequest(dpy) (((_XPrivDisplay)(dpy))->request + 1)
0116 #define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)(dpy))->last_request_read)
0117
0118
0119 #define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)(dpy))->screens[scr])
0120 #define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy))
0121 #define DisplayOfScreen(s) ((s)->display)
0122 #define RootWindowOfScreen(s) ((s)->root)
0123 #define BlackPixelOfScreen(s) ((s)->black_pixel)
0124 #define WhitePixelOfScreen(s) ((s)->white_pixel)
0125 #define DefaultColormapOfScreen(s)((s)->cmap)
0126 #define DefaultDepthOfScreen(s) ((s)->root_depth)
0127 #define DefaultGCOfScreen(s) ((s)->default_gc)
0128 #define DefaultVisualOfScreen(s)((s)->root_visual)
0129 #define WidthOfScreen(s) ((s)->width)
0130 #define HeightOfScreen(s) ((s)->height)
0131 #define WidthMMOfScreen(s) ((s)->mwidth)
0132 #define HeightMMOfScreen(s) ((s)->mheight)
0133 #define PlanesOfScreen(s) ((s)->root_depth)
0134 #define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries)
0135 #define MinCmapsOfScreen(s) ((s)->min_maps)
0136 #define MaxCmapsOfScreen(s) ((s)->max_maps)
0137 #define DoesSaveUnders(s) ((s)->save_unders)
0138 #define DoesBackingStore(s) ((s)->backing_store)
0139 #define EventMaskOfScreen(s) ((s)->root_input_mask)
0140
0141
0142
0143
0144 typedef struct _XExtData {
0145 int number;
0146 struct _XExtData *next;
0147 int (*free_private)(
0148 struct _XExtData *extension
0149 );
0150 XPointer private_data;
0151 } XExtData;
0152
0153
0154
0155
0156 typedef struct {
0157 int extension;
0158 int major_opcode;
0159 int first_event;
0160 int first_error;
0161 } XExtCodes;
0162
0163
0164
0165
0166
0167 typedef struct {
0168 int depth;
0169 int bits_per_pixel;
0170 int scanline_pad;
0171 } XPixmapFormatValues;
0172
0173
0174
0175
0176
0177 typedef struct {
0178 int function;
0179 unsigned long plane_mask;
0180 unsigned long foreground;
0181 unsigned long background;
0182 int line_width;
0183 int line_style;
0184 int cap_style;
0185
0186 int join_style;
0187 int fill_style;
0188
0189 int fill_rule;
0190 int arc_mode;
0191 Pixmap tile;
0192 Pixmap stipple;
0193 int ts_x_origin;
0194 int ts_y_origin;
0195 Font font;
0196 int subwindow_mode;
0197 Bool graphics_exposures;
0198 int clip_x_origin;
0199 int clip_y_origin;
0200 Pixmap clip_mask;
0201 int dash_offset;
0202 char dashes;
0203 } XGCValues;
0204
0205
0206
0207
0208
0209
0210 typedef struct _XGC
0211 #ifdef XLIB_ILLEGAL_ACCESS
0212 {
0213 XExtData *ext_data;
0214 GContext gid;
0215
0216 }
0217 #endif
0218 *GC;
0219
0220
0221
0222
0223 typedef struct {
0224 XExtData *ext_data;
0225 VisualID visualid;
0226 #if defined(__cplusplus) || defined(c_plusplus)
0227 int c_class;
0228 #else
0229 int class;
0230 #endif
0231 unsigned long red_mask, green_mask, blue_mask;
0232 int bits_per_rgb;
0233 int map_entries;
0234 } Visual;
0235
0236
0237
0238
0239 typedef struct {
0240 int depth;
0241 int nvisuals;
0242 Visual *visuals;
0243 } Depth;
0244
0245
0246
0247
0248
0249
0250
0251 struct _XDisplay;
0252
0253 typedef struct {
0254 XExtData *ext_data;
0255 struct _XDisplay *display;
0256 Window root;
0257 int width, height;
0258 int mwidth, mheight;
0259 int ndepths;
0260 Depth *depths;
0261 int root_depth;
0262 Visual *root_visual;
0263 GC default_gc;
0264 Colormap cmap;
0265 unsigned long white_pixel;
0266 unsigned long black_pixel;
0267 int max_maps, min_maps;
0268 int backing_store;
0269 Bool save_unders;
0270 long root_input_mask;
0271 } Screen;
0272
0273
0274
0275
0276 typedef struct {
0277 XExtData *ext_data;
0278 int depth;
0279 int bits_per_pixel;
0280 int scanline_pad;
0281 } ScreenFormat;
0282
0283
0284
0285
0286 typedef struct {
0287 Pixmap background_pixmap;
0288 unsigned long background_pixel;
0289 Pixmap border_pixmap;
0290 unsigned long border_pixel;
0291 int bit_gravity;
0292 int win_gravity;
0293 int backing_store;
0294 unsigned long backing_planes;
0295 unsigned long backing_pixel;
0296 Bool save_under;
0297 long event_mask;
0298 long do_not_propagate_mask;
0299 Bool override_redirect;
0300 Colormap colormap;
0301 Cursor cursor;
0302 } XSetWindowAttributes;
0303
0304 typedef struct {
0305 int x, y;
0306 int width, height;
0307 int border_width;
0308 int depth;
0309 Visual *visual;
0310 Window root;
0311 #if defined(__cplusplus) || defined(c_plusplus)
0312 int c_class;
0313 #else
0314 int class;
0315 #endif
0316 int bit_gravity;
0317 int win_gravity;
0318 int backing_store;
0319 unsigned long backing_planes;
0320 unsigned long backing_pixel;
0321 Bool save_under;
0322 Colormap colormap;
0323 Bool map_installed;
0324 int map_state;
0325 long all_event_masks;
0326 long your_event_mask;
0327 long do_not_propagate_mask;
0328 Bool override_redirect;
0329 Screen *screen;
0330 } XWindowAttributes;
0331
0332
0333
0334
0335
0336
0337 typedef struct {
0338 int family;
0339 int length;
0340 char *address;
0341 } XHostAddress;
0342
0343
0344
0345
0346 typedef struct {
0347 int typelength;
0348 int valuelength;
0349 char *type;
0350 char *value;
0351 } XServerInterpretedAddress;
0352
0353
0354
0355
0356 typedef struct _XImage {
0357 int width, height;
0358 int xoffset;
0359 int format;
0360 char *data;
0361 int byte_order;
0362 int bitmap_unit;
0363 int bitmap_bit_order;
0364 int bitmap_pad;
0365 int depth;
0366 int bytes_per_line;
0367 int bits_per_pixel;
0368 unsigned long red_mask;
0369 unsigned long green_mask;
0370 unsigned long blue_mask;
0371 XPointer obdata;
0372 struct funcs {
0373 struct _XImage *(*create_image)(
0374 struct _XDisplay* ,
0375 Visual* ,
0376 unsigned int ,
0377 int ,
0378 int ,
0379 char* ,
0380 unsigned int ,
0381 unsigned int ,
0382 int ,
0383 int );
0384 int (*destroy_image) (struct _XImage *);
0385 unsigned long (*get_pixel) (struct _XImage *, int, int);
0386 int (*put_pixel) (struct _XImage *, int, int, unsigned long);
0387 struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int);
0388 int (*add_pixel) (struct _XImage *, long);
0389 } f;
0390 } XImage;
0391
0392
0393
0394
0395 typedef struct {
0396 int x, y;
0397 int width, height;
0398 int border_width;
0399 Window sibling;
0400 int stack_mode;
0401 } XWindowChanges;
0402
0403
0404
0405
0406 typedef struct {
0407 unsigned long pixel;
0408 unsigned short red, green, blue;
0409 char flags;
0410 char pad;
0411 } XColor;
0412
0413
0414
0415
0416
0417
0418 typedef struct {
0419 short x1, y1, x2, y2;
0420 } XSegment;
0421
0422 typedef struct {
0423 short x, y;
0424 } XPoint;
0425
0426 typedef struct {
0427 short x, y;
0428 unsigned short width, height;
0429 } XRectangle;
0430
0431 typedef struct {
0432 short x, y;
0433 unsigned short width, height;
0434 short angle1, angle2;
0435 } XArc;
0436
0437
0438
0439
0440 typedef struct {
0441 int key_click_percent;
0442 int bell_percent;
0443 int bell_pitch;
0444 int bell_duration;
0445 int led;
0446 int led_mode;
0447 int key;
0448 int auto_repeat_mode;
0449 } XKeyboardControl;
0450
0451
0452
0453 typedef struct {
0454 int key_click_percent;
0455 int bell_percent;
0456 unsigned int bell_pitch, bell_duration;
0457 unsigned long led_mask;
0458 int global_auto_repeat;
0459 char auto_repeats[32];
0460 } XKeyboardState;
0461
0462
0463
0464 typedef struct {
0465 Time time;
0466 short x, y;
0467 } XTimeCoord;
0468
0469
0470
0471 typedef struct {
0472 int max_keypermod;
0473 KeyCode *modifiermap;
0474 } XModifierKeymap;
0475
0476
0477
0478
0479
0480
0481
0482 #ifndef XLIB_ILLEGAL_ACCESS
0483 typedef struct _XDisplay Display;
0484 #endif
0485
0486 struct _XPrivate;
0487 struct _XrmHashBucketRec;
0488
0489 typedef struct
0490 #ifdef XLIB_ILLEGAL_ACCESS
0491 _XDisplay
0492 #endif
0493 {
0494 XExtData *ext_data;
0495 struct _XPrivate *private1;
0496 int fd;
0497 int private2;
0498 int proto_major_version;
0499 int proto_minor_version;
0500 char *vendor;
0501 XID private3;
0502 XID private4;
0503 XID private5;
0504 int private6;
0505 XID (*resource_alloc)(
0506 struct _XDisplay*
0507 );
0508 int byte_order;
0509 int bitmap_unit;
0510 int bitmap_pad;
0511 int bitmap_bit_order;
0512 int nformats;
0513 ScreenFormat *pixmap_format;
0514 int private8;
0515 int release;
0516 struct _XPrivate *private9, *private10;
0517 int qlen;
0518 unsigned long last_request_read;
0519 unsigned long request;
0520 XPointer private11;
0521 XPointer private12;
0522 XPointer private13;
0523 XPointer private14;
0524 unsigned max_request_size;
0525 struct _XrmHashBucketRec *db;
0526 int (*private15)(
0527 struct _XDisplay*
0528 );
0529 char *display_name;
0530 int default_screen;
0531 int nscreens;
0532 Screen *screens;
0533 unsigned long motion_buffer;
0534 unsigned long private16;
0535 int min_keycode;
0536 int max_keycode;
0537 XPointer private17;
0538 XPointer private18;
0539 int private19;
0540 char *xdefaults;
0541
0542 }
0543 #ifdef XLIB_ILLEGAL_ACCESS
0544 Display,
0545 #endif
0546 *_XPrivDisplay;
0547
0548 #undef _XEVENT_
0549 #ifndef _XEVENT_
0550
0551
0552
0553 typedef struct {
0554 int type;
0555 unsigned long serial;
0556 Bool send_event;
0557 Display *display;
0558 Window window;
0559 Window root;
0560 Window subwindow;
0561 Time time;
0562 int x, y;
0563 int x_root, y_root;
0564 unsigned int state;
0565 unsigned int keycode;
0566 Bool same_screen;
0567 } XKeyEvent;
0568 typedef XKeyEvent XKeyPressedEvent;
0569 typedef XKeyEvent XKeyReleasedEvent;
0570
0571 typedef struct {
0572 int type;
0573 unsigned long serial;
0574 Bool send_event;
0575 Display *display;
0576 Window window;
0577 Window root;
0578 Window subwindow;
0579 Time time;
0580 int x, y;
0581 int x_root, y_root;
0582 unsigned int state;
0583 unsigned int button;
0584 Bool same_screen;
0585 } XButtonEvent;
0586 typedef XButtonEvent XButtonPressedEvent;
0587 typedef XButtonEvent XButtonReleasedEvent;
0588
0589 typedef struct {
0590 int type;
0591 unsigned long serial;
0592 Bool send_event;
0593 Display *display;
0594 Window window;
0595 Window root;
0596 Window subwindow;
0597 Time time;
0598 int x, y;
0599 int x_root, y_root;
0600 unsigned int state;
0601 char is_hint;
0602 Bool same_screen;
0603 } XMotionEvent;
0604 typedef XMotionEvent XPointerMovedEvent;
0605
0606 typedef struct {
0607 int type;
0608 unsigned long serial;
0609 Bool send_event;
0610 Display *display;
0611 Window window;
0612 Window root;
0613 Window subwindow;
0614 Time time;
0615 int x, y;
0616 int x_root, y_root;
0617 int mode;
0618 int detail;
0619
0620
0621
0622
0623 Bool same_screen;
0624 Bool focus;
0625 unsigned int state;
0626 } XCrossingEvent;
0627 typedef XCrossingEvent XEnterWindowEvent;
0628 typedef XCrossingEvent XLeaveWindowEvent;
0629
0630 typedef struct {
0631 int type;
0632 unsigned long serial;
0633 Bool send_event;
0634 Display *display;
0635 Window window;
0636 int mode;
0637
0638 int detail;
0639
0640
0641
0642
0643
0644 } XFocusChangeEvent;
0645 typedef XFocusChangeEvent XFocusInEvent;
0646 typedef XFocusChangeEvent XFocusOutEvent;
0647
0648
0649 typedef struct {
0650 int type;
0651 unsigned long serial;
0652 Bool send_event;
0653 Display *display;
0654 Window window;
0655 char key_vector[32];
0656 } XKeymapEvent;
0657
0658 typedef struct {
0659 int type;
0660 unsigned long serial;
0661 Bool send_event;
0662 Display *display;
0663 Window window;
0664 int x, y;
0665 int width, height;
0666 int count;
0667 } XExposeEvent;
0668
0669 typedef struct {
0670 int type;
0671 unsigned long serial;
0672 Bool send_event;
0673 Display *display;
0674 Drawable drawable;
0675 int x, y;
0676 int width, height;
0677 int count;
0678 int major_code;
0679 int minor_code;
0680 } XGraphicsExposeEvent;
0681
0682 typedef struct {
0683 int type;
0684 unsigned long serial;
0685 Bool send_event;
0686 Display *display;
0687 Drawable drawable;
0688 int major_code;
0689 int minor_code;
0690 } XNoExposeEvent;
0691
0692 typedef struct {
0693 int type;
0694 unsigned long serial;
0695 Bool send_event;
0696 Display *display;
0697 Window window;
0698 int state;
0699 } XVisibilityEvent;
0700
0701 typedef struct {
0702 int type;
0703 unsigned long serial;
0704 Bool send_event;
0705 Display *display;
0706 Window parent;
0707 Window window;
0708 int x, y;
0709 int width, height;
0710 int border_width;
0711 Bool override_redirect;
0712 } XCreateWindowEvent;
0713
0714 typedef struct {
0715 int type;
0716 unsigned long serial;
0717 Bool send_event;
0718 Display *display;
0719 Window event;
0720 Window window;
0721 } XDestroyWindowEvent;
0722
0723 typedef struct {
0724 int type;
0725 unsigned long serial;
0726 Bool send_event;
0727 Display *display;
0728 Window event;
0729 Window window;
0730 Bool from_configure;
0731 } XUnmapEvent;
0732
0733 typedef struct {
0734 int type;
0735 unsigned long serial;
0736 Bool send_event;
0737 Display *display;
0738 Window event;
0739 Window window;
0740 Bool override_redirect;
0741 } XMapEvent;
0742
0743 typedef struct {
0744 int type;
0745 unsigned long serial;
0746 Bool send_event;
0747 Display *display;
0748 Window parent;
0749 Window window;
0750 } XMapRequestEvent;
0751
0752 typedef struct {
0753 int type;
0754 unsigned long serial;
0755 Bool send_event;
0756 Display *display;
0757 Window event;
0758 Window window;
0759 Window parent;
0760 int x, y;
0761 Bool override_redirect;
0762 } XReparentEvent;
0763
0764 typedef struct {
0765 int type;
0766 unsigned long serial;
0767 Bool send_event;
0768 Display *display;
0769 Window event;
0770 Window window;
0771 int x, y;
0772 int width, height;
0773 int border_width;
0774 Window above;
0775 Bool override_redirect;
0776 } XConfigureEvent;
0777
0778 typedef struct {
0779 int type;
0780 unsigned long serial;
0781 Bool send_event;
0782 Display *display;
0783 Window event;
0784 Window window;
0785 int x, y;
0786 } XGravityEvent;
0787
0788 typedef struct {
0789 int type;
0790 unsigned long serial;
0791 Bool send_event;
0792 Display *display;
0793 Window window;
0794 int width, height;
0795 } XResizeRequestEvent;
0796
0797 typedef struct {
0798 int type;
0799 unsigned long serial;
0800 Bool send_event;
0801 Display *display;
0802 Window parent;
0803 Window window;
0804 int x, y;
0805 int width, height;
0806 int border_width;
0807 Window above;
0808 int detail;
0809 unsigned long value_mask;
0810 } XConfigureRequestEvent;
0811
0812 typedef struct {
0813 int type;
0814 unsigned long serial;
0815 Bool send_event;
0816 Display *display;
0817 Window event;
0818 Window window;
0819 int place;
0820 } XCirculateEvent;
0821
0822 typedef struct {
0823 int type;
0824 unsigned long serial;
0825 Bool send_event;
0826 Display *display;
0827 Window parent;
0828 Window window;
0829 int place;
0830 } XCirculateRequestEvent;
0831
0832 typedef struct {
0833 int type;
0834 unsigned long serial;
0835 Bool send_event;
0836 Display *display;
0837 Window window;
0838 Atom atom;
0839 Time time;
0840 int state;
0841 } XPropertyEvent;
0842
0843 typedef struct {
0844 int type;
0845 unsigned long serial;
0846 Bool send_event;
0847 Display *display;
0848 Window window;
0849 Atom selection;
0850 Time time;
0851 } XSelectionClearEvent;
0852
0853 typedef struct {
0854 int type;
0855 unsigned long serial;
0856 Bool send_event;
0857 Display *display;
0858 Window owner;
0859 Window requestor;
0860 Atom selection;
0861 Atom target;
0862 Atom property;
0863 Time time;
0864 } XSelectionRequestEvent;
0865
0866 typedef struct {
0867 int type;
0868 unsigned long serial;
0869 Bool send_event;
0870 Display *display;
0871 Window requestor;
0872 Atom selection;
0873 Atom target;
0874 Atom property;
0875 Time time;
0876 } XSelectionEvent;
0877
0878 typedef struct {
0879 int type;
0880 unsigned long serial;
0881 Bool send_event;
0882 Display *display;
0883 Window window;
0884 Colormap colormap;
0885 #if defined(__cplusplus) || defined(c_plusplus)
0886 Bool c_new;
0887 #else
0888 Bool new;
0889 #endif
0890 int state;
0891 } XColormapEvent;
0892
0893 typedef struct {
0894 int type;
0895 unsigned long serial;
0896 Bool send_event;
0897 Display *display;
0898 Window window;
0899 Atom message_type;
0900 int format;
0901 union {
0902 char b[20];
0903 short s[10];
0904 long l[5];
0905 } data;
0906 } XClientMessageEvent;
0907
0908 typedef struct {
0909 int type;
0910 unsigned long serial;
0911 Bool send_event;
0912 Display *display;
0913 Window window;
0914 int request;
0915
0916 int first_keycode;
0917 int count;
0918 } XMappingEvent;
0919
0920 typedef struct {
0921 int type;
0922 Display *display;
0923 XID resourceid;
0924 unsigned long serial;
0925 unsigned char error_code;
0926 unsigned char request_code;
0927 unsigned char minor_code;
0928 } XErrorEvent;
0929
0930 typedef struct {
0931 int type;
0932 unsigned long serial;
0933 Bool send_event;
0934 Display *display;
0935 Window window;
0936 } XAnyEvent;
0937
0938
0939
0940
0941
0942
0943
0944 typedef struct
0945 {
0946 int type;
0947 unsigned long serial;
0948 Bool send_event;
0949 Display *display;
0950 int extension;
0951 int evtype;
0952 } XGenericEvent;
0953
0954 typedef struct {
0955 int type;
0956 unsigned long serial;
0957 Bool send_event;
0958 Display *display;
0959 int extension;
0960 int evtype;
0961 unsigned int cookie;
0962 void *data;
0963 } XGenericEventCookie;
0964
0965
0966
0967
0968
0969 typedef union _XEvent {
0970 int type;
0971 XAnyEvent xany;
0972 XKeyEvent xkey;
0973 XButtonEvent xbutton;
0974 XMotionEvent xmotion;
0975 XCrossingEvent xcrossing;
0976 XFocusChangeEvent xfocus;
0977 XExposeEvent xexpose;
0978 XGraphicsExposeEvent xgraphicsexpose;
0979 XNoExposeEvent xnoexpose;
0980 XVisibilityEvent xvisibility;
0981 XCreateWindowEvent xcreatewindow;
0982 XDestroyWindowEvent xdestroywindow;
0983 XUnmapEvent xunmap;
0984 XMapEvent xmap;
0985 XMapRequestEvent xmaprequest;
0986 XReparentEvent xreparent;
0987 XConfigureEvent xconfigure;
0988 XGravityEvent xgravity;
0989 XResizeRequestEvent xresizerequest;
0990 XConfigureRequestEvent xconfigurerequest;
0991 XCirculateEvent xcirculate;
0992 XCirculateRequestEvent xcirculaterequest;
0993 XPropertyEvent xproperty;
0994 XSelectionClearEvent xselectionclear;
0995 XSelectionRequestEvent xselectionrequest;
0996 XSelectionEvent xselection;
0997 XColormapEvent xcolormap;
0998 XClientMessageEvent xclient;
0999 XMappingEvent xmapping;
1000 XErrorEvent xerror;
1001 XKeymapEvent xkeymap;
1002 XGenericEvent xgeneric;
1003 XGenericEventCookie xcookie;
1004 long pad[24];
1005 } XEvent;
1006 #endif
1007
1008 #define XAllocID(dpy) ((*((_XPrivDisplay)(dpy))->resource_alloc)((dpy)))
1009
1010
1011
1012
1013 typedef struct {
1014 short lbearing;
1015 short rbearing;
1016 short width;
1017 short ascent;
1018 short descent;
1019 unsigned short attributes;
1020 } XCharStruct;
1021
1022
1023
1024
1025
1026 typedef struct {
1027 Atom name;
1028 unsigned long card32;
1029 } XFontProp;
1030
1031 typedef struct {
1032 XExtData *ext_data;
1033 Font fid;
1034 unsigned direction;
1035 unsigned min_char_or_byte2;
1036 unsigned max_char_or_byte2;
1037 unsigned min_byte1;
1038 unsigned max_byte1;
1039 Bool all_chars_exist;
1040 unsigned default_char;
1041 int n_properties;
1042 XFontProp *properties;
1043 XCharStruct min_bounds;
1044 XCharStruct max_bounds;
1045 XCharStruct *per_char;
1046 int ascent;
1047 int descent;
1048 } XFontStruct;
1049
1050
1051
1052
1053 typedef struct {
1054 char *chars;
1055 int nchars;
1056 int delta;
1057 Font font;
1058 } XTextItem;
1059
1060 typedef struct {
1061 unsigned char byte1;
1062 unsigned char byte2;
1063 } XChar2b;
1064
1065 typedef struct {
1066 XChar2b *chars;
1067 int nchars;
1068 int delta;
1069 Font font;
1070 } XTextItem16;
1071
1072
1073 typedef union { Display *display;
1074 GC gc;
1075 Visual *visual;
1076 Screen *screen;
1077 ScreenFormat *pixmap_format;
1078 XFontStruct *font; } XEDataObject;
1079
1080 typedef struct {
1081 XRectangle max_ink_extent;
1082 XRectangle max_logical_extent;
1083 } XFontSetExtents;
1084
1085
1086
1087
1088
1089 typedef struct _XOM *XOM;
1090 typedef struct _XOC *XOC, *XFontSet;
1091
1092 typedef struct {
1093 char *chars;
1094 int nchars;
1095 int delta;
1096 XFontSet font_set;
1097 } XmbTextItem;
1098
1099 typedef struct {
1100 wchar_t *chars;
1101 int nchars;
1102 int delta;
1103 XFontSet font_set;
1104 } XwcTextItem;
1105
1106 #define XNRequiredCharSet "requiredCharSet"
1107 #define XNQueryOrientation "queryOrientation"
1108 #define XNBaseFontName "baseFontName"
1109 #define XNOMAutomatic "omAutomatic"
1110 #define XNMissingCharSet "missingCharSet"
1111 #define XNDefaultString "defaultString"
1112 #define XNOrientation "orientation"
1113 #define XNDirectionalDependentDrawing "directionalDependentDrawing"
1114 #define XNContextualDrawing "contextualDrawing"
1115 #define XNFontInfo "fontInfo"
1116
1117 typedef struct {
1118 int charset_count;
1119 char **charset_list;
1120 } XOMCharSetList;
1121
1122 typedef enum {
1123 XOMOrientation_LTR_TTB,
1124 XOMOrientation_RTL_TTB,
1125 XOMOrientation_TTB_LTR,
1126 XOMOrientation_TTB_RTL,
1127 XOMOrientation_Context
1128 } XOrientation;
1129
1130 typedef struct {
1131 int num_orientation;
1132 XOrientation *orientation;
1133 } XOMOrientation;
1134
1135 typedef struct {
1136 int num_font;
1137 XFontStruct **font_struct_list;
1138 char **font_name_list;
1139 } XOMFontInfo;
1140
1141 typedef struct _XIM *XIM;
1142 typedef struct _XIC *XIC;
1143
1144 typedef void (*XIMProc)(
1145 XIM,
1146 XPointer,
1147 XPointer
1148 );
1149
1150 typedef Bool (*XICProc)(
1151 XIC,
1152 XPointer,
1153 XPointer
1154 );
1155
1156 typedef void (*XIDProc)(
1157 Display*,
1158 XPointer,
1159 XPointer
1160 );
1161
1162 typedef unsigned long XIMStyle;
1163
1164 typedef struct {
1165 unsigned short count_styles;
1166 XIMStyle *supported_styles;
1167 } XIMStyles;
1168
1169 #define XIMPreeditArea 0x0001L
1170 #define XIMPreeditCallbacks 0x0002L
1171 #define XIMPreeditPosition 0x0004L
1172 #define XIMPreeditNothing 0x0008L
1173 #define XIMPreeditNone 0x0010L
1174 #define XIMStatusArea 0x0100L
1175 #define XIMStatusCallbacks 0x0200L
1176 #define XIMStatusNothing 0x0400L
1177 #define XIMStatusNone 0x0800L
1178
1179 #define XNVaNestedList "XNVaNestedList"
1180 #define XNQueryInputStyle "queryInputStyle"
1181 #define XNClientWindow "clientWindow"
1182 #define XNInputStyle "inputStyle"
1183 #define XNFocusWindow "focusWindow"
1184 #define XNResourceName "resourceName"
1185 #define XNResourceClass "resourceClass"
1186 #define XNGeometryCallback "geometryCallback"
1187 #define XNDestroyCallback "destroyCallback"
1188 #define XNFilterEvents "filterEvents"
1189 #define XNPreeditStartCallback "preeditStartCallback"
1190 #define XNPreeditDoneCallback "preeditDoneCallback"
1191 #define XNPreeditDrawCallback "preeditDrawCallback"
1192 #define XNPreeditCaretCallback "preeditCaretCallback"
1193 #define XNPreeditStateNotifyCallback "preeditStateNotifyCallback"
1194 #define XNPreeditAttributes "preeditAttributes"
1195 #define XNStatusStartCallback "statusStartCallback"
1196 #define XNStatusDoneCallback "statusDoneCallback"
1197 #define XNStatusDrawCallback "statusDrawCallback"
1198 #define XNStatusAttributes "statusAttributes"
1199 #define XNArea "area"
1200 #define XNAreaNeeded "areaNeeded"
1201 #define XNSpotLocation "spotLocation"
1202 #define XNColormap "colorMap"
1203 #define XNStdColormap "stdColorMap"
1204 #define XNForeground "foreground"
1205 #define XNBackground "background"
1206 #define XNBackgroundPixmap "backgroundPixmap"
1207 #define XNFontSet "fontSet"
1208 #define XNLineSpace "lineSpace"
1209 #define XNCursor "cursor"
1210
1211 #define XNQueryIMValuesList "queryIMValuesList"
1212 #define XNQueryICValuesList "queryICValuesList"
1213 #define XNVisiblePosition "visiblePosition"
1214 #define XNR6PreeditCallback "r6PreeditCallback"
1215 #define XNStringConversionCallback "stringConversionCallback"
1216 #define XNStringConversion "stringConversion"
1217 #define XNResetState "resetState"
1218 #define XNHotKey "hotKey"
1219 #define XNHotKeyState "hotKeyState"
1220 #define XNPreeditState "preeditState"
1221 #define XNSeparatorofNestedList "separatorofNestedList"
1222
1223 #define XBufferOverflow -1
1224 #define XLookupNone 1
1225 #define XLookupChars 2
1226 #define XLookupKeySym 3
1227 #define XLookupBoth 4
1228
1229 typedef void *XVaNestedList;
1230
1231 typedef struct {
1232 XPointer client_data;
1233 XIMProc callback;
1234 } XIMCallback;
1235
1236 typedef struct {
1237 XPointer client_data;
1238 XICProc callback;
1239 } XICCallback;
1240
1241 typedef unsigned long XIMFeedback;
1242
1243 #define XIMReverse 1L
1244 #define XIMUnderline (1L<<1)
1245 #define XIMHighlight (1L<<2)
1246 #define XIMPrimary (1L<<5)
1247 #define XIMSecondary (1L<<6)
1248 #define XIMTertiary (1L<<7)
1249 #define XIMVisibleToForward (1L<<8)
1250 #define XIMVisibleToBackword (1L<<9)
1251 #define XIMVisibleToCenter (1L<<10)
1252
1253 typedef struct _XIMText {
1254 unsigned short length;
1255 XIMFeedback *feedback;
1256 Bool encoding_is_wchar;
1257 union {
1258 char *multi_byte;
1259 wchar_t *wide_char;
1260 } string;
1261 } XIMText;
1262
1263 typedef unsigned long XIMPreeditState;
1264
1265 #define XIMPreeditUnKnown 0L
1266 #define XIMPreeditEnable 1L
1267 #define XIMPreeditDisable (1L<<1)
1268
1269 typedef struct _XIMPreeditStateNotifyCallbackStruct {
1270 XIMPreeditState state;
1271 } XIMPreeditStateNotifyCallbackStruct;
1272
1273 typedef unsigned long XIMResetState;
1274
1275 #define XIMInitialState 1L
1276 #define XIMPreserveState (1L<<1)
1277
1278 typedef unsigned long XIMStringConversionFeedback;
1279
1280 #define XIMStringConversionLeftEdge (0x00000001)
1281 #define XIMStringConversionRightEdge (0x00000002)
1282 #define XIMStringConversionTopEdge (0x00000004)
1283 #define XIMStringConversionBottomEdge (0x00000008)
1284 #define XIMStringConversionConcealed (0x00000010)
1285 #define XIMStringConversionWrapped (0x00000020)
1286
1287 typedef struct _XIMStringConversionText {
1288 unsigned short length;
1289 XIMStringConversionFeedback *feedback;
1290 Bool encoding_is_wchar;
1291 union {
1292 char *mbs;
1293 wchar_t *wcs;
1294 } string;
1295 } XIMStringConversionText;
1296
1297 typedef unsigned short XIMStringConversionPosition;
1298
1299 typedef unsigned short XIMStringConversionType;
1300
1301 #define XIMStringConversionBuffer (0x0001)
1302 #define XIMStringConversionLine (0x0002)
1303 #define XIMStringConversionWord (0x0003)
1304 #define XIMStringConversionChar (0x0004)
1305
1306 typedef unsigned short XIMStringConversionOperation;
1307
1308 #define XIMStringConversionSubstitution (0x0001)
1309 #define XIMStringConversionRetrieval (0x0002)
1310
1311 typedef enum {
1312 XIMForwardChar, XIMBackwardChar,
1313 XIMForwardWord, XIMBackwardWord,
1314 XIMCaretUp, XIMCaretDown,
1315 XIMNextLine, XIMPreviousLine,
1316 XIMLineStart, XIMLineEnd,
1317 XIMAbsolutePosition,
1318 XIMDontChange
1319 } XIMCaretDirection;
1320
1321 typedef struct _XIMStringConversionCallbackStruct {
1322 XIMStringConversionPosition position;
1323 XIMCaretDirection direction;
1324 XIMStringConversionOperation operation;
1325 unsigned short factor;
1326 XIMStringConversionText *text;
1327 } XIMStringConversionCallbackStruct;
1328
1329 typedef struct _XIMPreeditDrawCallbackStruct {
1330 int caret;
1331 int chg_first;
1332 int chg_length;
1333 XIMText *text;
1334 } XIMPreeditDrawCallbackStruct;
1335
1336 typedef enum {
1337 XIMIsInvisible,
1338 XIMIsPrimary,
1339 XIMIsSecondary
1340 } XIMCaretStyle;
1341
1342 typedef struct _XIMPreeditCaretCallbackStruct {
1343 int position;
1344 XIMCaretDirection direction;
1345 XIMCaretStyle style;
1346 } XIMPreeditCaretCallbackStruct;
1347
1348 typedef enum {
1349 XIMTextType,
1350 XIMBitmapType
1351 } XIMStatusDataType;
1352
1353 typedef struct _XIMStatusDrawCallbackStruct {
1354 XIMStatusDataType type;
1355 union {
1356 XIMText *text;
1357 Pixmap bitmap;
1358 } data;
1359 } XIMStatusDrawCallbackStruct;
1360
1361 typedef struct _XIMHotKeyTrigger {
1362 KeySym keysym;
1363 int modifier;
1364 int modifier_mask;
1365 } XIMHotKeyTrigger;
1366
1367 typedef struct _XIMHotKeyTriggers {
1368 int num_hot_key;
1369 XIMHotKeyTrigger *key;
1370 } XIMHotKeyTriggers;
1371
1372 typedef unsigned long XIMHotKeyState;
1373
1374 #define XIMHotKeyStateON (0x0001L)
1375 #define XIMHotKeyStateOFF (0x0002L)
1376
1377 typedef struct {
1378 unsigned short count_values;
1379 char **supported_values;
1380 } XIMValuesList;
1381
1382 _XFUNCPROTOBEGIN
1383
1384 #if defined(WIN32) && !defined(_XLIBINT_)
1385 #define _Xdebug (*_Xdebug_p)
1386 #endif
1387
1388 extern int _Xdebug;
1389
1390 extern XFontStruct *XLoadQueryFont(
1391 Display* ,
1392 _Xconst char*
1393 );
1394
1395 extern XFontStruct *XQueryFont(
1396 Display* ,
1397 XID
1398 );
1399
1400
1401 extern XTimeCoord *XGetMotionEvents(
1402 Display* ,
1403 Window ,
1404 Time ,
1405 Time ,
1406 int*
1407 );
1408
1409 extern XModifierKeymap *XDeleteModifiermapEntry(
1410 XModifierKeymap* ,
1411 #if NeedWidePrototypes
1412 unsigned int ,
1413 #else
1414 KeyCode ,
1415 #endif
1416 int
1417 );
1418
1419 extern XModifierKeymap *XGetModifierMapping(
1420 Display*
1421 );
1422
1423 extern XModifierKeymap *XInsertModifiermapEntry(
1424 XModifierKeymap* ,
1425 #if NeedWidePrototypes
1426 unsigned int ,
1427 #else
1428 KeyCode ,
1429 #endif
1430 int
1431 );
1432
1433 extern XModifierKeymap *XNewModifiermap(
1434 int
1435 );
1436
1437 extern XImage *XCreateImage(
1438 Display* ,
1439 Visual* ,
1440 unsigned int ,
1441 int ,
1442 int ,
1443 char* ,
1444 unsigned int ,
1445 unsigned int ,
1446 int ,
1447 int
1448 );
1449 extern Status XInitImage(
1450 XImage*
1451 );
1452 extern XImage *XGetImage(
1453 Display* ,
1454 Drawable ,
1455 int ,
1456 int ,
1457 unsigned int ,
1458 unsigned int ,
1459 unsigned long ,
1460 int
1461 );
1462 extern XImage *XGetSubImage(
1463 Display* ,
1464 Drawable ,
1465 int ,
1466 int ,
1467 unsigned int ,
1468 unsigned int ,
1469 unsigned long ,
1470 int ,
1471 XImage* ,
1472 int ,
1473 int
1474 );
1475
1476
1477
1478
1479 extern Display *XOpenDisplay(
1480 _Xconst char*
1481 );
1482
1483 extern void XrmInitialize(
1484 void
1485 );
1486
1487 extern char *XFetchBytes(
1488 Display* ,
1489 int*
1490 );
1491 extern char *XFetchBuffer(
1492 Display* ,
1493 int* ,
1494 int
1495 );
1496 extern char *XGetAtomName(
1497 Display* ,
1498 Atom
1499 );
1500 extern Status XGetAtomNames(
1501 Display* ,
1502 Atom* ,
1503 int ,
1504 char**
1505 );
1506 extern char *XGetDefault(
1507 Display* ,
1508 _Xconst char* ,
1509 _Xconst char*
1510 );
1511 extern char *XDisplayName(
1512 _Xconst char*
1513 );
1514 extern char *XKeysymToString(
1515 KeySym
1516 );
1517
1518 extern int (*XSynchronize(
1519 Display* ,
1520 Bool
1521 ))(
1522 Display*
1523 );
1524 extern int (*XSetAfterFunction(
1525 Display* ,
1526 int (*) (
1527 Display*
1528 )
1529 ))(
1530 Display*
1531 );
1532 extern Atom XInternAtom(
1533 Display* ,
1534 _Xconst char* ,
1535 Bool
1536 );
1537 extern Status XInternAtoms(
1538 Display* ,
1539 char** ,
1540 int ,
1541 Bool ,
1542 Atom*
1543 );
1544 extern Colormap XCopyColormapAndFree(
1545 Display* ,
1546 Colormap
1547 );
1548 extern Colormap XCreateColormap(
1549 Display* ,
1550 Window ,
1551 Visual* ,
1552 int
1553 );
1554 extern Cursor XCreatePixmapCursor(
1555 Display* ,
1556 Pixmap ,
1557 Pixmap ,
1558 XColor* ,
1559 XColor* ,
1560 unsigned int ,
1561 unsigned int
1562 );
1563 extern Cursor XCreateGlyphCursor(
1564 Display* ,
1565 Font ,
1566 Font ,
1567 unsigned int ,
1568 unsigned int ,
1569 XColor _Xconst * ,
1570 XColor _Xconst *
1571 );
1572 extern Cursor XCreateFontCursor(
1573 Display* ,
1574 unsigned int
1575 );
1576 extern Font XLoadFont(
1577 Display* ,
1578 _Xconst char*
1579 );
1580 extern GC XCreateGC(
1581 Display* ,
1582 Drawable ,
1583 unsigned long ,
1584 XGCValues*
1585 );
1586 extern GContext XGContextFromGC(
1587 GC
1588 );
1589 extern void XFlushGC(
1590 Display* ,
1591 GC
1592 );
1593 extern Pixmap XCreatePixmap(
1594 Display* ,
1595 Drawable ,
1596 unsigned int ,
1597 unsigned int ,
1598 unsigned int
1599 );
1600 extern Pixmap XCreateBitmapFromData(
1601 Display* ,
1602 Drawable ,
1603 _Xconst char* ,
1604 unsigned int ,
1605 unsigned int
1606 );
1607 extern Pixmap XCreatePixmapFromBitmapData(
1608 Display* ,
1609 Drawable ,
1610 char* ,
1611 unsigned int ,
1612 unsigned int ,
1613 unsigned long ,
1614 unsigned long ,
1615 unsigned int
1616 );
1617 extern Window XCreateSimpleWindow(
1618 Display* ,
1619 Window ,
1620 int ,
1621 int ,
1622 unsigned int ,
1623 unsigned int ,
1624 unsigned int ,
1625 unsigned long ,
1626 unsigned long
1627 );
1628 extern Window XGetSelectionOwner(
1629 Display* ,
1630 Atom
1631 );
1632 extern Window XCreateWindow(
1633 Display* ,
1634 Window ,
1635 int ,
1636 int ,
1637 unsigned int ,
1638 unsigned int ,
1639 unsigned int ,
1640 int ,
1641 unsigned int ,
1642 Visual* ,
1643 unsigned long ,
1644 XSetWindowAttributes*
1645 );
1646 extern Colormap *XListInstalledColormaps(
1647 Display* ,
1648 Window ,
1649 int*
1650 );
1651 extern char **XListFonts(
1652 Display* ,
1653 _Xconst char* ,
1654 int ,
1655 int*
1656 );
1657 extern char **XListFontsWithInfo(
1658 Display* ,
1659 _Xconst char* ,
1660 int ,
1661 int* ,
1662 XFontStruct**
1663 );
1664 extern char **XGetFontPath(
1665 Display* ,
1666 int*
1667 );
1668 extern char **XListExtensions(
1669 Display* ,
1670 int*
1671 );
1672 extern Atom *XListProperties(
1673 Display* ,
1674 Window ,
1675 int*
1676 );
1677 extern XHostAddress *XListHosts(
1678 Display* ,
1679 int* ,
1680 Bool*
1681 );
1682 _X_DEPRECATED
1683 extern KeySym XKeycodeToKeysym(
1684 Display* ,
1685 #if NeedWidePrototypes
1686 unsigned int ,
1687 #else
1688 KeyCode ,
1689 #endif
1690 int
1691 );
1692 extern KeySym XLookupKeysym(
1693 XKeyEvent* ,
1694 int
1695 );
1696 extern KeySym *XGetKeyboardMapping(
1697 Display* ,
1698 #if NeedWidePrototypes
1699 unsigned int ,
1700 #else
1701 KeyCode ,
1702 #endif
1703 int ,
1704 int*
1705 );
1706 extern KeySym XStringToKeysym(
1707 _Xconst char*
1708 );
1709 extern long XMaxRequestSize(
1710 Display*
1711 );
1712 extern long XExtendedMaxRequestSize(
1713 Display*
1714 );
1715 extern char *XResourceManagerString(
1716 Display*
1717 );
1718 extern char *XScreenResourceString(
1719 Screen*
1720 );
1721 extern unsigned long XDisplayMotionBufferSize(
1722 Display*
1723 );
1724 extern VisualID XVisualIDFromVisual(
1725 Visual*
1726 );
1727
1728
1729
1730 extern Status XInitThreads(
1731 void
1732 );
1733
1734 extern Status XFreeThreads(
1735 void
1736 );
1737
1738 extern void XLockDisplay(
1739 Display*
1740 );
1741
1742 extern void XUnlockDisplay(
1743 Display*
1744 );
1745
1746
1747
1748 extern XExtCodes *XInitExtension(
1749 Display* ,
1750 _Xconst char*
1751 );
1752
1753 extern XExtCodes *XAddExtension(
1754 Display*
1755 );
1756 extern XExtData *XFindOnExtensionList(
1757 XExtData** ,
1758 int
1759 );
1760 extern XExtData **XEHeadOfExtensionList(
1761 XEDataObject
1762 );
1763
1764
1765 extern Window XRootWindow(
1766 Display* ,
1767 int
1768 );
1769 extern Window XDefaultRootWindow(
1770 Display*
1771 );
1772 extern Window XRootWindowOfScreen(
1773 Screen*
1774 );
1775 extern Visual *XDefaultVisual(
1776 Display* ,
1777 int
1778 );
1779 extern Visual *XDefaultVisualOfScreen(
1780 Screen*
1781 );
1782 extern GC XDefaultGC(
1783 Display* ,
1784 int
1785 );
1786 extern GC XDefaultGCOfScreen(
1787 Screen*
1788 );
1789 extern unsigned long XBlackPixel(
1790 Display* ,
1791 int
1792 );
1793 extern unsigned long XWhitePixel(
1794 Display* ,
1795 int
1796 );
1797 extern unsigned long XAllPlanes(
1798 void
1799 );
1800 extern unsigned long XBlackPixelOfScreen(
1801 Screen*
1802 );
1803 extern unsigned long XWhitePixelOfScreen(
1804 Screen*
1805 );
1806 extern unsigned long XNextRequest(
1807 Display*
1808 );
1809 extern unsigned long XLastKnownRequestProcessed(
1810 Display*
1811 );
1812 extern char *XServerVendor(
1813 Display*
1814 );
1815 extern char *XDisplayString(
1816 Display*
1817 );
1818 extern Colormap XDefaultColormap(
1819 Display* ,
1820 int
1821 );
1822 extern Colormap XDefaultColormapOfScreen(
1823 Screen*
1824 );
1825 extern Display *XDisplayOfScreen(
1826 Screen*
1827 );
1828 extern Screen *XScreenOfDisplay(
1829 Display* ,
1830 int
1831 );
1832 extern Screen *XDefaultScreenOfDisplay(
1833 Display*
1834 );
1835 extern long XEventMaskOfScreen(
1836 Screen*
1837 );
1838
1839 extern int XScreenNumberOfScreen(
1840 Screen*
1841 );
1842
1843 typedef int (*XErrorHandler) (
1844 Display* ,
1845 XErrorEvent*
1846 );
1847
1848 extern XErrorHandler XSetErrorHandler (
1849 XErrorHandler
1850 );
1851
1852
1853 typedef int (*XIOErrorHandler) (
1854 Display*
1855 );
1856
1857 extern XIOErrorHandler XSetIOErrorHandler (
1858 XIOErrorHandler
1859 );
1860
1861 typedef void (*XIOErrorExitHandler) (
1862 Display*,
1863 void*
1864 );
1865
1866 extern void XSetIOErrorExitHandler (
1867 Display*,
1868 XIOErrorExitHandler,
1869 void*
1870 );
1871
1872 extern XPixmapFormatValues *XListPixmapFormats(
1873 Display* ,
1874 int*
1875 );
1876 extern int *XListDepths(
1877 Display* ,
1878 int ,
1879 int*
1880 );
1881
1882
1883
1884 extern Status XReconfigureWMWindow(
1885 Display* ,
1886 Window ,
1887 int ,
1888 unsigned int ,
1889 XWindowChanges*
1890 );
1891
1892 extern Status XGetWMProtocols(
1893 Display* ,
1894 Window ,
1895 Atom** ,
1896 int*
1897 );
1898 extern Status XSetWMProtocols(
1899 Display* ,
1900 Window ,
1901 Atom* ,
1902 int
1903 );
1904 extern Status XIconifyWindow(
1905 Display* ,
1906 Window ,
1907 int
1908 );
1909 extern Status XWithdrawWindow(
1910 Display* ,
1911 Window ,
1912 int
1913 );
1914 extern Status XGetCommand(
1915 Display* ,
1916 Window ,
1917 char*** ,
1918 int*
1919 );
1920 extern Status XGetWMColormapWindows(
1921 Display* ,
1922 Window ,
1923 Window** ,
1924 int*
1925 );
1926 extern Status XSetWMColormapWindows(
1927 Display* ,
1928 Window ,
1929 Window* ,
1930 int
1931 );
1932 extern void XFreeStringList(
1933 char**
1934 );
1935 extern int XSetTransientForHint(
1936 Display* ,
1937 Window ,
1938 Window
1939 );
1940
1941
1942
1943 extern int XActivateScreenSaver(
1944 Display*
1945 );
1946
1947 extern int XAddHost(
1948 Display* ,
1949 XHostAddress*
1950 );
1951
1952 extern int XAddHosts(
1953 Display* ,
1954 XHostAddress* ,
1955 int
1956 );
1957
1958 extern int XAddToExtensionList(
1959 struct _XExtData** ,
1960 XExtData*
1961 );
1962
1963 extern int XAddToSaveSet(
1964 Display* ,
1965 Window
1966 );
1967
1968 extern Status XAllocColor(
1969 Display* ,
1970 Colormap ,
1971 XColor*
1972 );
1973
1974 extern Status XAllocColorCells(
1975 Display* ,
1976 Colormap ,
1977 Bool ,
1978 unsigned long* ,
1979 unsigned int ,
1980 unsigned long* ,
1981 unsigned int
1982 );
1983
1984 extern Status XAllocColorPlanes(
1985 Display* ,
1986 Colormap ,
1987 Bool ,
1988 unsigned long* ,
1989 int ,
1990 int ,
1991 int ,
1992 int ,
1993 unsigned long* ,
1994 unsigned long* ,
1995 unsigned long*
1996 );
1997
1998 extern Status XAllocNamedColor(
1999 Display* ,
2000 Colormap ,
2001 _Xconst char* ,
2002 XColor* ,
2003 XColor*
2004 );
2005
2006 extern int XAllowEvents(
2007 Display* ,
2008 int ,
2009 Time
2010 );
2011
2012 extern int XAutoRepeatOff(
2013 Display*
2014 );
2015
2016 extern int XAutoRepeatOn(
2017 Display*
2018 );
2019
2020 extern int XBell(
2021 Display* ,
2022 int
2023 );
2024
2025 extern int XBitmapBitOrder(
2026 Display*
2027 );
2028
2029 extern int XBitmapPad(
2030 Display*
2031 );
2032
2033 extern int XBitmapUnit(
2034 Display*
2035 );
2036
2037 extern int XCellsOfScreen(
2038 Screen*
2039 );
2040
2041 extern int XChangeActivePointerGrab(
2042 Display* ,
2043 unsigned int ,
2044 Cursor ,
2045 Time
2046 );
2047
2048 extern int XChangeGC(
2049 Display* ,
2050 GC ,
2051 unsigned long ,
2052 XGCValues*
2053 );
2054
2055 extern int XChangeKeyboardControl(
2056 Display* ,
2057 unsigned long ,
2058 XKeyboardControl*
2059 );
2060
2061 extern int XChangeKeyboardMapping(
2062 Display* ,
2063 int ,
2064 int ,
2065 KeySym* ,
2066 int
2067 );
2068
2069 extern int XChangePointerControl(
2070 Display* ,
2071 Bool ,
2072 Bool ,
2073 int ,
2074 int ,
2075 int
2076 );
2077
2078 extern int XChangeProperty(
2079 Display* ,
2080 Window ,
2081 Atom ,
2082 Atom ,
2083 int ,
2084 int ,
2085 _Xconst unsigned char* ,
2086 int
2087 );
2088
2089 extern int XChangeSaveSet(
2090 Display* ,
2091 Window ,
2092 int
2093 );
2094
2095 extern int XChangeWindowAttributes(
2096 Display* ,
2097 Window ,
2098 unsigned long ,
2099 XSetWindowAttributes*
2100 );
2101
2102 extern Bool XCheckIfEvent(
2103 Display* ,
2104 XEvent* ,
2105 Bool (*) (
2106 Display* ,
2107 XEvent* ,
2108 XPointer
2109 ) ,
2110 XPointer
2111 );
2112
2113 extern Bool XCheckMaskEvent(
2114 Display* ,
2115 long ,
2116 XEvent*
2117 );
2118
2119 extern Bool XCheckTypedEvent(
2120 Display* ,
2121 int ,
2122 XEvent*
2123 );
2124
2125 extern Bool XCheckTypedWindowEvent(
2126 Display* ,
2127 Window ,
2128 int ,
2129 XEvent*
2130 );
2131
2132 extern Bool XCheckWindowEvent(
2133 Display* ,
2134 Window ,
2135 long ,
2136 XEvent*
2137 );
2138
2139 extern int XCirculateSubwindows(
2140 Display* ,
2141 Window ,
2142 int
2143 );
2144
2145 extern int XCirculateSubwindowsDown(
2146 Display* ,
2147 Window
2148 );
2149
2150 extern int XCirculateSubwindowsUp(
2151 Display* ,
2152 Window
2153 );
2154
2155 extern int XClearArea(
2156 Display* ,
2157 Window ,
2158 int ,
2159 int ,
2160 unsigned int ,
2161 unsigned int ,
2162 Bool
2163 );
2164
2165 extern int XClearWindow(
2166 Display* ,
2167 Window
2168 );
2169
2170 extern int XCloseDisplay(
2171 Display*
2172 );
2173
2174 extern int XConfigureWindow(
2175 Display* ,
2176 Window ,
2177 unsigned int ,
2178 XWindowChanges*
2179 );
2180
2181 extern int XConnectionNumber(
2182 Display*
2183 );
2184
2185 extern int XConvertSelection(
2186 Display* ,
2187 Atom ,
2188 Atom ,
2189 Atom ,
2190 Window ,
2191 Time
2192 );
2193
2194 extern int XCopyArea(
2195 Display* ,
2196 Drawable ,
2197 Drawable ,
2198 GC ,
2199 int ,
2200 int ,
2201 unsigned int ,
2202 unsigned int ,
2203 int ,
2204 int
2205 );
2206
2207 extern int XCopyGC(
2208 Display* ,
2209 GC ,
2210 unsigned long ,
2211 GC
2212 );
2213
2214 extern int XCopyPlane(
2215 Display* ,
2216 Drawable ,
2217 Drawable ,
2218 GC ,
2219 int ,
2220 int ,
2221 unsigned int ,
2222 unsigned int ,
2223 int ,
2224 int ,
2225 unsigned long
2226 );
2227
2228 extern int XDefaultDepth(
2229 Display* ,
2230 int
2231 );
2232
2233 extern int XDefaultDepthOfScreen(
2234 Screen*
2235 );
2236
2237 extern int XDefaultScreen(
2238 Display*
2239 );
2240
2241 extern int XDefineCursor(
2242 Display* ,
2243 Window ,
2244 Cursor
2245 );
2246
2247 extern int XDeleteProperty(
2248 Display* ,
2249 Window ,
2250 Atom
2251 );
2252
2253 extern int XDestroyWindow(
2254 Display* ,
2255 Window
2256 );
2257
2258 extern int XDestroySubwindows(
2259 Display* ,
2260 Window
2261 );
2262
2263 extern int XDoesBackingStore(
2264 Screen*
2265 );
2266
2267 extern Bool XDoesSaveUnders(
2268 Screen*
2269 );
2270
2271 extern int XDisableAccessControl(
2272 Display*
2273 );
2274
2275
2276 extern int XDisplayCells(
2277 Display* ,
2278 int
2279 );
2280
2281 extern int XDisplayHeight(
2282 Display* ,
2283 int
2284 );
2285
2286 extern int XDisplayHeightMM(
2287 Display* ,
2288 int
2289 );
2290
2291 extern int XDisplayKeycodes(
2292 Display* ,
2293 int* ,
2294 int*
2295 );
2296
2297 extern int XDisplayPlanes(
2298 Display* ,
2299 int
2300 );
2301
2302 extern int XDisplayWidth(
2303 Display* ,
2304 int
2305 );
2306
2307 extern int XDisplayWidthMM(
2308 Display* ,
2309 int
2310 );
2311
2312 extern int XDrawArc(
2313 Display* ,
2314 Drawable ,
2315 GC ,
2316 int ,
2317 int ,
2318 unsigned int ,
2319 unsigned int ,
2320 int ,
2321 int
2322 );
2323
2324 extern int XDrawArcs(
2325 Display* ,
2326 Drawable ,
2327 GC ,
2328 XArc* ,
2329 int
2330 );
2331
2332 extern int XDrawImageString(
2333 Display* ,
2334 Drawable ,
2335 GC ,
2336 int ,
2337 int ,
2338 _Xconst char* ,
2339 int
2340 );
2341
2342 extern int XDrawImageString16(
2343 Display* ,
2344 Drawable ,
2345 GC ,
2346 int ,
2347 int ,
2348 _Xconst XChar2b* ,
2349 int
2350 );
2351
2352 extern int XDrawLine(
2353 Display* ,
2354 Drawable ,
2355 GC ,
2356 int ,
2357 int ,
2358 int ,
2359 int
2360 );
2361
2362 extern int XDrawLines(
2363 Display* ,
2364 Drawable ,
2365 GC ,
2366 XPoint* ,
2367 int ,
2368 int
2369 );
2370
2371 extern int XDrawPoint(
2372 Display* ,
2373 Drawable ,
2374 GC ,
2375 int ,
2376 int
2377 );
2378
2379 extern int XDrawPoints(
2380 Display* ,
2381 Drawable ,
2382 GC ,
2383 XPoint* ,
2384 int ,
2385 int
2386 );
2387
2388 extern int XDrawRectangle(
2389 Display* ,
2390 Drawable ,
2391 GC ,
2392 int ,
2393 int ,
2394 unsigned int ,
2395 unsigned int
2396 );
2397
2398 extern int XDrawRectangles(
2399 Display* ,
2400 Drawable ,
2401 GC ,
2402 XRectangle* ,
2403 int
2404 );
2405
2406 extern int XDrawSegments(
2407 Display* ,
2408 Drawable ,
2409 GC ,
2410 XSegment* ,
2411 int
2412 );
2413
2414 extern int XDrawString(
2415 Display* ,
2416 Drawable ,
2417 GC ,
2418 int ,
2419 int ,
2420 _Xconst char* ,
2421 int
2422 );
2423
2424 extern int XDrawString16(
2425 Display* ,
2426 Drawable ,
2427 GC ,
2428 int ,
2429 int ,
2430 _Xconst XChar2b* ,
2431 int
2432 );
2433
2434 extern int XDrawText(
2435 Display* ,
2436 Drawable ,
2437 GC ,
2438 int ,
2439 int ,
2440 XTextItem* ,
2441 int
2442 );
2443
2444 extern int XDrawText16(
2445 Display* ,
2446 Drawable ,
2447 GC ,
2448 int ,
2449 int ,
2450 XTextItem16* ,
2451 int
2452 );
2453
2454 extern int XEnableAccessControl(
2455 Display*
2456 );
2457
2458 extern int XEventsQueued(
2459 Display* ,
2460 int
2461 );
2462
2463 extern Status XFetchName(
2464 Display* ,
2465 Window ,
2466 char**
2467 );
2468
2469 extern int XFillArc(
2470 Display* ,
2471 Drawable ,
2472 GC ,
2473 int ,
2474 int ,
2475 unsigned int ,
2476 unsigned int ,
2477 int ,
2478 int
2479 );
2480
2481 extern int XFillArcs(
2482 Display* ,
2483 Drawable ,
2484 GC ,
2485 XArc* ,
2486 int
2487 );
2488
2489 extern int XFillPolygon(
2490 Display* ,
2491 Drawable ,
2492 GC ,
2493 XPoint* ,
2494 int ,
2495 int ,
2496 int
2497 );
2498
2499 extern int XFillRectangle(
2500 Display* ,
2501 Drawable ,
2502 GC ,
2503 int ,
2504 int ,
2505 unsigned int ,
2506 unsigned int
2507 );
2508
2509 extern int XFillRectangles(
2510 Display* ,
2511 Drawable ,
2512 GC ,
2513 XRectangle* ,
2514 int
2515 );
2516
2517 extern int XFlush(
2518 Display*
2519 );
2520
2521 extern int XForceScreenSaver(
2522 Display* ,
2523 int
2524 );
2525
2526 extern int XFree(
2527 void*
2528 );
2529
2530 extern int XFreeColormap(
2531 Display* ,
2532 Colormap
2533 );
2534
2535 extern int XFreeColors(
2536 Display* ,
2537 Colormap ,
2538 unsigned long* ,
2539 int ,
2540 unsigned long
2541 );
2542
2543 extern int XFreeCursor(
2544 Display* ,
2545 Cursor
2546 );
2547
2548 extern int XFreeExtensionList(
2549 char**
2550 );
2551
2552 extern int XFreeFont(
2553 Display* ,
2554 XFontStruct*
2555 );
2556
2557 extern int XFreeFontInfo(
2558 char** ,
2559 XFontStruct* ,
2560 int
2561 );
2562
2563 extern int XFreeFontNames(
2564 char**
2565 );
2566
2567 extern int XFreeFontPath(
2568 char**
2569 );
2570
2571 extern int XFreeGC(
2572 Display* ,
2573 GC
2574 );
2575
2576 extern int XFreeModifiermap(
2577 XModifierKeymap*
2578 );
2579
2580 extern int XFreePixmap(
2581 Display* ,
2582 Pixmap
2583 );
2584
2585 extern int XGeometry(
2586 Display* ,
2587 int ,
2588 _Xconst char* ,
2589 _Xconst char* ,
2590 unsigned int ,
2591 unsigned int ,
2592 unsigned int ,
2593 int ,
2594 int ,
2595 int* ,
2596 int* ,
2597 int* ,
2598 int*
2599 );
2600
2601 extern int XGetErrorDatabaseText(
2602 Display* ,
2603 _Xconst char* ,
2604 _Xconst char* ,
2605 _Xconst char* ,
2606 char* ,
2607 int
2608 );
2609
2610 extern int XGetErrorText(
2611 Display* ,
2612 int ,
2613 char* ,
2614 int
2615 );
2616
2617 extern Bool XGetFontProperty(
2618 XFontStruct* ,
2619 Atom ,
2620 unsigned long*
2621 );
2622
2623 extern Status XGetGCValues(
2624 Display* ,
2625 GC ,
2626 unsigned long ,
2627 XGCValues*
2628 );
2629
2630 extern Status XGetGeometry(
2631 Display* ,
2632 Drawable ,
2633 Window* ,
2634 int* ,
2635 int* ,
2636 unsigned int* ,
2637 unsigned int* ,
2638 unsigned int* ,
2639 unsigned int*
2640 );
2641
2642 extern Status XGetIconName(
2643 Display* ,
2644 Window ,
2645 char**
2646 );
2647
2648 extern int XGetInputFocus(
2649 Display* ,
2650 Window* ,
2651 int*
2652 );
2653
2654 extern int XGetKeyboardControl(
2655 Display* ,
2656 XKeyboardState*
2657 );
2658
2659 extern int XGetPointerControl(
2660 Display* ,
2661 int* ,
2662 int* ,
2663 int*
2664 );
2665
2666 extern int XGetPointerMapping(
2667 Display* ,
2668 unsigned char* ,
2669 int
2670 );
2671
2672 extern int XGetScreenSaver(
2673 Display* ,
2674 int* ,
2675 int* ,
2676 int* ,
2677 int*
2678 );
2679
2680 extern Status XGetTransientForHint(
2681 Display* ,
2682 Window ,
2683 Window*
2684 );
2685
2686 extern int XGetWindowProperty(
2687 Display* ,
2688 Window ,
2689 Atom ,
2690 long ,
2691 long ,
2692 Bool ,
2693 Atom ,
2694 Atom* ,
2695 int* ,
2696 unsigned long* ,
2697 unsigned long* ,
2698 unsigned char**
2699 );
2700
2701 extern Status XGetWindowAttributes(
2702 Display* ,
2703 Window ,
2704 XWindowAttributes*
2705 );
2706
2707 extern int XGrabButton(
2708 Display* ,
2709 unsigned int ,
2710 unsigned int ,
2711 Window ,
2712 Bool ,
2713 unsigned int ,
2714 int ,
2715 int ,
2716 Window ,
2717 Cursor
2718 );
2719
2720 extern int XGrabKey(
2721 Display* ,
2722 int ,
2723 unsigned int ,
2724 Window ,
2725 Bool ,
2726 int ,
2727 int
2728 );
2729
2730 extern int XGrabKeyboard(
2731 Display* ,
2732 Window ,
2733 Bool ,
2734 int ,
2735 int ,
2736 Time
2737 );
2738
2739 extern int XGrabPointer(
2740 Display* ,
2741 Window ,
2742 Bool ,
2743 unsigned int ,
2744 int ,
2745 int ,
2746 Window ,
2747 Cursor ,
2748 Time
2749 );
2750
2751 extern int XGrabServer(
2752 Display*
2753 );
2754
2755 extern int XHeightMMOfScreen(
2756 Screen*
2757 );
2758
2759 extern int XHeightOfScreen(
2760 Screen*
2761 );
2762
2763 extern int XIfEvent(
2764 Display* ,
2765 XEvent* ,
2766 Bool (*) (
2767 Display* ,
2768 XEvent* ,
2769 XPointer
2770 ) ,
2771 XPointer
2772 );
2773
2774 extern int XImageByteOrder(
2775 Display*
2776 );
2777
2778 extern int XInstallColormap(
2779 Display* ,
2780 Colormap
2781 );
2782
2783 extern KeyCode XKeysymToKeycode(
2784 Display* ,
2785 KeySym
2786 );
2787
2788 extern int XKillClient(
2789 Display* ,
2790 XID
2791 );
2792
2793 extern Status XLookupColor(
2794 Display* ,
2795 Colormap ,
2796 _Xconst char* ,
2797 XColor* ,
2798 XColor*
2799 );
2800
2801 extern int XLowerWindow(
2802 Display* ,
2803 Window
2804 );
2805
2806 extern int XMapRaised(
2807 Display* ,
2808 Window
2809 );
2810
2811 extern int XMapSubwindows(
2812 Display* ,
2813 Window
2814 );
2815
2816 extern int XMapWindow(
2817 Display* ,
2818 Window
2819 );
2820
2821 extern int XMaskEvent(
2822 Display* ,
2823 long ,
2824 XEvent*
2825 );
2826
2827 extern int XMaxCmapsOfScreen(
2828 Screen*
2829 );
2830
2831 extern int XMinCmapsOfScreen(
2832 Screen*
2833 );
2834
2835 extern int XMoveResizeWindow(
2836 Display* ,
2837 Window ,
2838 int ,
2839 int ,
2840 unsigned int ,
2841 unsigned int
2842 );
2843
2844 extern int XMoveWindow(
2845 Display* ,
2846 Window ,
2847 int ,
2848 int
2849 );
2850
2851 extern int XNextEvent(
2852 Display* ,
2853 XEvent*
2854 );
2855
2856 extern int XNoOp(
2857 Display*
2858 );
2859
2860 extern Status XParseColor(
2861 Display* ,
2862 Colormap ,
2863 _Xconst char* ,
2864 XColor*
2865 );
2866
2867 extern int XParseGeometry(
2868 _Xconst char* ,
2869 int* ,
2870 int* ,
2871 unsigned int* ,
2872 unsigned int*
2873 );
2874
2875 extern int XPeekEvent(
2876 Display* ,
2877 XEvent*
2878 );
2879
2880 extern int XPeekIfEvent(
2881 Display* ,
2882 XEvent* ,
2883 Bool (*) (
2884 Display* ,
2885 XEvent* ,
2886 XPointer
2887 ) ,
2888 XPointer
2889 );
2890
2891 extern int XPending(
2892 Display*
2893 );
2894
2895 extern int XPlanesOfScreen(
2896 Screen*
2897 );
2898
2899 extern int XProtocolRevision(
2900 Display*
2901 );
2902
2903 extern int XProtocolVersion(
2904 Display*
2905 );
2906
2907
2908 extern int XPutBackEvent(
2909 Display* ,
2910 XEvent*
2911 );
2912
2913 extern int XPutImage(
2914 Display* ,
2915 Drawable ,
2916 GC ,
2917 XImage* ,
2918 int ,
2919 int ,
2920 int ,
2921 int ,
2922 unsigned int ,
2923 unsigned int
2924 );
2925
2926 extern int XQLength(
2927 Display*
2928 );
2929
2930 extern Status XQueryBestCursor(
2931 Display* ,
2932 Drawable ,
2933 unsigned int ,
2934 unsigned int ,
2935 unsigned int* ,
2936 unsigned int*
2937 );
2938
2939 extern Status XQueryBestSize(
2940 Display* ,
2941 int ,
2942 Drawable ,
2943 unsigned int ,
2944 unsigned int ,
2945 unsigned int* ,
2946 unsigned int*
2947 );
2948
2949 extern Status XQueryBestStipple(
2950 Display* ,
2951 Drawable ,
2952 unsigned int ,
2953 unsigned int ,
2954 unsigned int* ,
2955 unsigned int*
2956 );
2957
2958 extern Status XQueryBestTile(
2959 Display* ,
2960 Drawable ,
2961 unsigned int ,
2962 unsigned int ,
2963 unsigned int* ,
2964 unsigned int*
2965 );
2966
2967 extern int XQueryColor(
2968 Display* ,
2969 Colormap ,
2970 XColor*
2971 );
2972
2973 extern int XQueryColors(
2974 Display* ,
2975 Colormap ,
2976 XColor* ,
2977 int
2978 );
2979
2980 extern Bool XQueryExtension(
2981 Display* ,
2982 _Xconst char* ,
2983 int* ,
2984 int* ,
2985 int*
2986 );
2987
2988 extern int XQueryKeymap(
2989 Display* ,
2990 char [32]
2991 );
2992
2993 extern Bool XQueryPointer(
2994 Display* ,
2995 Window ,
2996 Window* ,
2997 Window* ,
2998 int* ,
2999 int* ,
3000 int* ,
3001 int* ,
3002 unsigned int*
3003 );
3004
3005 extern int XQueryTextExtents(
3006 Display* ,
3007 XID ,
3008 _Xconst char* ,
3009 int ,
3010 int* ,
3011 int* ,
3012 int* ,
3013 XCharStruct*
3014 );
3015
3016 extern int XQueryTextExtents16(
3017 Display* ,
3018 XID ,
3019 _Xconst XChar2b* ,
3020 int ,
3021 int* ,
3022 int* ,
3023 int* ,
3024 XCharStruct*
3025 );
3026
3027 extern Status XQueryTree(
3028 Display* ,
3029 Window ,
3030 Window* ,
3031 Window* ,
3032 Window** ,
3033 unsigned int*
3034 );
3035
3036 extern int XRaiseWindow(
3037 Display* ,
3038 Window
3039 );
3040
3041 extern int XReadBitmapFile(
3042 Display* ,
3043 Drawable ,
3044 _Xconst char* ,
3045 unsigned int* ,
3046 unsigned int* ,
3047 Pixmap* ,
3048 int* ,
3049 int*
3050 );
3051
3052 extern int XReadBitmapFileData(
3053 _Xconst char* ,
3054 unsigned int* ,
3055 unsigned int* ,
3056 unsigned char** ,
3057 int* ,
3058 int*
3059 );
3060
3061 extern int XRebindKeysym(
3062 Display* ,
3063 KeySym ,
3064 KeySym* ,
3065 int ,
3066 _Xconst unsigned char* ,
3067 int
3068 );
3069
3070 extern int XRecolorCursor(
3071 Display* ,
3072 Cursor ,
3073 XColor* ,
3074 XColor*
3075 );
3076
3077 extern int XRefreshKeyboardMapping(
3078 XMappingEvent*
3079 );
3080
3081 extern int XRemoveFromSaveSet(
3082 Display* ,
3083 Window
3084 );
3085
3086 extern int XRemoveHost(
3087 Display* ,
3088 XHostAddress*
3089 );
3090
3091 extern int XRemoveHosts(
3092 Display* ,
3093 XHostAddress* ,
3094 int
3095 );
3096
3097 extern int XReparentWindow(
3098 Display* ,
3099 Window ,
3100 Window ,
3101 int ,
3102 int
3103 );
3104
3105 extern int XResetScreenSaver(
3106 Display*
3107 );
3108
3109 extern int XResizeWindow(
3110 Display* ,
3111 Window ,
3112 unsigned int ,
3113 unsigned int
3114 );
3115
3116 extern int XRestackWindows(
3117 Display* ,
3118 Window* ,
3119 int
3120 );
3121
3122 extern int XRotateBuffers(
3123 Display* ,
3124 int
3125 );
3126
3127 extern int XRotateWindowProperties(
3128 Display* ,
3129 Window ,
3130 Atom* ,
3131 int ,
3132 int
3133 );
3134
3135 extern int XScreenCount(
3136 Display*
3137 );
3138
3139 extern int XSelectInput(
3140 Display* ,
3141 Window ,
3142 long
3143 );
3144
3145 extern Status XSendEvent(
3146 Display* ,
3147 Window ,
3148 Bool ,
3149 long ,
3150 XEvent*
3151 );
3152
3153 extern int XSetAccessControl(
3154 Display* ,
3155 int
3156 );
3157
3158 extern int XSetArcMode(
3159 Display* ,
3160 GC ,
3161 int
3162 );
3163
3164 extern int XSetBackground(
3165 Display* ,
3166 GC ,
3167 unsigned long
3168 );
3169
3170 extern int XSetClipMask(
3171 Display* ,
3172 GC ,
3173 Pixmap
3174 );
3175
3176 extern int XSetClipOrigin(
3177 Display* ,
3178 GC ,
3179 int ,
3180 int
3181 );
3182
3183 extern int XSetClipRectangles(
3184 Display* ,
3185 GC ,
3186 int ,
3187 int ,
3188 XRectangle* ,
3189 int ,
3190 int
3191 );
3192
3193 extern int XSetCloseDownMode(
3194 Display* ,
3195 int
3196 );
3197
3198 extern int XSetCommand(
3199 Display* ,
3200 Window ,
3201 char** ,
3202 int
3203 );
3204
3205 extern int XSetDashes(
3206 Display* ,
3207 GC ,
3208 int ,
3209 _Xconst char* ,
3210 int
3211 );
3212
3213 extern int XSetFillRule(
3214 Display* ,
3215 GC ,
3216 int
3217 );
3218
3219 extern int XSetFillStyle(
3220 Display* ,
3221 GC ,
3222 int
3223 );
3224
3225 extern int XSetFont(
3226 Display* ,
3227 GC ,
3228 Font
3229 );
3230
3231 extern int XSetFontPath(
3232 Display* ,
3233 char** ,
3234 int
3235 );
3236
3237 extern int XSetForeground(
3238 Display* ,
3239 GC ,
3240 unsigned long
3241 );
3242
3243 extern int XSetFunction(
3244 Display* ,
3245 GC ,
3246 int
3247 );
3248
3249 extern int XSetGraphicsExposures(
3250 Display* ,
3251 GC ,
3252 Bool
3253 );
3254
3255 extern int XSetIconName(
3256 Display* ,
3257 Window ,
3258 _Xconst char*
3259 );
3260
3261 extern int XSetInputFocus(
3262 Display* ,
3263 Window ,
3264 int ,
3265 Time
3266 );
3267
3268 extern int XSetLineAttributes(
3269 Display* ,
3270 GC ,
3271 unsigned int ,
3272 int ,
3273 int ,
3274 int
3275 );
3276
3277 extern int XSetModifierMapping(
3278 Display* ,
3279 XModifierKeymap*
3280 );
3281
3282 extern int XSetPlaneMask(
3283 Display* ,
3284 GC ,
3285 unsigned long
3286 );
3287
3288 extern int XSetPointerMapping(
3289 Display* ,
3290 _Xconst unsigned char* ,
3291 int
3292 );
3293
3294 extern int XSetScreenSaver(
3295 Display* ,
3296 int ,
3297 int ,
3298 int ,
3299 int
3300 );
3301
3302 extern int XSetSelectionOwner(
3303 Display* ,
3304 Atom ,
3305 Window ,
3306 Time
3307 );
3308
3309 extern int XSetState(
3310 Display* ,
3311 GC ,
3312 unsigned long ,
3313 unsigned long ,
3314 int ,
3315 unsigned long
3316 );
3317
3318 extern int XSetStipple(
3319 Display* ,
3320 GC ,
3321 Pixmap
3322 );
3323
3324 extern int XSetSubwindowMode(
3325 Display* ,
3326 GC ,
3327 int
3328 );
3329
3330 extern int XSetTSOrigin(
3331 Display* ,
3332 GC ,
3333 int ,
3334 int
3335 );
3336
3337 extern int XSetTile(
3338 Display* ,
3339 GC ,
3340 Pixmap
3341 );
3342
3343 extern int XSetWindowBackground(
3344 Display* ,
3345 Window ,
3346 unsigned long
3347 );
3348
3349 extern int XSetWindowBackgroundPixmap(
3350 Display* ,
3351 Window ,
3352 Pixmap
3353 );
3354
3355 extern int XSetWindowBorder(
3356 Display* ,
3357 Window ,
3358 unsigned long
3359 );
3360
3361 extern int XSetWindowBorderPixmap(
3362 Display* ,
3363 Window ,
3364 Pixmap
3365 );
3366
3367 extern int XSetWindowBorderWidth(
3368 Display* ,
3369 Window ,
3370 unsigned int
3371 );
3372
3373 extern int XSetWindowColormap(
3374 Display* ,
3375 Window ,
3376 Colormap
3377 );
3378
3379 extern int XStoreBuffer(
3380 Display* ,
3381 _Xconst char* ,
3382 int ,
3383 int
3384 );
3385
3386 extern int XStoreBytes(
3387 Display* ,
3388 _Xconst char* ,
3389 int
3390 );
3391
3392 extern int XStoreColor(
3393 Display* ,
3394 Colormap ,
3395 XColor*
3396 );
3397
3398 extern int XStoreColors(
3399 Display* ,
3400 Colormap ,
3401 XColor* ,
3402 int
3403 );
3404
3405 extern int XStoreName(
3406 Display* ,
3407 Window ,
3408 _Xconst char*
3409 );
3410
3411 extern int XStoreNamedColor(
3412 Display* ,
3413 Colormap ,
3414 _Xconst char* ,
3415 unsigned long ,
3416 int
3417 );
3418
3419 extern int XSync(
3420 Display* ,
3421 Bool
3422 );
3423
3424 extern int XTextExtents(
3425 XFontStruct* ,
3426 _Xconst char* ,
3427 int ,
3428 int* ,
3429 int* ,
3430 int* ,
3431 XCharStruct*
3432 );
3433
3434 extern int XTextExtents16(
3435 XFontStruct* ,
3436 _Xconst XChar2b* ,
3437 int ,
3438 int* ,
3439 int* ,
3440 int* ,
3441 XCharStruct*
3442 );
3443
3444 extern int XTextWidth(
3445 XFontStruct* ,
3446 _Xconst char* ,
3447 int
3448 );
3449
3450 extern int XTextWidth16(
3451 XFontStruct* ,
3452 _Xconst XChar2b* ,
3453 int
3454 );
3455
3456 extern Bool XTranslateCoordinates(
3457 Display* ,
3458 Window ,
3459 Window ,
3460 int ,
3461 int ,
3462 int* ,
3463 int* ,
3464 Window*
3465 );
3466
3467 extern int XUndefineCursor(
3468 Display* ,
3469 Window
3470 );
3471
3472 extern int XUngrabButton(
3473 Display* ,
3474 unsigned int ,
3475 unsigned int ,
3476 Window
3477 );
3478
3479 extern int XUngrabKey(
3480 Display* ,
3481 int ,
3482 unsigned int ,
3483 Window
3484 );
3485
3486 extern int XUngrabKeyboard(
3487 Display* ,
3488 Time
3489 );
3490
3491 extern int XUngrabPointer(
3492 Display* ,
3493 Time
3494 );
3495
3496 extern int XUngrabServer(
3497 Display*
3498 );
3499
3500 extern int XUninstallColormap(
3501 Display* ,
3502 Colormap
3503 );
3504
3505 extern int XUnloadFont(
3506 Display* ,
3507 Font
3508 );
3509
3510 extern int XUnmapSubwindows(
3511 Display* ,
3512 Window
3513 );
3514
3515 extern int XUnmapWindow(
3516 Display* ,
3517 Window
3518 );
3519
3520 extern int XVendorRelease(
3521 Display*
3522 );
3523
3524 extern int XWarpPointer(
3525 Display* ,
3526 Window ,
3527 Window ,
3528 int ,
3529 int ,
3530 unsigned int ,
3531 unsigned int ,
3532 int ,
3533 int
3534 );
3535
3536 extern int XWidthMMOfScreen(
3537 Screen*
3538 );
3539
3540 extern int XWidthOfScreen(
3541 Screen*
3542 );
3543
3544 extern int XWindowEvent(
3545 Display* ,
3546 Window ,
3547 long ,
3548 XEvent*
3549 );
3550
3551 extern int XWriteBitmapFile(
3552 Display* ,
3553 _Xconst char* ,
3554 Pixmap ,
3555 unsigned int ,
3556 unsigned int ,
3557 int ,
3558 int
3559 );
3560
3561 extern Bool XSupportsLocale (void);
3562
3563 extern char *XSetLocaleModifiers(
3564 const char*
3565 );
3566
3567 extern XOM XOpenOM(
3568 Display* ,
3569 struct _XrmHashBucketRec* ,
3570 _Xconst char* ,
3571 _Xconst char*
3572 );
3573
3574 extern Status XCloseOM(
3575 XOM
3576 );
3577
3578 extern char *XSetOMValues(
3579 XOM ,
3580 ...
3581 ) _X_SENTINEL(0);
3582
3583 extern char *XGetOMValues(
3584 XOM ,
3585 ...
3586 ) _X_SENTINEL(0);
3587
3588 extern Display *XDisplayOfOM(
3589 XOM
3590 );
3591
3592 extern char *XLocaleOfOM(
3593 XOM
3594 );
3595
3596 extern XOC XCreateOC(
3597 XOM ,
3598 ...
3599 ) _X_SENTINEL(0);
3600
3601 extern void XDestroyOC(
3602 XOC
3603 );
3604
3605 extern XOM XOMOfOC(
3606 XOC
3607 );
3608
3609 extern char *XSetOCValues(
3610 XOC ,
3611 ...
3612 ) _X_SENTINEL(0);
3613
3614 extern char *XGetOCValues(
3615 XOC ,
3616 ...
3617 ) _X_SENTINEL(0);
3618
3619 extern XFontSet XCreateFontSet(
3620 Display* ,
3621 _Xconst char* ,
3622 char*** ,
3623 int* ,
3624 char**
3625 );
3626
3627 extern void XFreeFontSet(
3628 Display* ,
3629 XFontSet
3630 );
3631
3632 extern int XFontsOfFontSet(
3633 XFontSet ,
3634 XFontStruct*** ,
3635 char***
3636 );
3637
3638 extern char *XBaseFontNameListOfFontSet(
3639 XFontSet
3640 );
3641
3642 extern char *XLocaleOfFontSet(
3643 XFontSet
3644 );
3645
3646 extern Bool XContextDependentDrawing(
3647 XFontSet
3648 );
3649
3650 extern Bool XDirectionalDependentDrawing(
3651 XFontSet
3652 );
3653
3654 extern Bool XContextualDrawing(
3655 XFontSet
3656 );
3657
3658 extern XFontSetExtents *XExtentsOfFontSet(
3659 XFontSet
3660 );
3661
3662 extern int XmbTextEscapement(
3663 XFontSet ,
3664 _Xconst char* ,
3665 int
3666 );
3667
3668 extern int XwcTextEscapement(
3669 XFontSet ,
3670 _Xconst wchar_t* ,
3671 int
3672 );
3673
3674 extern int Xutf8TextEscapement(
3675 XFontSet ,
3676 _Xconst char* ,
3677 int
3678 );
3679
3680 extern int XmbTextExtents(
3681 XFontSet ,
3682 _Xconst char* ,
3683 int ,
3684 XRectangle* ,
3685 XRectangle*
3686 );
3687
3688 extern int XwcTextExtents(
3689 XFontSet ,
3690 _Xconst wchar_t* ,
3691 int ,
3692 XRectangle* ,
3693 XRectangle*
3694 );
3695
3696 extern int Xutf8TextExtents(
3697 XFontSet ,
3698 _Xconst char* ,
3699 int ,
3700 XRectangle* ,
3701 XRectangle*
3702 );
3703
3704 extern Status XmbTextPerCharExtents(
3705 XFontSet ,
3706 _Xconst char* ,
3707 int ,
3708 XRectangle* ,
3709 XRectangle* ,
3710 int ,
3711 int* ,
3712 XRectangle* ,
3713 XRectangle*
3714 );
3715
3716 extern Status XwcTextPerCharExtents(
3717 XFontSet ,
3718 _Xconst wchar_t* ,
3719 int ,
3720 XRectangle* ,
3721 XRectangle* ,
3722 int ,
3723 int* ,
3724 XRectangle* ,
3725 XRectangle*
3726 );
3727
3728 extern Status Xutf8TextPerCharExtents(
3729 XFontSet ,
3730 _Xconst char* ,
3731 int ,
3732 XRectangle* ,
3733 XRectangle* ,
3734 int ,
3735 int* ,
3736 XRectangle* ,
3737 XRectangle*
3738 );
3739
3740 extern void XmbDrawText(
3741 Display* ,
3742 Drawable ,
3743 GC ,
3744 int ,
3745 int ,
3746 XmbTextItem* ,
3747 int
3748 );
3749
3750 extern void XwcDrawText(
3751 Display* ,
3752 Drawable ,
3753 GC ,
3754 int ,
3755 int ,
3756 XwcTextItem* ,
3757 int
3758 );
3759
3760 extern void Xutf8DrawText(
3761 Display* ,
3762 Drawable ,
3763 GC ,
3764 int ,
3765 int ,
3766 XmbTextItem* ,
3767 int
3768 );
3769
3770 extern void XmbDrawString(
3771 Display* ,
3772 Drawable ,
3773 XFontSet ,
3774 GC ,
3775 int ,
3776 int ,
3777 _Xconst char* ,
3778 int
3779 );
3780
3781 extern void XwcDrawString(
3782 Display* ,
3783 Drawable ,
3784 XFontSet ,
3785 GC ,
3786 int ,
3787 int ,
3788 _Xconst wchar_t* ,
3789 int
3790 );
3791
3792 extern void Xutf8DrawString(
3793 Display* ,
3794 Drawable ,
3795 XFontSet ,
3796 GC ,
3797 int ,
3798 int ,
3799 _Xconst char* ,
3800 int
3801 );
3802
3803 extern void XmbDrawImageString(
3804 Display* ,
3805 Drawable ,
3806 XFontSet ,
3807 GC ,
3808 int ,
3809 int ,
3810 _Xconst char* ,
3811 int
3812 );
3813
3814 extern void XwcDrawImageString(
3815 Display* ,
3816 Drawable ,
3817 XFontSet ,
3818 GC ,
3819 int ,
3820 int ,
3821 _Xconst wchar_t* ,
3822 int
3823 );
3824
3825 extern void Xutf8DrawImageString(
3826 Display* ,
3827 Drawable ,
3828 XFontSet ,
3829 GC ,
3830 int ,
3831 int ,
3832 _Xconst char* ,
3833 int
3834 );
3835
3836 extern XIM XOpenIM(
3837 Display* ,
3838 struct _XrmHashBucketRec* ,
3839 char* ,
3840 char*
3841 );
3842
3843 extern Status XCloseIM(
3844 XIM
3845 );
3846
3847 extern char *XGetIMValues(
3848 XIM , ...
3849 ) _X_SENTINEL(0);
3850
3851 extern char *XSetIMValues(
3852 XIM , ...
3853 ) _X_SENTINEL(0);
3854
3855 extern Display *XDisplayOfIM(
3856 XIM
3857 );
3858
3859 extern char *XLocaleOfIM(
3860 XIM
3861 );
3862
3863 extern XIC XCreateIC(
3864 XIM , ...
3865 ) _X_SENTINEL(0);
3866
3867 extern void XDestroyIC(
3868 XIC
3869 );
3870
3871 extern void XSetICFocus(
3872 XIC
3873 );
3874
3875 extern void XUnsetICFocus(
3876 XIC
3877 );
3878
3879 extern wchar_t *XwcResetIC(
3880 XIC
3881 );
3882
3883 extern char *XmbResetIC(
3884 XIC
3885 );
3886
3887 extern char *Xutf8ResetIC(
3888 XIC
3889 );
3890
3891 extern char *XSetICValues(
3892 XIC , ...
3893 ) _X_SENTINEL(0);
3894
3895 extern char *XGetICValues(
3896 XIC , ...
3897 ) _X_SENTINEL(0);
3898
3899 extern XIM XIMOfIC(
3900 XIC
3901 );
3902
3903 extern Bool XFilterEvent(
3904 XEvent* ,
3905 Window
3906 );
3907
3908 extern int XmbLookupString(
3909 XIC ,
3910 XKeyPressedEvent* ,
3911 char* ,
3912 int ,
3913 KeySym* ,
3914 Status*
3915 );
3916
3917 extern int XwcLookupString(
3918 XIC ,
3919 XKeyPressedEvent* ,
3920 wchar_t* ,
3921 int ,
3922 KeySym* ,
3923 Status*
3924 );
3925
3926 extern int Xutf8LookupString(
3927 XIC ,
3928 XKeyPressedEvent* ,
3929 char* ,
3930 int ,
3931 KeySym* ,
3932 Status*
3933 );
3934
3935 extern XVaNestedList XVaCreateNestedList(
3936 int , ...
3937 ) _X_SENTINEL(0);
3938
3939
3940
3941 extern Bool XRegisterIMInstantiateCallback(
3942 Display* ,
3943 struct _XrmHashBucketRec* ,
3944 char* ,
3945 char* ,
3946 XIDProc ,
3947 XPointer
3948 );
3949
3950 extern Bool XUnregisterIMInstantiateCallback(
3951 Display* ,
3952 struct _XrmHashBucketRec* ,
3953 char* ,
3954 char* ,
3955 XIDProc ,
3956 XPointer
3957 );
3958
3959 typedef void (*XConnectionWatchProc)(
3960 Display* ,
3961 XPointer ,
3962 int ,
3963 Bool ,
3964 XPointer*
3965 );
3966
3967
3968 extern Status XInternalConnectionNumbers(
3969 Display* ,
3970 int** ,
3971 int*
3972 );
3973
3974 extern void XProcessInternalConnection(
3975 Display* ,
3976 int
3977 );
3978
3979 extern Status XAddConnectionWatch(
3980 Display* ,
3981 XConnectionWatchProc ,
3982 XPointer
3983 );
3984
3985 extern void XRemoveConnectionWatch(
3986 Display* ,
3987 XConnectionWatchProc ,
3988 XPointer
3989 );
3990
3991 extern void XSetAuthorization(
3992 char * ,
3993 int ,
3994 char * ,
3995 int
3996 );
3997
3998 extern int _Xmbtowc(
3999 wchar_t * ,
4000 char * ,
4001 int
4002 );
4003
4004 extern int _Xwctomb(
4005 char * ,
4006 wchar_t
4007 );
4008
4009 extern Bool XGetEventData(
4010 Display* ,
4011 XGenericEventCookie*
4012 );
4013
4014 extern void XFreeEventData(
4015 Display* ,
4016 XGenericEventCookie*
4017 );
4018
4019 #ifdef __clang__
4020 #pragma clang diagnostic pop
4021 #endif
4022
4023 _XFUNCPROTOEND
4024
4025 #endif