| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| |
| |
| |
| |
| |
| #ifndef _X11_XLIB_H_ |
| #define _X11_XLIB_H_ |
|
|
| #define XlibSpecificationRelease 6 |
|
|
| #include <sys/types.h> |
|
|
| #if defined(__SCO__) || defined(__UNIXWARE__) |
| #include <stdint.h> |
| #endif |
|
|
| #include <X11/X.h> |
|
|
| |
| #include <X11/Xfuncproto.h> |
| #include <X11/Xosdefs.h> |
|
|
| #ifndef X_WCHAR |
| #include <stddef.h> |
| #else |
| |
| typedef unsigned long wchar_t; |
| #endif |
|
|
|
|
| extern int |
| _Xmblen( |
| char *str, |
| int len |
| ); |
|
|
| |
| |
| #define X_HAVE_UTF8_STRING 1 |
|
|
| |
| |
| |
| #ifdef __clang__ |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wpadded" |
| #endif |
|
|
| typedef char *XPointer; |
|
|
| #define Bool int |
| #define Status int |
| #define True 1 |
| #define False 0 |
|
|
| #define QueuedAlready 0 |
| #define QueuedAfterReading 1 |
| #define QueuedAfterFlush 2 |
|
|
| #define ConnectionNumber(dpy) (((_XPrivDisplay)(dpy))->fd) |
| #define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root) |
| #define DefaultScreen(dpy) (((_XPrivDisplay)(dpy))->default_screen) |
| #define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root) |
| #define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual) |
| #define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc) |
| #define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel) |
| #define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel) |
| #define AllPlanes ((unsigned long)~0L) |
| #define QLength(dpy) (((_XPrivDisplay)(dpy))->qlen) |
| #define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width) |
| #define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height) |
| #define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth) |
| #define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight) |
| #define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth) |
| #define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries) |
| #define ScreenCount(dpy) (((_XPrivDisplay)(dpy))->nscreens) |
| #define ServerVendor(dpy) (((_XPrivDisplay)(dpy))->vendor) |
| #define ProtocolVersion(dpy) (((_XPrivDisplay)(dpy))->proto_major_version) |
| #define ProtocolRevision(dpy) (((_XPrivDisplay)(dpy))->proto_minor_version) |
| #define VendorRelease(dpy) (((_XPrivDisplay)(dpy))->release) |
| #define DisplayString(dpy) (((_XPrivDisplay)(dpy))->display_name) |
| #define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth) |
| #define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap) |
| #define BitmapUnit(dpy) (((_XPrivDisplay)(dpy))->bitmap_unit) |
| #define BitmapBitOrder(dpy) (((_XPrivDisplay)(dpy))->bitmap_bit_order) |
| #define BitmapPad(dpy) (((_XPrivDisplay)(dpy))->bitmap_pad) |
| #define ImageByteOrder(dpy) (((_XPrivDisplay)(dpy))->byte_order) |
| #define NextRequest(dpy) (((_XPrivDisplay)(dpy))->request + 1) |
| #define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)(dpy))->last_request_read) |
|
|
| |
| #define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)(dpy))->screens[scr]) |
| #define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy)) |
| #define DisplayOfScreen(s) ((s)->display) |
| #define RootWindowOfScreen(s) ((s)->root) |
| #define BlackPixelOfScreen(s) ((s)->black_pixel) |
| #define WhitePixelOfScreen(s) ((s)->white_pixel) |
| #define DefaultColormapOfScreen(s)((s)->cmap) |
| #define DefaultDepthOfScreen(s) ((s)->root_depth) |
| #define DefaultGCOfScreen(s) ((s)->default_gc) |
| #define DefaultVisualOfScreen(s)((s)->root_visual) |
| #define WidthOfScreen(s) ((s)->width) |
| #define HeightOfScreen(s) ((s)->height) |
| #define WidthMMOfScreen(s) ((s)->mwidth) |
| #define HeightMMOfScreen(s) ((s)->mheight) |
| #define PlanesOfScreen(s) ((s)->root_depth) |
| #define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries) |
| #define MinCmapsOfScreen(s) ((s)->min_maps) |
| #define MaxCmapsOfScreen(s) ((s)->max_maps) |
| #define DoesSaveUnders(s) ((s)->save_unders) |
| #define DoesBackingStore(s) ((s)->backing_store) |
| #define EventMaskOfScreen(s) ((s)->root_input_mask) |
|
|
| |
| |
| |
| typedef struct _XExtData { |
| int number; |
| struct _XExtData *next; |
| int (*free_private)( |
| struct _XExtData *extension |
| ); |
| XPointer private_data; |
| } XExtData; |
|
|
| |
| |
| |
| typedef struct { |
| int extension; |
| int major_opcode; |
| int first_event; |
| int first_error; |
| } XExtCodes; |
|
|
| |
| |
| |
|
|
| typedef struct { |
| int depth; |
| int bits_per_pixel; |
| int scanline_pad; |
| } XPixmapFormatValues; |
|
|
|
|
| |
| |
| |
| typedef struct { |
| int function; |
| unsigned long plane_mask; |
| unsigned long foreground; |
| unsigned long background; |
| int line_width; |
| int line_style; |
| int cap_style; |
| |
| int join_style; |
| int fill_style; |
| |
| int fill_rule; |
| int arc_mode; |
| Pixmap tile; |
| Pixmap stipple; |
| int ts_x_origin; |
| int ts_y_origin; |
| Font font; |
| int subwindow_mode; |
| Bool graphics_exposures; |
| int clip_x_origin; |
| int clip_y_origin; |
| Pixmap clip_mask; |
| int dash_offset; |
| char dashes; |
| } XGCValues; |
|
|
| |
| |
| |
| |
|
|
| typedef struct _XGC |
| #ifdef XLIB_ILLEGAL_ACCESS |
| { |
| XExtData *ext_data; |
| GContext gid; |
| |
| } |
| #endif |
| *GC; |
|
|
| |
| |
| |
| typedef struct { |
| XExtData *ext_data; |
| VisualID visualid; |
| #if defined(__cplusplus) || defined(c_plusplus) |
| int c_class; |
| #else |
| int class; |
| #endif |
| unsigned long red_mask, green_mask, blue_mask; |
| int bits_per_rgb; |
| int map_entries; |
| } Visual; |
|
|
| |
| |
| |
| typedef struct { |
| int depth; |
| int nvisuals; |
| Visual *visuals; |
| } Depth; |
|
|
| |
| |
| |
| |
| |
|
|
| struct _XDisplay; |
|
|
| typedef struct { |
| XExtData *ext_data; |
| struct _XDisplay *display; |
| Window root; |
| int width, height; |
| int mwidth, mheight; |
| int ndepths; |
| Depth *depths; |
| int root_depth; |
| Visual *root_visual; |
| GC default_gc; |
| Colormap cmap; |
| unsigned long white_pixel; |
| unsigned long black_pixel; |
| int max_maps, min_maps; |
| int backing_store; |
| Bool save_unders; |
| long root_input_mask; |
| } Screen; |
|
|
| |
| |
| |
| typedef struct { |
| XExtData *ext_data; |
| int depth; |
| int bits_per_pixel; |
| int scanline_pad; |
| } ScreenFormat; |
|
|
| |
| |
| |
| typedef struct { |
| Pixmap background_pixmap; |
| unsigned long background_pixel; |
| Pixmap border_pixmap; |
| unsigned long border_pixel; |
| int bit_gravity; |
| int win_gravity; |
| int backing_store; |
| unsigned long backing_planes; |
| unsigned long backing_pixel; |
| Bool save_under; |
| long event_mask; |
| long do_not_propagate_mask; |
| Bool override_redirect; |
| Colormap colormap; |
| Cursor cursor; |
| } XSetWindowAttributes; |
|
|
| typedef struct { |
| int x, y; |
| int width, height; |
| int border_width; |
| int depth; |
| Visual *visual; |
| Window root; |
| #if defined(__cplusplus) || defined(c_plusplus) |
| int c_class; |
| #else |
| int class; |
| #endif |
| int bit_gravity; |
| int win_gravity; |
| int backing_store; |
| unsigned long backing_planes; |
| unsigned long backing_pixel; |
| Bool save_under; |
| Colormap colormap; |
| Bool map_installed; |
| int map_state; |
| long all_event_masks; |
| long your_event_mask; |
| long do_not_propagate_mask; |
| Bool override_redirect; |
| Screen *screen; |
| } XWindowAttributes; |
|
|
| |
| |
| |
| |
|
|
| typedef struct { |
| int family; |
| int length; |
| char *address; |
| } XHostAddress; |
|
|
| |
| |
| |
| typedef struct { |
| int typelength; |
| int valuelength; |
| char *type; |
| char *value; |
| } XServerInterpretedAddress; |
|
|
| |
| |
| |
| typedef struct _XImage { |
| int width, height; |
| int xoffset; |
| int format; |
| char *data; |
| int byte_order; |
| int bitmap_unit; |
| int bitmap_bit_order; |
| int bitmap_pad; |
| int depth; |
| int bytes_per_line; |
| int bits_per_pixel; |
| unsigned long red_mask; |
| unsigned long green_mask; |
| unsigned long blue_mask; |
| XPointer obdata; |
| struct funcs { |
| struct _XImage *(*create_image)( |
| struct _XDisplay* /* display */, |
| Visual* /* visual */, |
| unsigned int /* depth */, |
| int /* format */, |
| int /* offset */, |
| char* /* data */, |
| unsigned int /* width */, |
| unsigned int /* height */, |
| int /* bitmap_pad */, |
| int /* bytes_per_line */); |
| int (*destroy_image) (struct _XImage *); |
| unsigned long (*get_pixel) (struct _XImage *, int, int); |
| int (*put_pixel) (struct _XImage *, int, int, unsigned long); |
| struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int); |
| int (*add_pixel) (struct _XImage *, long); |
| } f; |
| } XImage; |
|
|
| |
| |
| |
| typedef struct { |
| int x, y; |
| int width, height; |
| int border_width; |
| Window sibling; |
| int stack_mode; |
| } XWindowChanges; |
|
|
| |
| |
| |
| typedef struct { |
| unsigned long pixel; |
| unsigned short red, green, blue; |
| char flags; |
| char pad; |
| } XColor; |
|
|
| |
| |
| |
| |
| |
| typedef struct { |
| short x1, y1, x2, y2; |
| } XSegment; |
|
|
| typedef struct { |
| short x, y; |
| } XPoint; |
|
|
| typedef struct { |
| short x, y; |
| unsigned short width, height; |
| } XRectangle; |
|
|
| typedef struct { |
| short x, y; |
| unsigned short width, height; |
| short angle1, angle2; |
| } XArc; |
|
|
|
|
| |
|
|
| typedef struct { |
| int key_click_percent; |
| int bell_percent; |
| int bell_pitch; |
| int bell_duration; |
| int led; |
| int led_mode; |
| int key; |
| int auto_repeat_mode; |
| } XKeyboardControl; |
|
|
| |
|
|
| typedef struct { |
| int key_click_percent; |
| int bell_percent; |
| unsigned int bell_pitch, bell_duration; |
| unsigned long led_mask; |
| int global_auto_repeat; |
| char auto_repeats[32]; |
| } XKeyboardState; |
|
|
| |
|
|
| typedef struct { |
| Time time; |
| short x, y; |
| } XTimeCoord; |
|
|
| |
|
|
| typedef struct { |
| int max_keypermod; |
| KeyCode *modifiermap; |
| } XModifierKeymap; |
|
|
|
|
| |
| |
| |
| |
| |
| #ifndef XLIB_ILLEGAL_ACCESS |
| typedef struct _XDisplay Display; |
| #endif |
|
|
| struct _XPrivate; |
| struct _XrmHashBucketRec; |
|
|
| typedef struct |
| #ifdef XLIB_ILLEGAL_ACCESS |
| _XDisplay |
| #endif |
| { |
| XExtData *ext_data; |
| struct _XPrivate *private1; |
| int fd; |
| int private2; |
| int proto_major_version; |
| int proto_minor_version; |
| char *vendor; |
| XID private3; |
| XID private4; |
| XID private5; |
| int private6; |
| XID (*resource_alloc)( |
| struct _XDisplay* |
| ); |
| int byte_order; |
| int bitmap_unit; |
| int bitmap_pad; |
| int bitmap_bit_order; |
| int nformats; |
| ScreenFormat *pixmap_format; |
| int private8; |
| int release; |
| struct _XPrivate *private9, *private10; |
| int qlen; |
| unsigned long last_request_read; |
| unsigned long request; |
| XPointer private11; |
| XPointer private12; |
| XPointer private13; |
| XPointer private14; |
| unsigned max_request_size; |
| struct _XrmHashBucketRec *db; |
| int (*private15)( |
| struct _XDisplay* |
| ); |
| char *display_name; |
| int default_screen; |
| int nscreens; |
| Screen *screens; |
| unsigned long motion_buffer; |
| unsigned long private16; |
| int min_keycode; |
| int max_keycode; |
| XPointer private17; |
| XPointer private18; |
| int private19; |
| char *xdefaults; |
| |
| } |
| #ifdef XLIB_ILLEGAL_ACCESS |
| Display, |
| #endif |
| *_XPrivDisplay; |
|
|
| #undef _XEVENT_ |
| #ifndef _XEVENT_ |
| |
| |
| |
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Window root; |
| Window subwindow; |
| Time time; |
| int x, y; |
| int x_root, y_root; |
| unsigned int state; |
| unsigned int keycode; |
| Bool same_screen; |
| } XKeyEvent; |
| typedef XKeyEvent XKeyPressedEvent; |
| typedef XKeyEvent XKeyReleasedEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Window root; |
| Window subwindow; |
| Time time; |
| int x, y; |
| int x_root, y_root; |
| unsigned int state; |
| unsigned int button; |
| Bool same_screen; |
| } XButtonEvent; |
| typedef XButtonEvent XButtonPressedEvent; |
| typedef XButtonEvent XButtonReleasedEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Window root; |
| Window subwindow; |
| Time time; |
| int x, y; |
| int x_root, y_root; |
| unsigned int state; |
| char is_hint; |
| Bool same_screen; |
| } XMotionEvent; |
| typedef XMotionEvent XPointerMovedEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Window root; |
| Window subwindow; |
| Time time; |
| int x, y; |
| int x_root, y_root; |
| int mode; |
| int detail; |
| |
| |
| |
| |
| Bool same_screen; |
| Bool focus; |
| unsigned int state; |
| } XCrossingEvent; |
| typedef XCrossingEvent XEnterWindowEvent; |
| typedef XCrossingEvent XLeaveWindowEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| int mode; |
| |
| int detail; |
| |
| |
| |
| |
| |
| } XFocusChangeEvent; |
| typedef XFocusChangeEvent XFocusInEvent; |
| typedef XFocusChangeEvent XFocusOutEvent; |
|
|
| |
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| char key_vector[32]; |
| } XKeymapEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| int x, y; |
| int width, height; |
| int count; |
| } XExposeEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Drawable drawable; |
| int x, y; |
| int width, height; |
| int count; |
| int major_code; |
| int minor_code; |
| } XGraphicsExposeEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Drawable drawable; |
| int major_code; |
| int minor_code; |
| } XNoExposeEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| int state; |
| } XVisibilityEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window parent; |
| Window window; |
| int x, y; |
| int width, height; |
| int border_width; |
| Bool override_redirect; |
| } XCreateWindowEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window event; |
| Window window; |
| } XDestroyWindowEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window event; |
| Window window; |
| Bool from_configure; |
| } XUnmapEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window event; |
| Window window; |
| Bool override_redirect; |
| } XMapEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window parent; |
| Window window; |
| } XMapRequestEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window event; |
| Window window; |
| Window parent; |
| int x, y; |
| Bool override_redirect; |
| } XReparentEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window event; |
| Window window; |
| int x, y; |
| int width, height; |
| int border_width; |
| Window above; |
| Bool override_redirect; |
| } XConfigureEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window event; |
| Window window; |
| int x, y; |
| } XGravityEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| int width, height; |
| } XResizeRequestEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window parent; |
| Window window; |
| int x, y; |
| int width, height; |
| int border_width; |
| Window above; |
| int detail; |
| unsigned long value_mask; |
| } XConfigureRequestEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window event; |
| Window window; |
| int place; |
| } XCirculateEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window parent; |
| Window window; |
| int place; |
| } XCirculateRequestEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Atom atom; |
| Time time; |
| int state; |
| } XPropertyEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Atom selection; |
| Time time; |
| } XSelectionClearEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window owner; |
| Window requestor; |
| Atom selection; |
| Atom target; |
| Atom property; |
| Time time; |
| } XSelectionRequestEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window requestor; |
| Atom selection; |
| Atom target; |
| Atom property; |
| Time time; |
| } XSelectionEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Colormap colormap; |
| #if defined(__cplusplus) || defined(c_plusplus) |
| Bool c_new; |
| #else |
| Bool new; |
| #endif |
| int state; |
| } XColormapEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| Atom message_type; |
| int format; |
| union { |
| char b[20]; |
| short s[10]; |
| long l[5]; |
| } data; |
| } XClientMessageEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| int request; |
| |
| int first_keycode; |
| int count; |
| } XMappingEvent; |
|
|
| typedef struct { |
| int type; |
| Display *display; |
| XID resourceid; |
| unsigned long serial; |
| unsigned char error_code; |
| unsigned char request_code; |
| unsigned char minor_code; |
| } XErrorEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| Window window; |
| } XAnyEvent; |
|
|
|
|
| |
| |
| |
| |
|
|
| typedef struct |
| { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| int extension; |
| int evtype; |
| } XGenericEvent; |
|
|
| typedef struct { |
| int type; |
| unsigned long serial; |
| Bool send_event; |
| Display *display; |
| int extension; |
| int evtype; |
| unsigned int cookie; |
| void *data; |
| } XGenericEventCookie; |
|
|
| |
| |
| |
| |
| typedef union _XEvent { |
| int type; |
| XAnyEvent xany; |
| XKeyEvent xkey; |
| XButtonEvent xbutton; |
| XMotionEvent xmotion; |
| XCrossingEvent xcrossing; |
| XFocusChangeEvent xfocus; |
| XExposeEvent xexpose; |
| XGraphicsExposeEvent xgraphicsexpose; |
| XNoExposeEvent xnoexpose; |
| XVisibilityEvent xvisibility; |
| XCreateWindowEvent xcreatewindow; |
| XDestroyWindowEvent xdestroywindow; |
| XUnmapEvent xunmap; |
| XMapEvent xmap; |
| XMapRequestEvent xmaprequest; |
| XReparentEvent xreparent; |
| XConfigureEvent xconfigure; |
| XGravityEvent xgravity; |
| XResizeRequestEvent xresizerequest; |
| XConfigureRequestEvent xconfigurerequest; |
| XCirculateEvent xcirculate; |
| XCirculateRequestEvent xcirculaterequest; |
| XPropertyEvent xproperty; |
| XSelectionClearEvent xselectionclear; |
| XSelectionRequestEvent xselectionrequest; |
| XSelectionEvent xselection; |
| XColormapEvent xcolormap; |
| XClientMessageEvent xclient; |
| XMappingEvent xmapping; |
| XErrorEvent xerror; |
| XKeymapEvent xkeymap; |
| XGenericEvent xgeneric; |
| XGenericEventCookie xcookie; |
| long pad[24]; |
| } XEvent; |
| #endif |
|
|
| #define XAllocID(dpy) ((*((_XPrivDisplay)(dpy))->resource_alloc)((dpy))) |
|
|
| |
| |
| |
| typedef struct { |
| short lbearing; |
| short rbearing; |
| short width; |
| short ascent; |
| short descent; |
| unsigned short attributes; |
| } XCharStruct; |
|
|
| |
| |
| |
| |
| typedef struct { |
| Atom name; |
| unsigned long card32; |
| } XFontProp; |
|
|
| typedef struct { |
| XExtData *ext_data; |
| Font fid; |
| unsigned direction; |
| unsigned min_char_or_byte2; |
| unsigned max_char_or_byte2; |
| unsigned min_byte1; |
| unsigned max_byte1; |
| Bool all_chars_exist; |
| unsigned default_char; |
| int n_properties; |
| XFontProp *properties; |
| XCharStruct min_bounds; |
| XCharStruct max_bounds; |
| XCharStruct *per_char; |
| int ascent; |
| int descent; |
| } XFontStruct; |
|
|
| |
| |
| |
| typedef struct { |
| char *chars; |
| int nchars; |
| int delta; |
| Font font; |
| } XTextItem; |
|
|
| typedef struct { |
| unsigned char byte1; |
| unsigned char byte2; |
| } XChar2b; |
|
|
| typedef struct { |
| XChar2b *chars; |
| int nchars; |
| int delta; |
| Font font; |
| } XTextItem16; |
|
|
|
|
| typedef union { Display *display; |
| GC gc; |
| Visual *visual; |
| Screen *screen; |
| ScreenFormat *pixmap_format; |
| XFontStruct *font; } XEDataObject; |
|
|
| typedef struct { |
| XRectangle max_ink_extent; |
| XRectangle max_logical_extent; |
| } XFontSetExtents; |
|
|
| |
| |
| |
|
|
| typedef struct _XOM *XOM; |
| typedef struct _XOC *XOC, *XFontSet; |
|
|
| typedef struct { |
| char *chars; |
| int nchars; |
| int delta; |
| XFontSet font_set; |
| } XmbTextItem; |
|
|
| typedef struct { |
| wchar_t *chars; |
| int nchars; |
| int delta; |
| XFontSet font_set; |
| } XwcTextItem; |
|
|
| #define XNRequiredCharSet "requiredCharSet" |
| #define XNQueryOrientation "queryOrientation" |
| #define XNBaseFontName "baseFontName" |
| #define XNOMAutomatic "omAutomatic" |
| #define XNMissingCharSet "missingCharSet" |
| #define XNDefaultString "defaultString" |
| #define XNOrientation "orientation" |
| #define XNDirectionalDependentDrawing "directionalDependentDrawing" |
| #define XNContextualDrawing "contextualDrawing" |
| #define XNFontInfo "fontInfo" |
|
|
| typedef struct { |
| int charset_count; |
| char **charset_list; |
| } XOMCharSetList; |
|
|
| typedef enum { |
| XOMOrientation_LTR_TTB, |
| XOMOrientation_RTL_TTB, |
| XOMOrientation_TTB_LTR, |
| XOMOrientation_TTB_RTL, |
| XOMOrientation_Context |
| } XOrientation; |
|
|
| typedef struct { |
| int num_orientation; |
| XOrientation *orientation; |
| } XOMOrientation; |
|
|
| typedef struct { |
| int num_font; |
| XFontStruct **font_struct_list; |
| char **font_name_list; |
| } XOMFontInfo; |
|
|
| typedef struct _XIM *XIM; |
| typedef struct _XIC *XIC; |
|
|
| typedef void (*XIMProc)( |
| XIM, |
| XPointer, |
| XPointer |
| ); |
|
|
| typedef Bool (*XICProc)( |
| XIC, |
| XPointer, |
| XPointer |
| ); |
|
|
| typedef void (*XIDProc)( |
| Display*, |
| XPointer, |
| XPointer |
| ); |
|
|
| typedef unsigned long XIMStyle; |
|
|
| typedef struct { |
| unsigned short count_styles; |
| XIMStyle *supported_styles; |
| } XIMStyles; |
|
|
| #define XIMPreeditArea 0x0001L |
| #define XIMPreeditCallbacks 0x0002L |
| #define XIMPreeditPosition 0x0004L |
| #define XIMPreeditNothing 0x0008L |
| #define XIMPreeditNone 0x0010L |
| #define XIMStatusArea 0x0100L |
| #define XIMStatusCallbacks 0x0200L |
| #define XIMStatusNothing 0x0400L |
| #define XIMStatusNone 0x0800L |
|
|
| #define XNVaNestedList "XNVaNestedList" |
| #define XNQueryInputStyle "queryInputStyle" |
| #define XNClientWindow "clientWindow" |
| #define XNInputStyle "inputStyle" |
| #define XNFocusWindow "focusWindow" |
| #define XNResourceName "resourceName" |
| #define XNResourceClass "resourceClass" |
| #define XNGeometryCallback "geometryCallback" |
| #define XNDestroyCallback "destroyCallback" |
| #define XNFilterEvents "filterEvents" |
| #define XNPreeditStartCallback "preeditStartCallback" |
| #define XNPreeditDoneCallback "preeditDoneCallback" |
| #define XNPreeditDrawCallback "preeditDrawCallback" |
| #define XNPreeditCaretCallback "preeditCaretCallback" |
| #define XNPreeditStateNotifyCallback "preeditStateNotifyCallback" |
| #define XNPreeditAttributes "preeditAttributes" |
| #define XNStatusStartCallback "statusStartCallback" |
| #define XNStatusDoneCallback "statusDoneCallback" |
| #define XNStatusDrawCallback "statusDrawCallback" |
| #define XNStatusAttributes "statusAttributes" |
| #define XNArea "area" |
| #define XNAreaNeeded "areaNeeded" |
| #define XNSpotLocation "spotLocation" |
| #define XNColormap "colorMap" |
| #define XNStdColormap "stdColorMap" |
| #define XNForeground "foreground" |
| #define XNBackground "background" |
| #define XNBackgroundPixmap "backgroundPixmap" |
| #define XNFontSet "fontSet" |
| #define XNLineSpace "lineSpace" |
| #define XNCursor "cursor" |
|
|
| #define XNQueryIMValuesList "queryIMValuesList" |
| #define XNQueryICValuesList "queryICValuesList" |
| #define XNVisiblePosition "visiblePosition" |
| #define XNR6PreeditCallback "r6PreeditCallback" |
| #define XNStringConversionCallback "stringConversionCallback" |
| #define XNStringConversion "stringConversion" |
| #define XNResetState "resetState" |
| #define XNHotKey "hotKey" |
| #define XNHotKeyState "hotKeyState" |
| #define XNPreeditState "preeditState" |
| #define XNSeparatorofNestedList "separatorofNestedList" |
|
|
| #define XBufferOverflow -1 |
| #define XLookupNone 1 |
| #define XLookupChars 2 |
| #define XLookupKeySym 3 |
| #define XLookupBoth 4 |
|
|
| typedef void *XVaNestedList; |
|
|
| typedef struct { |
| XPointer client_data; |
| XIMProc callback; |
| } XIMCallback; |
|
|
| typedef struct { |
| XPointer client_data; |
| XICProc callback; |
| } XICCallback; |
|
|
| typedef unsigned long XIMFeedback; |
|
|
| #define XIMReverse 1L |
| #define XIMUnderline (1L<<1) |
| #define XIMHighlight (1L<<2) |
| #define XIMPrimary (1L<<5) |
| #define XIMSecondary (1L<<6) |
| #define XIMTertiary (1L<<7) |
| #define XIMVisibleToForward (1L<<8) |
| #define XIMVisibleToBackword (1L<<9) |
| #define XIMVisibleToCenter (1L<<10) |
|
|
| typedef struct _XIMText { |
| unsigned short length; |
| XIMFeedback *feedback; |
| Bool encoding_is_wchar; |
| union { |
| char *multi_byte; |
| wchar_t *wide_char; |
| } string; |
| } XIMText; |
|
|
| typedef unsigned long XIMPreeditState; |
|
|
| #define XIMPreeditUnKnown 0L |
| #define XIMPreeditEnable 1L |
| #define XIMPreeditDisable (1L<<1) |
|
|
| typedef struct _XIMPreeditStateNotifyCallbackStruct { |
| XIMPreeditState state; |
| } XIMPreeditStateNotifyCallbackStruct; |
|
|
| typedef unsigned long XIMResetState; |
|
|
| #define XIMInitialState 1L |
| #define XIMPreserveState (1L<<1) |
|
|
| typedef unsigned long XIMStringConversionFeedback; |
|
|
| #define XIMStringConversionLeftEdge (0x00000001) |
| #define XIMStringConversionRightEdge (0x00000002) |
| #define XIMStringConversionTopEdge (0x00000004) |
| #define XIMStringConversionBottomEdge (0x00000008) |
| #define XIMStringConversionConcealed (0x00000010) |
| #define XIMStringConversionWrapped (0x00000020) |
|
|
| typedef struct _XIMStringConversionText { |
| unsigned short length; |
| XIMStringConversionFeedback *feedback; |
| Bool encoding_is_wchar; |
| union { |
| char *mbs; |
| wchar_t *wcs; |
| } string; |
| } XIMStringConversionText; |
|
|
| typedef unsigned short XIMStringConversionPosition; |
|
|
| typedef unsigned short XIMStringConversionType; |
|
|
| #define XIMStringConversionBuffer (0x0001) |
| #define XIMStringConversionLine (0x0002) |
| #define XIMStringConversionWord (0x0003) |
| #define XIMStringConversionChar (0x0004) |
|
|
| typedef unsigned short XIMStringConversionOperation; |
|
|
| #define XIMStringConversionSubstitution (0x0001) |
| #define XIMStringConversionRetrieval (0x0002) |
|
|
| typedef enum { |
| XIMForwardChar, XIMBackwardChar, |
| XIMForwardWord, XIMBackwardWord, |
| XIMCaretUp, XIMCaretDown, |
| XIMNextLine, XIMPreviousLine, |
| XIMLineStart, XIMLineEnd, |
| XIMAbsolutePosition, |
| XIMDontChange |
| } XIMCaretDirection; |
|
|
| typedef struct _XIMStringConversionCallbackStruct { |
| XIMStringConversionPosition position; |
| XIMCaretDirection direction; |
| XIMStringConversionOperation operation; |
| unsigned short factor; |
| XIMStringConversionText *text; |
| } XIMStringConversionCallbackStruct; |
|
|
| typedef struct _XIMPreeditDrawCallbackStruct { |
| int caret; |
| int chg_first; |
| int chg_length; |
| XIMText *text; |
| } XIMPreeditDrawCallbackStruct; |
|
|
| typedef enum { |
| XIMIsInvisible, |
| XIMIsPrimary, |
| XIMIsSecondary |
| } XIMCaretStyle; |
|
|
| typedef struct _XIMPreeditCaretCallbackStruct { |
| int position; |
| XIMCaretDirection direction; |
| XIMCaretStyle style; |
| } XIMPreeditCaretCallbackStruct; |
|
|
| typedef enum { |
| XIMTextType, |
| XIMBitmapType |
| } XIMStatusDataType; |
|
|
| typedef struct _XIMStatusDrawCallbackStruct { |
| XIMStatusDataType type; |
| union { |
| XIMText *text; |
| Pixmap bitmap; |
| } data; |
| } XIMStatusDrawCallbackStruct; |
|
|
| typedef struct _XIMHotKeyTrigger { |
| KeySym keysym; |
| int modifier; |
| int modifier_mask; |
| } XIMHotKeyTrigger; |
|
|
| typedef struct _XIMHotKeyTriggers { |
| int num_hot_key; |
| XIMHotKeyTrigger *key; |
| } XIMHotKeyTriggers; |
|
|
| typedef unsigned long XIMHotKeyState; |
|
|
| #define XIMHotKeyStateON (0x0001L) |
| #define XIMHotKeyStateOFF (0x0002L) |
|
|
| typedef struct { |
| unsigned short count_values; |
| char **supported_values; |
| } XIMValuesList; |
|
|
| _XFUNCPROTOBEGIN |
|
|
| #if defined(WIN32) && !defined(_XLIBINT_) |
| #define _Xdebug (*_Xdebug_p) |
| #endif |
|
|
| extern int _Xdebug; |
|
|
| extern XFontStruct *XLoadQueryFont( |
| Display* , |
| _Xconst char* |
| ); |
|
|
| extern XFontStruct *XQueryFont( |
| Display* , |
| XID |
| ); |
|
|
|
|
| extern XTimeCoord *XGetMotionEvents( |
| Display* , |
| Window , |
| Time , |
| Time , |
| int* |
| ); |
|
|
| extern XModifierKeymap *XDeleteModifiermapEntry( |
| XModifierKeymap* , |
| #if NeedWidePrototypes |
| unsigned int , |
| #else |
| KeyCode , |
| #endif |
| int |
| ); |
|
|
| extern XModifierKeymap *XGetModifierMapping( |
| Display* |
| ); |
|
|
| extern XModifierKeymap *XInsertModifiermapEntry( |
| XModifierKeymap* , |
| #if NeedWidePrototypes |
| unsigned int , |
| #else |
| KeyCode , |
| #endif |
| int |
| ); |
|
|
| extern XModifierKeymap *XNewModifiermap( |
| int |
| ); |
|
|
| extern XImage *XCreateImage( |
| Display* , |
| Visual* , |
| unsigned int , |
| int , |
| int , |
| char* , |
| unsigned int , |
| unsigned int , |
| int , |
| int |
| ); |
| extern Status XInitImage( |
| XImage* |
| ); |
| extern XImage *XGetImage( |
| Display* , |
| Drawable , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| unsigned long , |
| int |
| ); |
| extern XImage *XGetSubImage( |
| Display* , |
| Drawable , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| unsigned long , |
| int , |
| XImage* , |
| int , |
| int |
| ); |
|
|
| |
| |
| |
| extern Display *XOpenDisplay( |
| _Xconst char* |
| ); |
|
|
| extern void XrmInitialize( |
| void |
| ); |
|
|
| extern char *XFetchBytes( |
| Display* , |
| int* |
| ); |
| extern char *XFetchBuffer( |
| Display* , |
| int* , |
| int |
| ); |
| extern char *XGetAtomName( |
| Display* , |
| Atom |
| ); |
| extern Status XGetAtomNames( |
| Display* , |
| Atom* , |
| int , |
| char** |
| ); |
| extern char *XGetDefault( |
| Display* , |
| _Xconst char* , |
| _Xconst char* |
| ); |
| extern char *XDisplayName( |
| _Xconst char* |
| ); |
| extern char *XKeysymToString( |
| KeySym |
| ); |
|
|
| extern int (*XSynchronize( |
| Display* , |
| Bool |
| ))( |
| Display* |
| ); |
| extern int (*XSetAfterFunction( |
| Display* , |
| int (*) ( |
| Display* |
| ) |
| ))( |
| Display* |
| ); |
| extern Atom XInternAtom( |
| Display* , |
| _Xconst char* , |
| Bool |
| ); |
| extern Status XInternAtoms( |
| Display* , |
| char** , |
| int , |
| Bool , |
| Atom* |
| ); |
| extern Colormap XCopyColormapAndFree( |
| Display* , |
| Colormap |
| ); |
| extern Colormap XCreateColormap( |
| Display* , |
| Window , |
| Visual* , |
| int |
| ); |
| extern Cursor XCreatePixmapCursor( |
| Display* , |
| Pixmap , |
| Pixmap , |
| XColor* , |
| XColor* , |
| unsigned int , |
| unsigned int |
| ); |
| extern Cursor XCreateGlyphCursor( |
| Display* , |
| Font , |
| Font , |
| unsigned int , |
| unsigned int , |
| XColor _Xconst * , |
| XColor _Xconst * |
| ); |
| extern Cursor XCreateFontCursor( |
| Display* , |
| unsigned int |
| ); |
| extern Font XLoadFont( |
| Display* , |
| _Xconst char* |
| ); |
| extern GC XCreateGC( |
| Display* , |
| Drawable , |
| unsigned long , |
| XGCValues* |
| ); |
| extern GContext XGContextFromGC( |
| GC |
| ); |
| extern void XFlushGC( |
| Display* , |
| GC |
| ); |
| extern Pixmap XCreatePixmap( |
| Display* , |
| Drawable , |
| unsigned int , |
| unsigned int , |
| unsigned int |
| ); |
| extern Pixmap XCreateBitmapFromData( |
| Display* , |
| Drawable , |
| _Xconst char* , |
| unsigned int , |
| unsigned int |
| ); |
| extern Pixmap XCreatePixmapFromBitmapData( |
| Display* , |
| Drawable , |
| char* , |
| unsigned int , |
| unsigned int , |
| unsigned long , |
| unsigned long , |
| unsigned int |
| ); |
| extern Window XCreateSimpleWindow( |
| Display* , |
| Window , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| unsigned int , |
| unsigned long , |
| unsigned long |
| ); |
| extern Window XGetSelectionOwner( |
| Display* , |
| Atom |
| ); |
| extern Window XCreateWindow( |
| Display* , |
| Window , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| unsigned int , |
| int , |
| unsigned int , |
| Visual* , |
| unsigned long , |
| XSetWindowAttributes* |
| ); |
| extern Colormap *XListInstalledColormaps( |
| Display* , |
| Window , |
| int* |
| ); |
| extern char **XListFonts( |
| Display* , |
| _Xconst char* , |
| int , |
| int* |
| ); |
| extern char **XListFontsWithInfo( |
| Display* , |
| _Xconst char* , |
| int , |
| int* , |
| XFontStruct** |
| ); |
| extern char **XGetFontPath( |
| Display* , |
| int* |
| ); |
| extern char **XListExtensions( |
| Display* , |
| int* |
| ); |
| extern Atom *XListProperties( |
| Display* , |
| Window , |
| int* |
| ); |
| extern XHostAddress *XListHosts( |
| Display* , |
| int* , |
| Bool* |
| ); |
| _X_DEPRECATED |
| extern KeySym XKeycodeToKeysym( |
| Display* , |
| #if NeedWidePrototypes |
| unsigned int , |
| #else |
| KeyCode , |
| #endif |
| int |
| ); |
| extern KeySym XLookupKeysym( |
| XKeyEvent* , |
| int |
| ); |
| extern KeySym *XGetKeyboardMapping( |
| Display* , |
| #if NeedWidePrototypes |
| unsigned int , |
| #else |
| KeyCode , |
| #endif |
| int , |
| int* |
| ); |
| extern KeySym XStringToKeysym( |
| _Xconst char* |
| ); |
| extern long XMaxRequestSize( |
| Display* |
| ); |
| extern long XExtendedMaxRequestSize( |
| Display* |
| ); |
| extern char *XResourceManagerString( |
| Display* |
| ); |
| extern char *XScreenResourceString( |
| Screen* |
| ); |
| extern unsigned long XDisplayMotionBufferSize( |
| Display* |
| ); |
| extern VisualID XVisualIDFromVisual( |
| Visual* |
| ); |
|
|
| |
|
|
| extern Status XInitThreads( |
| void |
| ); |
|
|
| extern Status XFreeThreads( |
| void |
| ); |
|
|
| extern void XLockDisplay( |
| Display* |
| ); |
|
|
| extern void XUnlockDisplay( |
| Display* |
| ); |
|
|
| |
|
|
| extern XExtCodes *XInitExtension( |
| Display* , |
| _Xconst char* |
| ); |
|
|
| extern XExtCodes *XAddExtension( |
| Display* |
| ); |
| extern XExtData *XFindOnExtensionList( |
| XExtData** , |
| int |
| ); |
| extern XExtData **XEHeadOfExtensionList( |
| XEDataObject |
| ); |
|
|
| |
| extern Window XRootWindow( |
| Display* , |
| int |
| ); |
| extern Window XDefaultRootWindow( |
| Display* |
| ); |
| extern Window XRootWindowOfScreen( |
| Screen* |
| ); |
| extern Visual *XDefaultVisual( |
| Display* , |
| int |
| ); |
| extern Visual *XDefaultVisualOfScreen( |
| Screen* |
| ); |
| extern GC XDefaultGC( |
| Display* , |
| int |
| ); |
| extern GC XDefaultGCOfScreen( |
| Screen* |
| ); |
| extern unsigned long XBlackPixel( |
| Display* , |
| int |
| ); |
| extern unsigned long XWhitePixel( |
| Display* , |
| int |
| ); |
| extern unsigned long XAllPlanes( |
| void |
| ); |
| extern unsigned long XBlackPixelOfScreen( |
| Screen* |
| ); |
| extern unsigned long XWhitePixelOfScreen( |
| Screen* |
| ); |
| extern unsigned long XNextRequest( |
| Display* |
| ); |
| extern unsigned long XLastKnownRequestProcessed( |
| Display* |
| ); |
| extern char *XServerVendor( |
| Display* |
| ); |
| extern char *XDisplayString( |
| Display* |
| ); |
| extern Colormap XDefaultColormap( |
| Display* , |
| int |
| ); |
| extern Colormap XDefaultColormapOfScreen( |
| Screen* |
| ); |
| extern Display *XDisplayOfScreen( |
| Screen* |
| ); |
| extern Screen *XScreenOfDisplay( |
| Display* , |
| int |
| ); |
| extern Screen *XDefaultScreenOfDisplay( |
| Display* |
| ); |
| extern long XEventMaskOfScreen( |
| Screen* |
| ); |
|
|
| extern int XScreenNumberOfScreen( |
| Screen* |
| ); |
|
|
| typedef int (*XErrorHandler) ( |
| Display* , |
| XErrorEvent* |
| ); |
|
|
| extern XErrorHandler XSetErrorHandler ( |
| XErrorHandler |
| ); |
|
|
|
|
| typedef int (*XIOErrorHandler) ( |
| Display* |
| ); |
|
|
| extern XIOErrorHandler XSetIOErrorHandler ( |
| XIOErrorHandler |
| ); |
|
|
| typedef void (*XIOErrorExitHandler) ( |
| Display*, |
| void* |
| ); |
|
|
| extern void XSetIOErrorExitHandler ( |
| Display*, |
| XIOErrorExitHandler, |
| void* |
| ); |
|
|
| extern XPixmapFormatValues *XListPixmapFormats( |
| Display* , |
| int* |
| ); |
| extern int *XListDepths( |
| Display* , |
| int , |
| int* |
| ); |
|
|
| |
| |
| extern Status XReconfigureWMWindow( |
| Display* , |
| Window , |
| int , |
| unsigned int , |
| XWindowChanges* |
| ); |
|
|
| extern Status XGetWMProtocols( |
| Display* , |
| Window , |
| Atom** , |
| int* |
| ); |
| extern Status XSetWMProtocols( |
| Display* , |
| Window , |
| Atom* , |
| int |
| ); |
| extern Status XIconifyWindow( |
| Display* , |
| Window , |
| int |
| ); |
| extern Status XWithdrawWindow( |
| Display* , |
| Window , |
| int |
| ); |
| extern Status XGetCommand( |
| Display* , |
| Window , |
| char*** , |
| int* |
| ); |
| extern Status XGetWMColormapWindows( |
| Display* , |
| Window , |
| Window** , |
| int* |
| ); |
| extern Status XSetWMColormapWindows( |
| Display* , |
| Window , |
| Window* , |
| int |
| ); |
| extern void XFreeStringList( |
| char** |
| ); |
| extern int XSetTransientForHint( |
| Display* , |
| Window , |
| Window |
| ); |
|
|
| |
|
|
| extern int XActivateScreenSaver( |
| Display* |
| ); |
|
|
| extern int XAddHost( |
| Display* , |
| XHostAddress* |
| ); |
|
|
| extern int XAddHosts( |
| Display* , |
| XHostAddress* , |
| int |
| ); |
|
|
| extern int XAddToExtensionList( |
| struct _XExtData** , |
| XExtData* |
| ); |
|
|
| extern int XAddToSaveSet( |
| Display* , |
| Window |
| ); |
|
|
| extern Status XAllocColor( |
| Display* , |
| Colormap , |
| XColor* |
| ); |
|
|
| extern Status XAllocColorCells( |
| Display* , |
| Colormap , |
| Bool , |
| unsigned long* , |
| unsigned int , |
| unsigned long* , |
| unsigned int |
| ); |
|
|
| extern Status XAllocColorPlanes( |
| Display* , |
| Colormap , |
| Bool , |
| unsigned long* , |
| int , |
| int , |
| int , |
| int , |
| unsigned long* , |
| unsigned long* , |
| unsigned long* |
| ); |
|
|
| extern Status XAllocNamedColor( |
| Display* , |
| Colormap , |
| _Xconst char* , |
| XColor* , |
| XColor* |
| ); |
|
|
| extern int XAllowEvents( |
| Display* , |
| int , |
| Time |
| ); |
|
|
| extern int XAutoRepeatOff( |
| Display* |
| ); |
|
|
| extern int XAutoRepeatOn( |
| Display* |
| ); |
|
|
| extern int XBell( |
| Display* , |
| int |
| ); |
|
|
| extern int XBitmapBitOrder( |
| Display* |
| ); |
|
|
| extern int XBitmapPad( |
| Display* |
| ); |
|
|
| extern int XBitmapUnit( |
| Display* |
| ); |
|
|
| extern int XCellsOfScreen( |
| Screen* |
| ); |
|
|
| extern int XChangeActivePointerGrab( |
| Display* , |
| unsigned int , |
| Cursor , |
| Time |
| ); |
|
|
| extern int XChangeGC( |
| Display* , |
| GC , |
| unsigned long , |
| XGCValues* |
| ); |
|
|
| extern int XChangeKeyboardControl( |
| Display* , |
| unsigned long , |
| XKeyboardControl* |
| ); |
|
|
| extern int XChangeKeyboardMapping( |
| Display* , |
| int , |
| int , |
| KeySym* , |
| int |
| ); |
|
|
| extern int XChangePointerControl( |
| Display* , |
| Bool , |
| Bool , |
| int , |
| int , |
| int |
| ); |
|
|
| extern int XChangeProperty( |
| Display* , |
| Window , |
| Atom , |
| Atom , |
| int , |
| int , |
| _Xconst unsigned char* , |
| int |
| ); |
|
|
| extern int XChangeSaveSet( |
| Display* , |
| Window , |
| int |
| ); |
|
|
| extern int XChangeWindowAttributes( |
| Display* , |
| Window , |
| unsigned long , |
| XSetWindowAttributes* |
| ); |
|
|
| extern Bool XCheckIfEvent( |
| Display* , |
| XEvent* , |
| Bool (*) ( |
| Display* , |
| XEvent* , |
| XPointer |
| ) , |
| XPointer |
| ); |
|
|
| extern Bool XCheckMaskEvent( |
| Display* , |
| long , |
| XEvent* |
| ); |
|
|
| extern Bool XCheckTypedEvent( |
| Display* , |
| int , |
| XEvent* |
| ); |
|
|
| extern Bool XCheckTypedWindowEvent( |
| Display* , |
| Window , |
| int , |
| XEvent* |
| ); |
|
|
| extern Bool XCheckWindowEvent( |
| Display* , |
| Window , |
| long , |
| XEvent* |
| ); |
|
|
| extern int XCirculateSubwindows( |
| Display* , |
| Window , |
| int |
| ); |
|
|
| extern int XCirculateSubwindowsDown( |
| Display* , |
| Window |
| ); |
|
|
| extern int XCirculateSubwindowsUp( |
| Display* , |
| Window |
| ); |
|
|
| extern int XClearArea( |
| Display* , |
| Window , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| Bool |
| ); |
|
|
| extern int XClearWindow( |
| Display* , |
| Window |
| ); |
|
|
| extern int XCloseDisplay( |
| Display* |
| ); |
|
|
| extern int XConfigureWindow( |
| Display* , |
| Window , |
| unsigned int , |
| XWindowChanges* |
| ); |
|
|
| extern int XConnectionNumber( |
| Display* |
| ); |
|
|
| extern int XConvertSelection( |
| Display* , |
| Atom , |
| Atom , |
| Atom , |
| Window , |
| Time |
| ); |
|
|
| extern int XCopyArea( |
| Display* , |
| Drawable , |
| Drawable , |
| GC , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| int , |
| int |
| ); |
|
|
| extern int XCopyGC( |
| Display* , |
| GC , |
| unsigned long , |
| GC |
| ); |
|
|
| extern int XCopyPlane( |
| Display* , |
| Drawable , |
| Drawable , |
| GC , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| int , |
| int , |
| unsigned long |
| ); |
|
|
| extern int XDefaultDepth( |
| Display* , |
| int |
| ); |
|
|
| extern int XDefaultDepthOfScreen( |
| Screen* |
| ); |
|
|
| extern int XDefaultScreen( |
| Display* |
| ); |
|
|
| extern int XDefineCursor( |
| Display* , |
| Window , |
| Cursor |
| ); |
|
|
| extern int XDeleteProperty( |
| Display* , |
| Window , |
| Atom |
| ); |
|
|
| extern int XDestroyWindow( |
| Display* , |
| Window |
| ); |
|
|
| extern int XDestroySubwindows( |
| Display* , |
| Window |
| ); |
|
|
| extern int XDoesBackingStore( |
| Screen* |
| ); |
|
|
| extern Bool XDoesSaveUnders( |
| Screen* |
| ); |
|
|
| extern int XDisableAccessControl( |
| Display* |
| ); |
|
|
|
|
| extern int XDisplayCells( |
| Display* , |
| int |
| ); |
|
|
| extern int XDisplayHeight( |
| Display* , |
| int |
| ); |
|
|
| extern int XDisplayHeightMM( |
| Display* , |
| int |
| ); |
|
|
| extern int XDisplayKeycodes( |
| Display* , |
| int* , |
| int* |
| ); |
|
|
| extern int XDisplayPlanes( |
| Display* , |
| int |
| ); |
|
|
| extern int XDisplayWidth( |
| Display* , |
| int |
| ); |
|
|
| extern int XDisplayWidthMM( |
| Display* , |
| int |
| ); |
|
|
| extern int XDrawArc( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| int , |
| int |
| ); |
|
|
| extern int XDrawArcs( |
| Display* , |
| Drawable , |
| GC , |
| XArc* , |
| int |
| ); |
|
|
| extern int XDrawImageString( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern int XDrawImageString16( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| _Xconst XChar2b* , |
| int |
| ); |
|
|
| extern int XDrawLine( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| int , |
| int |
| ); |
|
|
| extern int XDrawLines( |
| Display* , |
| Drawable , |
| GC , |
| XPoint* , |
| int , |
| int |
| ); |
|
|
| extern int XDrawPoint( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int |
| ); |
|
|
| extern int XDrawPoints( |
| Display* , |
| Drawable , |
| GC , |
| XPoint* , |
| int , |
| int |
| ); |
|
|
| extern int XDrawRectangle( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| unsigned int , |
| unsigned int |
| ); |
|
|
| extern int XDrawRectangles( |
| Display* , |
| Drawable , |
| GC , |
| XRectangle* , |
| int |
| ); |
|
|
| extern int XDrawSegments( |
| Display* , |
| Drawable , |
| GC , |
| XSegment* , |
| int |
| ); |
|
|
| extern int XDrawString( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern int XDrawString16( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| _Xconst XChar2b* , |
| int |
| ); |
|
|
| extern int XDrawText( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| XTextItem* , |
| int |
| ); |
|
|
| extern int XDrawText16( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| XTextItem16* , |
| int |
| ); |
|
|
| extern int XEnableAccessControl( |
| Display* |
| ); |
|
|
| extern int XEventsQueued( |
| Display* , |
| int |
| ); |
|
|
| extern Status XFetchName( |
| Display* , |
| Window , |
| char** |
| ); |
|
|
| extern int XFillArc( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| int , |
| int |
| ); |
|
|
| extern int XFillArcs( |
| Display* , |
| Drawable , |
| GC , |
| XArc* , |
| int |
| ); |
|
|
| extern int XFillPolygon( |
| Display* , |
| Drawable , |
| GC , |
| XPoint* , |
| int , |
| int , |
| int |
| ); |
|
|
| extern int XFillRectangle( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| unsigned int , |
| unsigned int |
| ); |
|
|
| extern int XFillRectangles( |
| Display* , |
| Drawable , |
| GC , |
| XRectangle* , |
| int |
| ); |
|
|
| extern int XFlush( |
| Display* |
| ); |
|
|
| extern int XForceScreenSaver( |
| Display* , |
| int |
| ); |
|
|
| extern int XFree( |
| void* |
| ); |
|
|
| extern int XFreeColormap( |
| Display* , |
| Colormap |
| ); |
|
|
| extern int XFreeColors( |
| Display* , |
| Colormap , |
| unsigned long* , |
| int , |
| unsigned long |
| ); |
|
|
| extern int XFreeCursor( |
| Display* , |
| Cursor |
| ); |
|
|
| extern int XFreeExtensionList( |
| char** |
| ); |
|
|
| extern int XFreeFont( |
| Display* , |
| XFontStruct* |
| ); |
|
|
| extern int XFreeFontInfo( |
| char** , |
| XFontStruct* , |
| int |
| ); |
|
|
| extern int XFreeFontNames( |
| char** |
| ); |
|
|
| extern int XFreeFontPath( |
| char** |
| ); |
|
|
| extern int XFreeGC( |
| Display* , |
| GC |
| ); |
|
|
| extern int XFreeModifiermap( |
| XModifierKeymap* |
| ); |
|
|
| extern int XFreePixmap( |
| Display* , |
| Pixmap |
| ); |
|
|
| extern int XGeometry( |
| Display* , |
| int , |
| _Xconst char* , |
| _Xconst char* , |
| unsigned int , |
| unsigned int , |
| unsigned int , |
| int , |
| int , |
| int* , |
| int* , |
| int* , |
| int* |
| ); |
|
|
| extern int XGetErrorDatabaseText( |
| Display* , |
| _Xconst char* , |
| _Xconst char* , |
| _Xconst char* , |
| char* , |
| int |
| ); |
|
|
| extern int XGetErrorText( |
| Display* , |
| int , |
| char* , |
| int |
| ); |
|
|
| extern Bool XGetFontProperty( |
| XFontStruct* , |
| Atom , |
| unsigned long* |
| ); |
|
|
| extern Status XGetGCValues( |
| Display* , |
| GC , |
| unsigned long , |
| XGCValues* |
| ); |
|
|
| extern Status XGetGeometry( |
| Display* , |
| Drawable , |
| Window* , |
| int* , |
| int* , |
| unsigned int* , |
| unsigned int* , |
| unsigned int* , |
| unsigned int* |
| ); |
|
|
| extern Status XGetIconName( |
| Display* , |
| Window , |
| char** |
| ); |
|
|
| extern int XGetInputFocus( |
| Display* , |
| Window* , |
| int* |
| ); |
|
|
| extern int XGetKeyboardControl( |
| Display* , |
| XKeyboardState* |
| ); |
|
|
| extern int XGetPointerControl( |
| Display* , |
| int* , |
| int* , |
| int* |
| ); |
|
|
| extern int XGetPointerMapping( |
| Display* , |
| unsigned char* , |
| int |
| ); |
|
|
| extern int XGetScreenSaver( |
| Display* , |
| int* , |
| int* , |
| int* , |
| int* |
| ); |
|
|
| extern Status XGetTransientForHint( |
| Display* , |
| Window , |
| Window* |
| ); |
|
|
| extern int XGetWindowProperty( |
| Display* , |
| Window , |
| Atom , |
| long , |
| long , |
| Bool , |
| Atom , |
| Atom* , |
| int* , |
| unsigned long* , |
| unsigned long* , |
| unsigned char** |
| ); |
|
|
| extern Status XGetWindowAttributes( |
| Display* , |
| Window , |
| XWindowAttributes* |
| ); |
|
|
| extern int XGrabButton( |
| Display* , |
| unsigned int , |
| unsigned int , |
| Window , |
| Bool , |
| unsigned int , |
| int , |
| int , |
| Window , |
| Cursor |
| ); |
|
|
| extern int XGrabKey( |
| Display* , |
| int , |
| unsigned int , |
| Window , |
| Bool , |
| int , |
| int |
| ); |
|
|
| extern int XGrabKeyboard( |
| Display* , |
| Window , |
| Bool , |
| int , |
| int , |
| Time |
| ); |
|
|
| extern int XGrabPointer( |
| Display* , |
| Window , |
| Bool , |
| unsigned int , |
| int , |
| int , |
| Window , |
| Cursor , |
| Time |
| ); |
|
|
| extern int XGrabServer( |
| Display* |
| ); |
|
|
| extern int XHeightMMOfScreen( |
| Screen* |
| ); |
|
|
| extern int XHeightOfScreen( |
| Screen* |
| ); |
|
|
| extern int XIfEvent( |
| Display* , |
| XEvent* , |
| Bool (*) ( |
| Display* , |
| XEvent* , |
| XPointer |
| ) , |
| XPointer |
| ); |
|
|
| extern int XImageByteOrder( |
| Display* |
| ); |
|
|
| extern int XInstallColormap( |
| Display* , |
| Colormap |
| ); |
|
|
| extern KeyCode XKeysymToKeycode( |
| Display* , |
| KeySym |
| ); |
|
|
| extern int XKillClient( |
| Display* , |
| XID |
| ); |
|
|
| extern Status XLookupColor( |
| Display* , |
| Colormap , |
| _Xconst char* , |
| XColor* , |
| XColor* |
| ); |
|
|
| extern int XLowerWindow( |
| Display* , |
| Window |
| ); |
|
|
| extern int XMapRaised( |
| Display* , |
| Window |
| ); |
|
|
| extern int XMapSubwindows( |
| Display* , |
| Window |
| ); |
|
|
| extern int XMapWindow( |
| Display* , |
| Window |
| ); |
|
|
| extern int XMaskEvent( |
| Display* , |
| long , |
| XEvent* |
| ); |
|
|
| extern int XMaxCmapsOfScreen( |
| Screen* |
| ); |
|
|
| extern int XMinCmapsOfScreen( |
| Screen* |
| ); |
|
|
| extern int XMoveResizeWindow( |
| Display* , |
| Window , |
| int , |
| int , |
| unsigned int , |
| unsigned int |
| ); |
|
|
| extern int XMoveWindow( |
| Display* , |
| Window , |
| int , |
| int |
| ); |
|
|
| extern int XNextEvent( |
| Display* , |
| XEvent* |
| ); |
|
|
| extern int XNoOp( |
| Display* |
| ); |
|
|
| extern Status XParseColor( |
| Display* , |
| Colormap , |
| _Xconst char* , |
| XColor* |
| ); |
|
|
| extern int XParseGeometry( |
| _Xconst char* , |
| int* , |
| int* , |
| unsigned int* , |
| unsigned int* |
| ); |
|
|
| extern int XPeekEvent( |
| Display* , |
| XEvent* |
| ); |
|
|
| extern int XPeekIfEvent( |
| Display* , |
| XEvent* , |
| Bool (*) ( |
| Display* , |
| XEvent* , |
| XPointer |
| ) , |
| XPointer |
| ); |
|
|
| extern int XPending( |
| Display* |
| ); |
|
|
| extern int XPlanesOfScreen( |
| Screen* |
| ); |
|
|
| extern int XProtocolRevision( |
| Display* |
| ); |
|
|
| extern int XProtocolVersion( |
| Display* |
| ); |
|
|
|
|
| extern int XPutBackEvent( |
| Display* , |
| XEvent* |
| ); |
|
|
| extern int XPutImage( |
| Display* , |
| Drawable , |
| GC , |
| XImage* , |
| int , |
| int , |
| int , |
| int , |
| unsigned int , |
| unsigned int |
| ); |
|
|
| extern int XQLength( |
| Display* |
| ); |
|
|
| extern Status XQueryBestCursor( |
| Display* , |
| Drawable , |
| unsigned int , |
| unsigned int , |
| unsigned int* , |
| unsigned int* |
| ); |
|
|
| extern Status XQueryBestSize( |
| Display* , |
| int , |
| Drawable , |
| unsigned int , |
| unsigned int , |
| unsigned int* , |
| unsigned int* |
| ); |
|
|
| extern Status XQueryBestStipple( |
| Display* , |
| Drawable , |
| unsigned int , |
| unsigned int , |
| unsigned int* , |
| unsigned int* |
| ); |
|
|
| extern Status XQueryBestTile( |
| Display* , |
| Drawable , |
| unsigned int , |
| unsigned int , |
| unsigned int* , |
| unsigned int* |
| ); |
|
|
| extern int XQueryColor( |
| Display* , |
| Colormap , |
| XColor* |
| ); |
|
|
| extern int XQueryColors( |
| Display* , |
| Colormap , |
| XColor* , |
| int |
| ); |
|
|
| extern Bool XQueryExtension( |
| Display* , |
| _Xconst char* , |
| int* , |
| int* , |
| int* |
| ); |
|
|
| extern int XQueryKeymap( |
| Display* , |
| char [32] |
| ); |
|
|
| extern Bool XQueryPointer( |
| Display* , |
| Window , |
| Window* , |
| Window* , |
| int* , |
| int* , |
| int* , |
| int* , |
| unsigned int* |
| ); |
|
|
| extern int XQueryTextExtents( |
| Display* , |
| XID , |
| _Xconst char* , |
| int , |
| int* , |
| int* , |
| int* , |
| XCharStruct* |
| ); |
|
|
| extern int XQueryTextExtents16( |
| Display* , |
| XID , |
| _Xconst XChar2b* , |
| int , |
| int* , |
| int* , |
| int* , |
| XCharStruct* |
| ); |
|
|
| extern Status XQueryTree( |
| Display* , |
| Window , |
| Window* , |
| Window* , |
| Window** , |
| unsigned int* |
| ); |
|
|
| extern int XRaiseWindow( |
| Display* , |
| Window |
| ); |
|
|
| extern int XReadBitmapFile( |
| Display* , |
| Drawable , |
| _Xconst char* , |
| unsigned int* , |
| unsigned int* , |
| Pixmap* , |
| int* , |
| int* |
| ); |
|
|
| extern int XReadBitmapFileData( |
| _Xconst char* , |
| unsigned int* , |
| unsigned int* , |
| unsigned char** , |
| int* , |
| int* |
| ); |
|
|
| extern int XRebindKeysym( |
| Display* , |
| KeySym , |
| KeySym* , |
| int , |
| _Xconst unsigned char* , |
| int |
| ); |
|
|
| extern int XRecolorCursor( |
| Display* , |
| Cursor , |
| XColor* , |
| XColor* |
| ); |
|
|
| extern int XRefreshKeyboardMapping( |
| XMappingEvent* |
| ); |
|
|
| extern int XRemoveFromSaveSet( |
| Display* , |
| Window |
| ); |
|
|
| extern int XRemoveHost( |
| Display* , |
| XHostAddress* |
| ); |
|
|
| extern int XRemoveHosts( |
| Display* , |
| XHostAddress* , |
| int |
| ); |
|
|
| extern int XReparentWindow( |
| Display* , |
| Window , |
| Window , |
| int , |
| int |
| ); |
|
|
| extern int XResetScreenSaver( |
| Display* |
| ); |
|
|
| extern int XResizeWindow( |
| Display* , |
| Window , |
| unsigned int , |
| unsigned int |
| ); |
|
|
| extern int XRestackWindows( |
| Display* , |
| Window* , |
| int |
| ); |
|
|
| extern int XRotateBuffers( |
| Display* , |
| int |
| ); |
|
|
| extern int XRotateWindowProperties( |
| Display* , |
| Window , |
| Atom* , |
| int , |
| int |
| ); |
|
|
| extern int XScreenCount( |
| Display* |
| ); |
|
|
| extern int XSelectInput( |
| Display* , |
| Window , |
| long |
| ); |
|
|
| extern Status XSendEvent( |
| Display* , |
| Window , |
| Bool , |
| long , |
| XEvent* |
| ); |
|
|
| extern int XSetAccessControl( |
| Display* , |
| int |
| ); |
|
|
| extern int XSetArcMode( |
| Display* , |
| GC , |
| int |
| ); |
|
|
| extern int XSetBackground( |
| Display* , |
| GC , |
| unsigned long |
| ); |
|
|
| extern int XSetClipMask( |
| Display* , |
| GC , |
| Pixmap |
| ); |
|
|
| extern int XSetClipOrigin( |
| Display* , |
| GC , |
| int , |
| int |
| ); |
|
|
| extern int XSetClipRectangles( |
| Display* , |
| GC , |
| int , |
| int , |
| XRectangle* , |
| int , |
| int |
| ); |
|
|
| extern int XSetCloseDownMode( |
| Display* , |
| int |
| ); |
|
|
| extern int XSetCommand( |
| Display* , |
| Window , |
| char** , |
| int |
| ); |
|
|
| extern int XSetDashes( |
| Display* , |
| GC , |
| int , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern int XSetFillRule( |
| Display* , |
| GC , |
| int |
| ); |
|
|
| extern int XSetFillStyle( |
| Display* , |
| GC , |
| int |
| ); |
|
|
| extern int XSetFont( |
| Display* , |
| GC , |
| Font |
| ); |
|
|
| extern int XSetFontPath( |
| Display* , |
| char** , |
| int |
| ); |
|
|
| extern int XSetForeground( |
| Display* , |
| GC , |
| unsigned long |
| ); |
|
|
| extern int XSetFunction( |
| Display* , |
| GC , |
| int |
| ); |
|
|
| extern int XSetGraphicsExposures( |
| Display* , |
| GC , |
| Bool |
| ); |
|
|
| extern int XSetIconName( |
| Display* , |
| Window , |
| _Xconst char* |
| ); |
|
|
| extern int XSetInputFocus( |
| Display* , |
| Window , |
| int , |
| Time |
| ); |
|
|
| extern int XSetLineAttributes( |
| Display* , |
| GC , |
| unsigned int , |
| int , |
| int , |
| int |
| ); |
|
|
| extern int XSetModifierMapping( |
| Display* , |
| XModifierKeymap* |
| ); |
|
|
| extern int XSetPlaneMask( |
| Display* , |
| GC , |
| unsigned long |
| ); |
|
|
| extern int XSetPointerMapping( |
| Display* , |
| _Xconst unsigned char* , |
| int |
| ); |
|
|
| extern int XSetScreenSaver( |
| Display* , |
| int , |
| int , |
| int , |
| int |
| ); |
|
|
| extern int XSetSelectionOwner( |
| Display* , |
| Atom , |
| Window , |
| Time |
| ); |
|
|
| extern int XSetState( |
| Display* , |
| GC , |
| unsigned long , |
| unsigned long , |
| int , |
| unsigned long |
| ); |
|
|
| extern int XSetStipple( |
| Display* , |
| GC , |
| Pixmap |
| ); |
|
|
| extern int XSetSubwindowMode( |
| Display* , |
| GC , |
| int |
| ); |
|
|
| extern int XSetTSOrigin( |
| Display* , |
| GC , |
| int , |
| int |
| ); |
|
|
| extern int XSetTile( |
| Display* , |
| GC , |
| Pixmap |
| ); |
|
|
| extern int XSetWindowBackground( |
| Display* , |
| Window , |
| unsigned long |
| ); |
|
|
| extern int XSetWindowBackgroundPixmap( |
| Display* , |
| Window , |
| Pixmap |
| ); |
|
|
| extern int XSetWindowBorder( |
| Display* , |
| Window , |
| unsigned long |
| ); |
|
|
| extern int XSetWindowBorderPixmap( |
| Display* , |
| Window , |
| Pixmap |
| ); |
|
|
| extern int XSetWindowBorderWidth( |
| Display* , |
| Window , |
| unsigned int |
| ); |
|
|
| extern int XSetWindowColormap( |
| Display* , |
| Window , |
| Colormap |
| ); |
|
|
| extern int XStoreBuffer( |
| Display* , |
| _Xconst char* , |
| int , |
| int |
| ); |
|
|
| extern int XStoreBytes( |
| Display* , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern int XStoreColor( |
| Display* , |
| Colormap , |
| XColor* |
| ); |
|
|
| extern int XStoreColors( |
| Display* , |
| Colormap , |
| XColor* , |
| int |
| ); |
|
|
| extern int XStoreName( |
| Display* , |
| Window , |
| _Xconst char* |
| ); |
|
|
| extern int XStoreNamedColor( |
| Display* , |
| Colormap , |
| _Xconst char* , |
| unsigned long , |
| int |
| ); |
|
|
| extern int XSync( |
| Display* , |
| Bool |
| ); |
|
|
| extern int XTextExtents( |
| XFontStruct* , |
| _Xconst char* , |
| int , |
| int* , |
| int* , |
| int* , |
| XCharStruct* |
| ); |
|
|
| extern int XTextExtents16( |
| XFontStruct* , |
| _Xconst XChar2b* , |
| int , |
| int* , |
| int* , |
| int* , |
| XCharStruct* |
| ); |
|
|
| extern int XTextWidth( |
| XFontStruct* , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern int XTextWidth16( |
| XFontStruct* , |
| _Xconst XChar2b* , |
| int |
| ); |
|
|
| extern Bool XTranslateCoordinates( |
| Display* , |
| Window , |
| Window , |
| int , |
| int , |
| int* , |
| int* , |
| Window* |
| ); |
|
|
| extern int XUndefineCursor( |
| Display* , |
| Window |
| ); |
|
|
| extern int XUngrabButton( |
| Display* , |
| unsigned int , |
| unsigned int , |
| Window |
| ); |
|
|
| extern int XUngrabKey( |
| Display* , |
| int , |
| unsigned int , |
| Window |
| ); |
|
|
| extern int XUngrabKeyboard( |
| Display* , |
| Time |
| ); |
|
|
| extern int XUngrabPointer( |
| Display* , |
| Time |
| ); |
|
|
| extern int XUngrabServer( |
| Display* |
| ); |
|
|
| extern int XUninstallColormap( |
| Display* , |
| Colormap |
| ); |
|
|
| extern int XUnloadFont( |
| Display* , |
| Font |
| ); |
|
|
| extern int XUnmapSubwindows( |
| Display* , |
| Window |
| ); |
|
|
| extern int XUnmapWindow( |
| Display* , |
| Window |
| ); |
|
|
| extern int XVendorRelease( |
| Display* |
| ); |
|
|
| extern int XWarpPointer( |
| Display* , |
| Window , |
| Window , |
| int , |
| int , |
| unsigned int , |
| unsigned int , |
| int , |
| int |
| ); |
|
|
| extern int XWidthMMOfScreen( |
| Screen* |
| ); |
|
|
| extern int XWidthOfScreen( |
| Screen* |
| ); |
|
|
| extern int XWindowEvent( |
| Display* , |
| Window , |
| long , |
| XEvent* |
| ); |
|
|
| extern int XWriteBitmapFile( |
| Display* , |
| _Xconst char* , |
| Pixmap , |
| unsigned int , |
| unsigned int , |
| int , |
| int |
| ); |
|
|
| extern Bool XSupportsLocale (void); |
|
|
| extern char *XSetLocaleModifiers( |
| const char* |
| ); |
|
|
| extern XOM XOpenOM( |
| Display* , |
| struct _XrmHashBucketRec* , |
| _Xconst char* , |
| _Xconst char* |
| ); |
|
|
| extern Status XCloseOM( |
| XOM |
| ); |
|
|
| extern char *XSetOMValues( |
| XOM , |
| ... |
| ) _X_SENTINEL(0); |
|
|
| extern char *XGetOMValues( |
| XOM , |
| ... |
| ) _X_SENTINEL(0); |
|
|
| extern Display *XDisplayOfOM( |
| XOM |
| ); |
|
|
| extern char *XLocaleOfOM( |
| XOM |
| ); |
|
|
| extern XOC XCreateOC( |
| XOM , |
| ... |
| ) _X_SENTINEL(0); |
|
|
| extern void XDestroyOC( |
| XOC |
| ); |
|
|
| extern XOM XOMOfOC( |
| XOC |
| ); |
|
|
| extern char *XSetOCValues( |
| XOC , |
| ... |
| ) _X_SENTINEL(0); |
|
|
| extern char *XGetOCValues( |
| XOC , |
| ... |
| ) _X_SENTINEL(0); |
|
|
| extern XFontSet XCreateFontSet( |
| Display* , |
| _Xconst char* , |
| char*** , |
| int* , |
| char** |
| ); |
|
|
| extern void XFreeFontSet( |
| Display* , |
| XFontSet |
| ); |
|
|
| extern int XFontsOfFontSet( |
| XFontSet , |
| XFontStruct*** , |
| char*** |
| ); |
|
|
| extern char *XBaseFontNameListOfFontSet( |
| XFontSet |
| ); |
|
|
| extern char *XLocaleOfFontSet( |
| XFontSet |
| ); |
|
|
| extern Bool XContextDependentDrawing( |
| XFontSet |
| ); |
|
|
| extern Bool XDirectionalDependentDrawing( |
| XFontSet |
| ); |
|
|
| extern Bool XContextualDrawing( |
| XFontSet |
| ); |
|
|
| extern XFontSetExtents *XExtentsOfFontSet( |
| XFontSet |
| ); |
|
|
| extern int XmbTextEscapement( |
| XFontSet , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern int XwcTextEscapement( |
| XFontSet , |
| _Xconst wchar_t* , |
| int |
| ); |
|
|
| extern int Xutf8TextEscapement( |
| XFontSet , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern int XmbTextExtents( |
| XFontSet , |
| _Xconst char* , |
| int , |
| XRectangle* , |
| XRectangle* |
| ); |
|
|
| extern int XwcTextExtents( |
| XFontSet , |
| _Xconst wchar_t* , |
| int , |
| XRectangle* , |
| XRectangle* |
| ); |
|
|
| extern int Xutf8TextExtents( |
| XFontSet , |
| _Xconst char* , |
| int , |
| XRectangle* , |
| XRectangle* |
| ); |
|
|
| extern Status XmbTextPerCharExtents( |
| XFontSet , |
| _Xconst char* , |
| int , |
| XRectangle* , |
| XRectangle* , |
| int , |
| int* , |
| XRectangle* , |
| XRectangle* |
| ); |
|
|
| extern Status XwcTextPerCharExtents( |
| XFontSet , |
| _Xconst wchar_t* , |
| int , |
| XRectangle* , |
| XRectangle* , |
| int , |
| int* , |
| XRectangle* , |
| XRectangle* |
| ); |
|
|
| extern Status Xutf8TextPerCharExtents( |
| XFontSet , |
| _Xconst char* , |
| int , |
| XRectangle* , |
| XRectangle* , |
| int , |
| int* , |
| XRectangle* , |
| XRectangle* |
| ); |
|
|
| extern void XmbDrawText( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| XmbTextItem* , |
| int |
| ); |
|
|
| extern void XwcDrawText( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| XwcTextItem* , |
| int |
| ); |
|
|
| extern void Xutf8DrawText( |
| Display* , |
| Drawable , |
| GC , |
| int , |
| int , |
| XmbTextItem* , |
| int |
| ); |
|
|
| extern void XmbDrawString( |
| Display* , |
| Drawable , |
| XFontSet , |
| GC , |
| int , |
| int , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern void XwcDrawString( |
| Display* , |
| Drawable , |
| XFontSet , |
| GC , |
| int , |
| int , |
| _Xconst wchar_t* , |
| int |
| ); |
|
|
| extern void Xutf8DrawString( |
| Display* , |
| Drawable , |
| XFontSet , |
| GC , |
| int , |
| int , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern void XmbDrawImageString( |
| Display* , |
| Drawable , |
| XFontSet , |
| GC , |
| int , |
| int , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern void XwcDrawImageString( |
| Display* , |
| Drawable , |
| XFontSet , |
| GC , |
| int , |
| int , |
| _Xconst wchar_t* , |
| int |
| ); |
|
|
| extern void Xutf8DrawImageString( |
| Display* , |
| Drawable , |
| XFontSet , |
| GC , |
| int , |
| int , |
| _Xconst char* , |
| int |
| ); |
|
|
| extern XIM XOpenIM( |
| Display* , |
| struct _XrmHashBucketRec* , |
| char* , |
| char* |
| ); |
|
|
| extern Status XCloseIM( |
| XIM |
| ); |
|
|
| extern char *XGetIMValues( |
| XIM , ... |
| ) _X_SENTINEL(0); |
|
|
| extern char *XSetIMValues( |
| XIM , ... |
| ) _X_SENTINEL(0); |
|
|
| extern Display *XDisplayOfIM( |
| XIM |
| ); |
|
|
| extern char *XLocaleOfIM( |
| XIM |
| ); |
|
|
| extern XIC XCreateIC( |
| XIM , ... |
| ) _X_SENTINEL(0); |
|
|
| extern void XDestroyIC( |
| XIC |
| ); |
|
|
| extern void XSetICFocus( |
| XIC |
| ); |
|
|
| extern void XUnsetICFocus( |
| XIC |
| ); |
|
|
| extern wchar_t *XwcResetIC( |
| XIC |
| ); |
|
|
| extern char *XmbResetIC( |
| XIC |
| ); |
|
|
| extern char *Xutf8ResetIC( |
| XIC |
| ); |
|
|
| extern char *XSetICValues( |
| XIC , ... |
| ) _X_SENTINEL(0); |
|
|
| extern char *XGetICValues( |
| XIC , ... |
| ) _X_SENTINEL(0); |
|
|
| extern XIM XIMOfIC( |
| XIC |
| ); |
|
|
| extern Bool XFilterEvent( |
| XEvent* , |
| Window |
| ); |
|
|
| extern int XmbLookupString( |
| XIC , |
| XKeyPressedEvent* , |
| char* , |
| int , |
| KeySym* , |
| Status* |
| ); |
|
|
| extern int XwcLookupString( |
| XIC , |
| XKeyPressedEvent* , |
| wchar_t* , |
| int , |
| KeySym* , |
| Status* |
| ); |
|
|
| extern int Xutf8LookupString( |
| XIC , |
| XKeyPressedEvent* , |
| char* , |
| int , |
| KeySym* , |
| Status* |
| ); |
|
|
| extern XVaNestedList XVaCreateNestedList( |
| int , ... |
| ) _X_SENTINEL(0); |
|
|
| |
|
|
| extern Bool XRegisterIMInstantiateCallback( |
| Display* , |
| struct _XrmHashBucketRec* , |
| char* , |
| char* , |
| XIDProc , |
| XPointer |
| ); |
|
|
| extern Bool XUnregisterIMInstantiateCallback( |
| Display* , |
| struct _XrmHashBucketRec* , |
| char* , |
| char* , |
| XIDProc , |
| XPointer |
| ); |
|
|
| typedef void (*XConnectionWatchProc)( |
| Display* , |
| XPointer , |
| int , |
| Bool , |
| XPointer* |
| ); |
|
|
|
|
| extern Status XInternalConnectionNumbers( |
| Display* , |
| int** , |
| int* |
| ); |
|
|
| extern void XProcessInternalConnection( |
| Display* , |
| int |
| ); |
|
|
| extern Status XAddConnectionWatch( |
| Display* , |
| XConnectionWatchProc , |
| XPointer |
| ); |
|
|
| extern void XRemoveConnectionWatch( |
| Display* , |
| XConnectionWatchProc , |
| XPointer |
| ); |
|
|
| extern void XSetAuthorization( |
| char * , |
| int , |
| char * , |
| int |
| ); |
|
|
| extern int _Xmbtowc( |
| wchar_t * , |
| char * , |
| int |
| ); |
|
|
| extern int _Xwctomb( |
| char * , |
| wchar_t |
| ); |
|
|
| extern Bool XGetEventData( |
| Display* , |
| XGenericEventCookie* |
| ); |
|
|
| extern void XFreeEventData( |
| Display* , |
| XGenericEventCookie* |
| ); |
|
|
| #ifdef __clang__ |
| #pragma clang diagnostic pop |
| #endif |
|
|
| _XFUNCPROTOEND |
|
|
| #endif |
|
|