Xlib.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/* $Xorg: Xlib.h,v 1.6 2001/02/09 02:03:38 xorgcvs Exp $ */
/*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
/*
* Xlib.h - Header definition and support file for the C subroutine
* interface library (Xlib) to the X Window System Protocol (V11).
* Structures and symbols starting with "_" are private to the library.
*/
#ifndef _XLIB_H_
#define _XLIB_H_
#define XlibSpecificationRelease 6
#ifdef USG
#ifndef __TYPES__
#define __TYPES__
#endif /* __TYPES__ */
#else
#if defined(_POSIX_SOURCE) && defined(MOTOROLA)
#define _POSIX_SOURCE
#else
#endif
#endif /* USG */
#if defined(__SCO__) || defined(__UNIXWARE__)
#include <stdint.h>
#endif
/* applications should not depend on these two headers being included! */
#include <X11/Xfuncproto.h>
#ifndef X_WCHAR
#ifdef X_NOT_STDC_ENV
#ifndef ISC
#define X_WCHAR
#endif
#endif
#endif
#ifndef X_WCHAR
#include <stddef.h>
#else
#ifdef __UNIXOS2__
#include <stdlib.h>
#else
/* replace this with #include or typedef appropriate for your system */
typedef unsigned long wchar_t;
#endif
#endif
#if defined(ISC) && defined(USE_XMBTOWC)
#ifndef USE_XWCHAR_STRING
#endif
#endif
extern int
#ifdef ISC
char const *str,
#else
char *str,
int len
#endif
);
/* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
November 2000. Its presence is indicated through the following macro. */
#define X_HAVE_UTF8_STRING 1
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 AllPlanes ((unsigned long)~0L)
#ifdef CRAY /* unable to get WORD64 without pulling in other symbols */
#else
#endif
/* macros for screen oriented applications (toolkit) */
#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 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)
/*
* Extensions need a way to hang private data on some structures.
*/
typedef struct _XExtData {
int number; /* number returned by XRegisterExtension */
int (*free_private)( /* called to free private storage */
);
} XExtData;
/*
* This file contains structures used by the extension mechanism.
*/
typedef struct { /* public to extension, cannot be changed */
int extension; /* extension number */
int major_opcode; /* major op-code assigned by server */
int first_event; /* first event number for the extension */
int first_error; /* first error number for the extension */
} XExtCodes;
/*
* Data structure for retrieving info about pixmap formats.
*/
typedef struct {
int depth;
int bits_per_pixel;
int scanline_pad;
/*
* Data structure for setting graphics context.
*/
typedef struct {
int function; /* logical operation */
unsigned long plane_mask;/* plane mask */
unsigned long foreground;/* foreground pixel */
unsigned long background;/* background pixel */
int line_width; /* line width */
int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
int cap_style; /* CapNotLast, CapButt,
CapRound, CapProjecting */
int join_style; /* JoinMiter, JoinRound, JoinBevel */
int fill_style; /* FillSolid, FillTiled,
FillStippled, FillOpaeueStippled */
int fill_rule; /* EvenOddRule, WindingRule */
int arc_mode; /* ArcChord, ArcPieSlice */
int ts_x_origin; /* offset for tile or stipple operations */
int ts_y_origin;
int subwindow_mode; /* ClipByChildren, IncludeInferiors */
int clip_x_origin; /* origin for clipping */
int clip_y_origin;
int dash_offset; /* patterned/dashed line information */
char dashes;
} XGCValues;
/*
* Graphics context. The contents of this structure are implementation
* dependent. A GC should be treated as opaque by application code.
*/
typedef struct _XGC
#ifdef XLIB_ILLEGAL_ACCESS
{
/* there is more to this structure, but it is private to Xlib */
}
#endif
*GC;
/*
* Visual structure; contains information about colormapping possible.
*/
typedef struct {
#if defined(__cplusplus) || defined(c_plusplus)
int c_class; /* C++ class of screen (monochrome, etc.) */
#else
int class; /* class of screen (monochrome, etc.) */
#endif
int bits_per_rgb; /* log base 2 of distinct color values */
int map_entries; /* color map entries */
} Visual;
/*
* Depth structure; contains information for each possible depth.
*/
typedef struct {
int depth; /* this depth (Z) of the depth */
int nvisuals; /* number of Visual types at this depth */
} Depth;
/*
* Information about the screen. The contents of this structure are
* implementation dependent. A Screen should be treated as opaque
* by application code.
*/
struct _XDisplay; /* Forward declare before use for C++ */
typedef struct {
int ndepths; /* number of depths possible */
int root_depth; /* bits per pixel */
unsigned long white_pixel;
unsigned long black_pixel; /* White and Black pixel values */
int backing_store; /* Never, WhenMapped, Always */
long root_input_mask; /* initial root input mask */
} Screen;
/*
* Format structure; describes ZFormat data the screen will understand.
*/
typedef struct {
int depth; /* depth of this image format */
int bits_per_pixel; /* bits/pixel at this depth */
int scanline_pad; /* scanline must padded to this multiple */
} ScreenFormat;
/*
* Data structure for setting window attributes.
*/
typedef struct {
unsigned long background_pixel; /* background pixel */
unsigned long border_pixel; /* border pixel value */
int bit_gravity; /* one of bit gravity values */
int win_gravity; /* one of the window gravity values */
int backing_store; /* NotUseful, WhenMapped, Always */
unsigned long backing_planes;/* planes to be preseved if possible */
unsigned long backing_pixel;/* value to use in restoring planes */
long event_mask; /* set of events that should be saved */
long do_not_propagate_mask; /* set of events that should not propagate */
typedef struct {
int x, y; /* location of window */
int border_width; /* border width of window */
int depth; /* depth of window */
#if defined(__cplusplus) || defined(c_plusplus)
int c_class; /* C++ InputOutput, InputOnly*/
#else
int class; /* InputOutput, InputOnly*/
#endif
int bit_gravity; /* one of bit gravity values */
int win_gravity; /* one of the window gravity values */
int backing_store; /* NotUseful, WhenMapped, Always */
unsigned long backing_planes;/* planes to be preserved if possible */
unsigned long backing_pixel;/* value to be used when restoring planes */
int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
long all_event_masks; /* set of events all people have interest in*/
long your_event_mask; /* my event mask */
long do_not_propagate_mask; /* set of events that should not propagate */
/*
* Data structure for host setting; getting routines.
*
*/
typedef struct {
int family; /* for example FamilyInternet */
int length; /* length of address, in bytes */
char *address; /* pointer to where to find the bytes */
} XHostAddress;
/*
* Data structure for ServerFamilyInterpreted addresses in host routines
*/
typedef struct {
int typelength; /* length of type string, in bytes */
int valuelength; /* length of value string, in bytes */
char *type; /* pointer to where to find the type string */
char *value; /* pointer to where to find the address */
/*
* Data structure for "image" data, used by image manipulation routines.
*/
typedef struct _XImage {
int xoffset; /* number of pixels offset in X direction */
int format; /* XYBitmap, XYPixmap, ZPixmap */
char *data; /* pointer to image data */
int byte_order; /* data byte order, LSBFirst, MSBFirst */
int bitmap_unit; /* quant. of scanline 8, 16, 32 */
int bitmap_bit_order; /* LSBFirst, MSBFirst */
int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
int depth; /* depth of image */
int bytes_per_line; /* accelarator to next line */
int bits_per_pixel; /* bits per pixel (ZPixmap) */
unsigned long red_mask; /* bits in z arrangment */
unsigned long green_mask;
unsigned long blue_mask;
struct funcs { /* image manipulation routines */
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 *);
} f;
} XImage;
/*
* Data structure for XReconfigureWindow
*/
typedef struct {
int x, y;
int border_width;
int stack_mode;
/*
* Data structure used by color operations
*/
typedef struct {
unsigned long pixel;
char flags; /* do_red, do_green, do_blue */
char pad;
} XColor;
/*
* Data structures for graphics operations. On most machines, these are
* congruent with the wire protocol structures, so reformatting the data
* can be avoided on these architectures.
*/
typedef struct {
} XSegment;
typedef struct {
short x, y;
} XPoint;
typedef struct {
short x, y;
} XRectangle;
typedef struct {
short x, y;
} XArc;
/* Data structure for XChangeKeyboardControl */
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; /* On, Off, Default */
/* Data structure for XGetKeyboardControl */
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];
/* Data structure for XGetMotionEvents. */
typedef struct {
short x, y;
} XTimeCoord;
/* Data structure for X{Set,Get}ModifierMapping */
typedef struct {
int max_keypermod; /* The server's max # of keys per modifier */
/*
* Display datatype maintaining display specific data.
* The contents of this structure are implementation dependent.
* A Display should be treated as opaque by application code.
*/
#ifndef XLIB_ILLEGAL_ACCESS
#endif
struct _XPrivate; /* Forward declare before use for C++ */
struct _XrmHashBucketRec;
typedef struct
#ifdef XLIB_ILLEGAL_ACCESS
#endif
{
int fd; /* Network socket. */
int private2;
int proto_major_version;/* major version of server's X protocol */
int proto_minor_version;/* minor version of servers X protocol */
char *vendor; /* vendor of the server hardware */
int private6;
struct _XDisplay*
);
int byte_order; /* screen byte order, LSBFirst, MSBFirst */
int bitmap_unit; /* padding and data requirements */
int bitmap_pad; /* padding requirements on bitmaps */
int bitmap_bit_order; /* LeastSignificant or MostSignificant */
int nformats; /* number of pixmap formats in list */
int private8;
int release; /* release of the server */
int qlen; /* Length of input event queue */
unsigned long last_request_read; /* seq number of last event read */
unsigned long request; /* sequence number of last request. */
unsigned max_request_size; /* maximum number 32 bit words in request*/
struct _XrmHashBucketRec *db;
int (*private15)(
struct _XDisplay*
);
char *display_name; /* "host:display" string used on this connect*/
int default_screen; /* default screen for operations */
int nscreens; /* number of screens on this server*/
unsigned long motion_buffer; /* size of motion buffer */
unsigned long private16;
int min_keycode; /* minimum defined keycode */
int max_keycode; /* maximum defined keycode */
int private19;
char *xdefaults; /* contents of defaults from server */
/* there is more to this structure, but it is private to Xlib */
}
#ifdef XLIB_ILLEGAL_ACCESS
#endif
#ifndef _XEVENT_
/*
* Definitions of specific events.
*/
typedef struct {
int type; /* of event */
unsigned long serial; /* # of last request processed by server */
int x, y; /* pointer x, y coordinates in event window */
unsigned int state; /* key or button mask */
unsigned int keycode; /* detail */
} XKeyEvent;
typedef XKeyEvent XKeyPressedEvent;
typedef XKeyEvent XKeyReleasedEvent;
typedef struct {
int type; /* of event */
unsigned long serial; /* # of last request processed by server */
int x, y; /* pointer x, y coordinates in event window */
unsigned int state; /* key or button mask */
unsigned int button; /* detail */
} XButtonEvent;
typedef XButtonEvent XButtonPressedEvent;
typedef XButtonEvent XButtonReleasedEvent;
typedef struct {
int type; /* of event */
unsigned long serial; /* # of last request processed by server */
int x, y; /* pointer x, y coordinates in event window */
unsigned int state; /* key or button mask */
char is_hint; /* detail */
} XMotionEvent;
typedef XMotionEvent XPointerMovedEvent;
typedef struct {
int type; /* of event */
unsigned long serial; /* # of last request processed by server */
int x, y; /* pointer x, y coordinates in event window */
int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
int detail;
/*
* NotifyAncestor, NotifyVirtual, NotifyInferior,
* NotifyNonlinear,NotifyNonlinearVirtual
*/
unsigned int state; /* key or button mask */
typedef XCrossingEvent XEnterWindowEvent;
typedef XCrossingEvent XLeaveWindowEvent;
typedef struct {
int type; /* FocusIn or FocusOut */
unsigned long serial; /* # of last request processed by server */
int mode; /* NotifyNormal, NotifyWhileGrabbed,
NotifyGrab, NotifyUngrab */
int detail;
/*
* NotifyAncestor, NotifyVirtual, NotifyInferior,
* NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
* NotifyPointerRoot, NotifyDetailNone
*/
typedef XFocusChangeEvent XFocusInEvent;
typedef XFocusChangeEvent XFocusOutEvent;
/* generated on EnterWindow and FocusIn when KeyMapState selected */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
char key_vector[32];
} XKeymapEvent;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int x, y;
int count; /* if non-zero, at least this many more */
} XExposeEvent;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int x, y;
int count; /* if non-zero, at least this many more */
int major_code; /* core is CopyArea or CopyPlane */
int minor_code; /* not defined in the core */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int major_code; /* core is CopyArea or CopyPlane */
int minor_code; /* not defined in the core */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int state; /* Visibility state */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int x, y; /* window location */
int border_width; /* border width */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
} XUnmapEvent;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
} XMapEvent;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int x, y;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int x, y;
int border_width;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int x, y;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int x, y;
int border_width;
int detail; /* Above, Below, TopIf, BottomIf, Opposite */
unsigned long value_mask;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int place; /* PlaceOnTop, PlaceOnBottom */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int place; /* PlaceOnTop, PlaceOnBottom */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int state; /* NewValue, Deleted */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
#if defined(__cplusplus) || defined(c_plusplus)
#else
#endif
int state; /* ColormapInstalled, ColormapUninstalled */
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int format;
union {
char b[20];
short s[10];
long l[5];
} data;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
int request; /* one of MappingModifier, MappingKeyboard,
MappingPointer */
int first_keycode; /* first keycode */
int count; /* defines range of change w. first_keycode*/
typedef struct {
int type;
unsigned long serial; /* serial number of failed request */
unsigned char error_code; /* error code of failed request */
unsigned char request_code; /* Major op-code of failed request */
unsigned char minor_code; /* Minor op-code of failed request */
} XErrorEvent;
typedef struct {
int type;
unsigned long serial; /* # of last request processed by server */
} XAnyEvent;
/*
* this union is defined so Xlib can always use the same sized
* event structure internally, to avoid memory fragmentation.
*/
typedef union _XEvent {
int type; /* must not be changed; first element */
long pad[24];
} XEvent;
#endif
/*
* per character font metric information.
*/
typedef struct {
short lbearing; /* origin to left edge of raster */
short rbearing; /* origin to right edge of raster */
short width; /* advance to next char's origin */
short ascent; /* baseline to top edge of raster */
short descent; /* baseline to bottom edge of raster */
unsigned short attributes; /* per char flags (not predefined) */
} XCharStruct;
/*
* To allow arbitrary information with fonts, there are additional properties
* returned.
*/
typedef struct {
unsigned long card32;
} XFontProp;
typedef struct {
unsigned direction; /* hint about direction the font is painted */
unsigned min_char_or_byte2;/* first character */
unsigned max_char_or_byte2;/* last character */
unsigned min_byte1; /* first row that exists */
unsigned max_byte1; /* last row that exists */
unsigned default_char; /* char to print for undefined character */
int n_properties; /* how many properties there are */
int ascent; /* log. extent above baseline for spacing */
int descent; /* log. descent below baseline for spacing */
} XFontStruct;
/*
* PolyText routines take these as arguments.
*/
typedef struct {
char *chars; /* pointer to string */
int nchars; /* number of characters */
int delta; /* delta between strings */
} XTextItem;
typedef struct { /* normal 16 bit characters are two bytes */
unsigned char byte1;
unsigned char byte2;
} XChar2b;
typedef struct {
int nchars; /* number of characters */
int delta; /* delta between strings */
} XTextItem16;
typedef struct {
/* unused:
typedef void (*XOMProc)();
*/
typedef struct {
char *chars;
int nchars;
int delta;
} XmbTextItem;
typedef struct {
int nchars;
int delta;
} 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;
typedef enum {
} XOrientation;
typedef struct {
int num_orientation;
typedef struct {
int num_font;
char **font_name_list;
} XOMFontInfo;
typedef void (*XIMProc)(
XIM,
);
XIC,
);
typedef void (*XIDProc)(
Display*,
);
typedef unsigned long XIMStyle;
typedef struct {
unsigned short count_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 {
} XIMCallback;
typedef struct {
} XICCallback;
typedef unsigned long XIMFeedback;
#define XIMReverse 1L
typedef struct _XIMText {
unsigned short length;
union {
char *multi_byte;
} string;
} XIMText;
typedef unsigned long XIMPreeditState;
#define XIMPreeditUnKnown 0L
#define XIMPreeditEnable 1L
typedef struct _XIMPreeditStateNotifyCallbackStruct {
typedef unsigned long XIMResetState;
#define XIMInitialState 1L
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;
union {
char *mbs;
} string;
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 {
typedef struct _XIMStringConversionCallbackStruct {
unsigned short factor;
typedef struct _XIMPreeditDrawCallbackStruct {
int caret; /* Cursor offset within pre-edit string */
int chg_first; /* Starting change position */
int chg_length; /* Length of the change in character count */
typedef enum {
XIMIsInvisible, /* Disable caret feedback */
XIMIsPrimary, /* UI defined caret feedback */
XIMIsSecondary /* UI defined caret feedback */
typedef struct _XIMPreeditCaretCallbackStruct {
int position; /* Caret offset within pre-edit string */
typedef enum {
typedef struct _XIMStatusDrawCallbackStruct {
union {
} data;
typedef struct _XIMHotKeyTrigger {
int modifier;
int modifier_mask;
typedef struct _XIMHotKeyTriggers {
int num_hot_key;
typedef unsigned long XIMHotKeyState;
#define XIMHotKeyStateON (0x0001L)
#define XIMHotKeyStateOFF (0x0002L)
typedef struct {
unsigned short count_values;
char **supported_values;
#endif
extern int _Xdebug;
extern XFontStruct *XLoadQueryFont(
Display* /* display */,
_Xconst char* /* name */
);
extern XFontStruct *XQueryFont(
Display* /* display */,
XID /* font_ID */
);
extern XTimeCoord *XGetMotionEvents(
Display* /* display */,
Window /* w */,
Time /* start */,
Time /* stop */,
int* /* nevents_return */
);
extern XModifierKeymap *XDeleteModifiermapEntry(
XModifierKeymap* /* modmap */,
unsigned int /* keycode_entry */,
#else
KeyCode /* keycode_entry */,
#endif
int /* modifier */
);
extern XModifierKeymap *XGetModifierMapping(
Display* /* display */
);
extern XModifierKeymap *XInsertModifiermapEntry(
XModifierKeymap* /* modmap */,
unsigned int /* keycode_entry */,
#else
KeyCode /* keycode_entry */,
#endif
int /* modifier */
);
extern XModifierKeymap *XNewModifiermap(
int /* max_keys_per_mod */
);
extern XImage *XCreateImage(
Display* /* 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 */
);
extern Status XInitImage(
XImage* /* image */
);
Display* /* display */,
Drawable /* d */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */,
unsigned long /* plane_mask */,
int /* format */
);
extern XImage *XGetSubImage(
Display* /* display */,
Drawable /* d */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */,
unsigned long /* plane_mask */,
int /* format */,
XImage* /* dest_image */,
int /* dest_x */,
int /* dest_y */
);
/*
* X function declarations.
*/
extern Display *XOpenDisplay(
_Xconst char* /* display_name */
);
extern void XrmInitialize(
void
);
extern char *XFetchBytes(
Display* /* display */,
int* /* nbytes_return */
);
extern char *XFetchBuffer(
Display* /* display */,
int* /* nbytes_return */,
int /* buffer */
);
extern char *XGetAtomName(
Display* /* display */,
Atom /* atom */
);
extern Status XGetAtomNames(
Display* /* dpy */,
Atom* /* atoms */,
int /* count */,
char** /* names_return */
);
extern char *XGetDefault(
Display* /* display */,
_Xconst char* /* program */,
_Xconst char* /* option */
);
extern char *XDisplayName(
_Xconst char* /* string */
);
extern char *XKeysymToString(
KeySym /* keysym */
);
extern int (*XSynchronize(
Display* /* display */,
Bool /* onoff */
))(
Display* /* display */
);
extern int (*XSetAfterFunction(
Display* /* display */,
int (*) (
Display* /* display */
) /* procedure */
))(
Display* /* display */
);
extern Atom XInternAtom(
Display* /* display */,
_Xconst char* /* atom_name */,
Bool /* only_if_exists */
);
extern Status XInternAtoms(
Display* /* dpy */,
char** /* names */,
int /* count */,
Bool /* onlyIfExists */,
Atom* /* atoms_return */
);
extern Colormap XCopyColormapAndFree(
Display* /* display */,
Colormap /* colormap */
);
extern Colormap XCreateColormap(
Display* /* display */,
Window /* w */,
Visual* /* visual */,
int /* alloc */
);
extern Cursor XCreatePixmapCursor(
Display* /* display */,
Pixmap /* source */,
Pixmap /* mask */,
XColor* /* foreground_color */,
XColor* /* background_color */,
unsigned int /* x */,
unsigned int /* y */
);
extern Cursor XCreateGlyphCursor(
Display* /* display */,
Font /* source_font */,
Font /* mask_font */,
unsigned int /* source_char */,
unsigned int /* mask_char */,
);
extern Cursor XCreateFontCursor(
Display* /* display */,
unsigned int /* shape */
);
Display* /* display */,
_Xconst char* /* name */
);
Display* /* display */,
Drawable /* d */,
unsigned long /* valuemask */,
XGCValues* /* values */
);
extern GContext XGContextFromGC(
GC /* gc */
);
extern void XFlushGC(
Display* /* display */,
GC /* gc */
);
extern Pixmap XCreatePixmap(
Display* /* display */,
Drawable /* d */,
unsigned int /* width */,
unsigned int /* height */,
unsigned int /* depth */
);
extern Pixmap XCreateBitmapFromData(
Display* /* display */,
Drawable /* d */,
_Xconst char* /* data */,
unsigned int /* width */,
unsigned int /* height */
);
extern Pixmap XCreatePixmapFromBitmapData(
Display* /* display */,
Drawable /* d */,
char* /* data */,
unsigned int /* width */,
unsigned int /* height */,
unsigned long /* fg */,
unsigned long /* bg */,
unsigned int /* depth */
);
extern Window XCreateSimpleWindow(
Display* /* display */,
Window /* parent */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */,
unsigned int /* border_width */,
unsigned long /* border */,
unsigned long /* background */
);
extern Window XGetSelectionOwner(
Display* /* display */,
Atom /* selection */
);
extern Window XCreateWindow(
Display* /* display */,
Window /* parent */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */,
unsigned int /* border_width */,
int /* depth */,
unsigned int /* class */,
Visual* /* visual */,
unsigned long /* valuemask */,
XSetWindowAttributes* /* attributes */
);
extern Colormap *XListInstalledColormaps(
Display* /* display */,
Window /* w */,
int* /* num_return */
);
extern char **XListFonts(
Display* /* display */,
_Xconst char* /* pattern */,
int /* maxnames */,
int* /* actual_count_return */
);
extern char **XListFontsWithInfo(
Display* /* display */,
_Xconst char* /* pattern */,
int /* maxnames */,
int* /* count_return */,
XFontStruct** /* info_return */
);
extern char **XGetFontPath(
Display* /* display */,
int* /* npaths_return */
);
extern char **XListExtensions(
Display* /* display */,
int* /* nextensions_return */
);
extern Atom *XListProperties(
Display* /* display */,
Window /* w */,
int* /* num_prop_return */
);
extern XHostAddress *XListHosts(
Display* /* display */,
int* /* nhosts_return */,
Bool* /* state_return */
);
extern KeySym XKeycodeToKeysym(
Display* /* display */,
unsigned int /* keycode */,
#else
KeyCode /* keycode */,
#endif
int /* index */
);
extern KeySym XLookupKeysym(
XKeyEvent* /* key_event */,
int /* index */
);
extern KeySym *XGetKeyboardMapping(
Display* /* display */,
unsigned int /* first_keycode */,
#else
KeyCode /* first_keycode */,
#endif
int /* keycode_count */,
int* /* keysyms_per_keycode_return */
);
extern KeySym XStringToKeysym(
_Xconst char* /* string */
);
extern long XMaxRequestSize(
Display* /* display */
);
extern long XExtendedMaxRequestSize(
Display* /* display */
);
extern char *XResourceManagerString(
Display* /* display */
);
extern char *XScreenResourceString(
Screen* /* screen */
);
extern unsigned long XDisplayMotionBufferSize(
Display* /* display */
);
extern VisualID XVisualIDFromVisual(
Visual* /* visual */
);
/* multithread routines */
extern Status XInitThreads(
void
);
extern void XLockDisplay(
Display* /* display */
);
extern void XUnlockDisplay(
Display* /* display */
);
/* routines for dealing with extensions */
extern XExtCodes *XInitExtension(
Display* /* display */,
_Xconst char* /* name */
);
extern XExtCodes *XAddExtension(
Display* /* display */
);
extern XExtData *XFindOnExtensionList(
XExtData** /* structure */,
int /* number */
);
extern XExtData **XEHeadOfExtensionList(
XEDataObject /* object */
);
/* these are routines for which there are also macros */
extern Window XRootWindow(
Display* /* display */,
int /* screen_number */
);
extern Window XDefaultRootWindow(
Display* /* display */
);
extern Window XRootWindowOfScreen(
Screen* /* screen */
);
extern Visual *XDefaultVisual(
Display* /* display */,
int /* screen_number */
);
extern Visual *XDefaultVisualOfScreen(
Screen* /* screen */
);
extern GC XDefaultGC(
Display* /* display */,
int /* screen_number */
);
extern GC XDefaultGCOfScreen(
Screen* /* screen */
);
extern unsigned long XBlackPixel(
Display* /* display */,
int /* screen_number */
);
extern unsigned long XWhitePixel(
Display* /* display */,
int /* screen_number */
);
extern unsigned long XAllPlanes(
void
);
extern unsigned long XBlackPixelOfScreen(
Screen* /* screen */
);
extern unsigned long XWhitePixelOfScreen(
Screen* /* screen */
);
extern unsigned long XNextRequest(
Display* /* display */
);
extern unsigned long XLastKnownRequestProcessed(
Display* /* display */
);
extern char *XServerVendor(
Display* /* display */
);
extern char *XDisplayString(
Display* /* display */
);
extern Colormap XDefaultColormap(
Display* /* display */,
int /* screen_number */
);
extern Colormap XDefaultColormapOfScreen(
Screen* /* screen */
);
extern Display *XDisplayOfScreen(
Screen* /* screen */
);
extern Screen *XScreenOfDisplay(
Display* /* display */,
int /* screen_number */
);
extern Screen *XDefaultScreenOfDisplay(
Display* /* display */
);
extern long XEventMaskOfScreen(
Screen* /* screen */
);
extern int XScreenNumberOfScreen(
Screen* /* screen */
);
typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */
Display* /* display */,
XErrorEvent* /* error_event */
);
extern XErrorHandler XSetErrorHandler (
XErrorHandler /* handler */
);
typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */
Display* /* display */
);
extern XIOErrorHandler XSetIOErrorHandler (
XIOErrorHandler /* handler */
);
extern XPixmapFormatValues *XListPixmapFormats(
Display* /* display */,
int* /* count_return */
);
extern int *XListDepths(
Display* /* display */,
int /* screen_number */,
int* /* count_return */
);
/* ICCCM routines for things that don't require special include files; */
/* other declarations are given in Xutil.h */
extern Status XReconfigureWMWindow(
Display* /* display */,
Window /* w */,
int /* screen_number */,
unsigned int /* mask */,
XWindowChanges* /* changes */
);
extern Status XGetWMProtocols(
Display* /* display */,
Window /* w */,
Atom** /* protocols_return */,
int* /* count_return */
);
extern Status XSetWMProtocols(
Display* /* display */,
Window /* w */,
Atom* /* protocols */,
int /* count */
);
extern Status XIconifyWindow(
Display* /* display */,
Window /* w */,
int /* screen_number */
);
extern Status XWithdrawWindow(
Display* /* display */,
Window /* w */,
int /* screen_number */
);
extern Status XGetCommand(
Display* /* display */,
Window /* w */,
char*** /* argv_return */,
int* /* argc_return */
);
extern Status XGetWMColormapWindows(
Display* /* display */,
Window /* w */,
Window** /* windows_return */,
int* /* count_return */
);
extern Status XSetWMColormapWindows(
Display* /* display */,
Window /* w */,
Window* /* colormap_windows */,
int /* count */
);
extern void XFreeStringList(
char** /* list */
);
extern int XSetTransientForHint(
Display* /* display */,
Window /* w */,
Window /* prop_window */
);
/* The following are given in alphabetical order */
extern int XActivateScreenSaver(
Display* /* display */
);
extern int XAddHost(
Display* /* display */,
XHostAddress* /* host */
);
extern int XAddHosts(
Display* /* display */,
XHostAddress* /* hosts */,
int /* num_hosts */
);
extern int XAddToExtensionList(
struct _XExtData** /* structure */,
XExtData* /* ext_data */
);
extern int XAddToSaveSet(
Display* /* display */,
Window /* w */
);
extern Status XAllocColor(
Display* /* display */,
Colormap /* colormap */,
XColor* /* screen_in_out */
);
extern Status XAllocColorCells(
Display* /* display */,
Colormap /* colormap */,
Bool /* contig */,
unsigned long* /* plane_masks_return */,
unsigned int /* nplanes */,
unsigned long* /* pixels_return */,
unsigned int /* npixels */
);
extern Status XAllocColorPlanes(
Display* /* display */,
Colormap /* colormap */,
Bool /* contig */,
unsigned long* /* pixels_return */,
int /* ncolors */,
int /* nreds */,
int /* ngreens */,
int /* nblues */,
unsigned long* /* rmask_return */,
unsigned long* /* gmask_return */,
unsigned long* /* bmask_return */
);
extern Status XAllocNamedColor(
Display* /* display */,
Colormap /* colormap */,
_Xconst char* /* color_name */,
XColor* /* screen_def_return */,
XColor* /* exact_def_return */
);
extern int XAllowEvents(
Display* /* display */,
int /* event_mode */,
Time /* time */
);
extern int XAutoRepeatOff(
Display* /* display */
);
extern int XAutoRepeatOn(
Display* /* display */
);
extern int XBell(
Display* /* display */,
int /* percent */
);
extern int XBitmapBitOrder(
Display* /* display */
);
extern int XBitmapPad(
Display* /* display */
);
extern int XBitmapUnit(
Display* /* display */
);
extern int XCellsOfScreen(
Screen* /* screen */
);
extern int XChangeActivePointerGrab(
Display* /* display */,
unsigned int /* event_mask */,
Cursor /* cursor */,
Time /* time */
);
extern int XChangeGC(
Display* /* display */,
GC /* gc */,
unsigned long /* valuemask */,
XGCValues* /* values */
);
extern int XChangeKeyboardControl(
Display* /* display */,
unsigned long /* value_mask */,
XKeyboardControl* /* values */
);
extern int XChangeKeyboardMapping(
Display* /* display */,
int /* first_keycode */,
int /* keysyms_per_keycode */,
KeySym* /* keysyms */,
int /* num_codes */
);
extern int XChangePointerControl(
Display* /* display */,
Bool /* do_accel */,
Bool /* do_threshold */,
int /* accel_numerator */,
int /* accel_denominator */,
int /* threshold */
);
extern int XChangeProperty(
Display* /* display */,
Window /* w */,
Atom /* property */,
Atom /* type */,
int /* format */,
int /* mode */,
_Xconst unsigned char* /* data */,
int /* nelements */
);
extern int XChangeSaveSet(
Display* /* display */,
Window /* w */,
int /* change_mode */
);
extern int XChangeWindowAttributes(
Display* /* display */,
Window /* w */,
unsigned long /* valuemask */,
XSetWindowAttributes* /* attributes */
);
extern Bool XCheckIfEvent(
Display* /* display */,
XEvent* /* event_return */,
Bool (*) (
Display* /* display */,
XEvent* /* event */,
XPointer /* arg */
) /* predicate */,
XPointer /* arg */
);
extern Bool XCheckMaskEvent(
Display* /* display */,
long /* event_mask */,
XEvent* /* event_return */
);
extern Bool XCheckTypedEvent(
Display* /* display */,
int /* event_type */,
XEvent* /* event_return */
);
extern Bool XCheckTypedWindowEvent(
Display* /* display */,
Window /* w */,
int /* event_type */,
XEvent* /* event_return */
);
extern Bool XCheckWindowEvent(
Display* /* display */,
Window /* w */,
long /* event_mask */,
XEvent* /* event_return */
);
extern int XCirculateSubwindows(
Display* /* display */,
Window /* w */,
int /* direction */
);
extern int XCirculateSubwindowsDown(
Display* /* display */,
Window /* w */
);
extern int XCirculateSubwindowsUp(
Display* /* display */,
Window /* w */
);
extern int XClearArea(
Display* /* display */,
Window /* w */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */,
Bool /* exposures */
);
extern int XClearWindow(
Display* /* display */,
Window /* w */
);
extern int XCloseDisplay(
Display* /* display */
);
extern int XConfigureWindow(
Display* /* display */,
Window /* w */,
unsigned int /* value_mask */,
XWindowChanges* /* values */
);
extern int XConnectionNumber(
Display* /* display */
);
extern int XConvertSelection(
Display* /* display */,
Atom /* selection */,
Atom /* target */,
Atom /* property */,
Window /* requestor */,
Time /* time */
);
extern int XCopyArea(
Display* /* display */,
Drawable /* src */,
Drawable /* dest */,
GC /* gc */,
int /* src_x */,
int /* src_y */,
unsigned int /* width */,
unsigned int /* height */,
int /* dest_x */,
int /* dest_y */
);
extern int XCopyGC(
Display* /* display */,
GC /* src */,
unsigned long /* valuemask */,
GC /* dest */
);
extern int XCopyPlane(
Display* /* display */,
Drawable /* src */,
Drawable /* dest */,
GC /* gc */,
int /* src_x */,
int /* src_y */,
unsigned int /* width */,
unsigned int /* height */,
int /* dest_x */,
int /* dest_y */,
unsigned long /* plane */
);
extern int XDefaultDepth(
Display* /* display */,
int /* screen_number */
);
extern int XDefaultDepthOfScreen(
Screen* /* screen */
);
extern int XDefaultScreen(
Display* /* display */
);
extern int XDefineCursor(
Display* /* display */,
Window /* w */,
Cursor /* cursor */
);
extern int XDeleteProperty(
Display* /* display */,
Window /* w */,
Atom /* property */
);
extern int XDestroyWindow(
Display* /* display */,
Window /* w */
);
extern int XDestroySubwindows(
Display* /* display */,
Window /* w */
);
extern int XDoesBackingStore(
Screen* /* screen */
);
extern Bool XDoesSaveUnders(
Screen* /* screen */
);
extern int XDisableAccessControl(
Display* /* display */
);
extern int XDisplayCells(
Display* /* display */,
int /* screen_number */
);
extern int XDisplayHeight(
Display* /* display */,
int /* screen_number */
);
extern int XDisplayHeightMM(
Display* /* display */,
int /* screen_number */
);
extern int XDisplayKeycodes(
Display* /* display */,
int* /* min_keycodes_return */,
int* /* max_keycodes_return */
);
extern int XDisplayPlanes(
Display* /* display */,
int /* screen_number */
);
extern int XDisplayWidth(
Display* /* display */,
int /* screen_number */
);
extern int XDisplayWidthMM(
Display* /* display */,
int /* screen_number */
);
extern int XDrawArc(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */,
int /* angle1 */,
int /* angle2 */
);
extern int XDrawArcs(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XArc* /* arcs */,
int /* narcs */
);
extern int XDrawImageString(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
_Xconst char* /* string */,
int /* length */
);
extern int XDrawImageString16(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
int /* length */
);
extern int XDrawLine(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x1 */,
int /* y1 */,
int /* x2 */,
int /* y2 */
);
extern int XDrawLines(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XPoint* /* points */,
int /* npoints */,
int /* mode */
);
extern int XDrawPoint(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */
);
extern int XDrawPoints(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XPoint* /* points */,
int /* npoints */,
int /* mode */
);
extern int XDrawRectangle(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */
);
extern int XDrawRectangles(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XRectangle* /* rectangles */,
int /* nrectangles */
);
extern int XDrawSegments(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XSegment* /* segments */,
int /* nsegments */
);
extern int XDrawString(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
_Xconst char* /* string */,
int /* length */
);
extern int XDrawString16(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
int /* length */
);
extern int XDrawText(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
XTextItem* /* items */,
int /* nitems */
);
extern int XDrawText16(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
XTextItem16* /* items */,
int /* nitems */
);
extern int XEnableAccessControl(
Display* /* display */
);
extern int XEventsQueued(
Display* /* display */,
int /* mode */
);
extern Status XFetchName(
Display* /* display */,
Window /* w */,
char** /* window_name_return */
);
extern int XFillArc(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */,
int /* angle1 */,
int /* angle2 */
);
extern int XFillArcs(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XArc* /* arcs */,
int /* narcs */
);
extern int XFillPolygon(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XPoint* /* points */,
int /* npoints */,
int /* shape */,
int /* mode */
);
extern int XFillRectangle(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */
);
extern int XFillRectangles(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XRectangle* /* rectangles */,
int /* nrectangles */
);
extern int XFlush(
Display* /* display */
);
extern int XForceScreenSaver(
Display* /* display */,
int /* mode */
);
extern int XFree(
void* /* data */
);
extern int XFreeColormap(
Display* /* display */,
Colormap /* colormap */
);
extern int XFreeColors(
Display* /* display */,
Colormap /* colormap */,
unsigned long* /* pixels */,
int /* npixels */,
unsigned long /* planes */
);
extern int XFreeCursor(
Display* /* display */,
Cursor /* cursor */
);
extern int XFreeExtensionList(
char** /* list */
);
extern int XFreeFont(
Display* /* display */,
XFontStruct* /* font_struct */
);
extern int XFreeFontInfo(
char** /* names */,
XFontStruct* /* free_info */,
int /* actual_count */
);
extern int XFreeFontNames(
char** /* list */
);
extern int XFreeFontPath(
char** /* list */
);
extern int XFreeGC(
Display* /* display */,
GC /* gc */
);
extern int XFreeModifiermap(
XModifierKeymap* /* modmap */
);
extern int XFreePixmap(
Display* /* display */,
Pixmap /* pixmap */
);
extern int XGeometry(
Display* /* display */,
int /* screen */,
_Xconst char* /* position */,
_Xconst char* /* default_position */,
unsigned int /* bwidth */,
unsigned int /* fwidth */,
unsigned int /* fheight */,
int /* xadder */,
int /* yadder */,
int* /* x_return */,
int* /* y_return */,
int* /* width_return */,
int* /* height_return */
);
extern int XGetErrorDatabaseText(
Display* /* display */,
_Xconst char* /* name */,
_Xconst char* /* message */,
_Xconst char* /* default_string */,
char* /* buffer_return */,
int /* length */
);
extern int XGetErrorText(
Display* /* display */,
int /* code */,
char* /* buffer_return */,
int /* length */
);
extern Bool XGetFontProperty(
XFontStruct* /* font_struct */,
Atom /* atom */,
unsigned long* /* value_return */
);
extern Status XGetGCValues(
Display* /* display */,
GC /* gc */,
unsigned long /* valuemask */,
XGCValues* /* values_return */
);
extern Status XGetGeometry(
Display* /* display */,
Drawable /* d */,
Window* /* root_return */,
int* /* x_return */,
int* /* y_return */,
unsigned int* /* width_return */,
unsigned int* /* height_return */,
unsigned int* /* border_width_return */,
unsigned int* /* depth_return */
);
extern Status XGetIconName(
Display* /* display */,
Window /* w */,
char** /* icon_name_return */
);
extern int XGetInputFocus(
Display* /* display */,
Window* /* focus_return */,
int* /* revert_to_return */
);
extern int XGetKeyboardControl(
Display* /* display */,
XKeyboardState* /* values_return */
);
extern int XGetPointerControl(
Display* /* display */,
int* /* accel_numerator_return */,
int* /* accel_denominator_return */,
int* /* threshold_return */
);
extern int XGetPointerMapping(
Display* /* display */,
unsigned char* /* map_return */,
int /* nmap */
);
extern int XGetScreenSaver(
Display* /* display */,
int* /* timeout_return */,
int* /* interval_return */,
int* /* prefer_blanking_return */,
int* /* allow_exposures_return */
);
extern Status XGetTransientForHint(
Display* /* display */,
Window /* w */,
Window* /* prop_window_return */
);
extern int XGetWindowProperty(
Display* /* display */,
Window /* w */,
Atom /* property */,
long /* long_offset */,
long /* long_length */,
Bool /* delete */,
Atom /* req_type */,
Atom* /* actual_type_return */,
int* /* actual_format_return */,
unsigned long* /* nitems_return */,
unsigned long* /* bytes_after_return */,
unsigned char** /* prop_return */
);
extern Status XGetWindowAttributes(
Display* /* display */,
Window /* w */,
XWindowAttributes* /* window_attributes_return */
);
extern int XGrabButton(
Display* /* display */,
unsigned int /* button */,
unsigned int /* modifiers */,
Window /* grab_window */,
Bool /* owner_events */,
unsigned int /* event_mask */,
int /* pointer_mode */,
int /* keyboard_mode */,
Window /* confine_to */,
Cursor /* cursor */
);
extern int XGrabKey(
Display* /* display */,
int /* keycode */,
unsigned int /* modifiers */,
Window /* grab_window */,
Bool /* owner_events */,
int /* pointer_mode */,
int /* keyboard_mode */
);
extern int XGrabKeyboard(
Display* /* display */,
Window /* grab_window */,
Bool /* owner_events */,
int /* pointer_mode */,
int /* keyboard_mode */,
Time /* time */
);
extern int XGrabPointer(
Display* /* display */,
Window /* grab_window */,
Bool /* owner_events */,
unsigned int /* event_mask */,
int /* pointer_mode */,
int /* keyboard_mode */,
Window /* confine_to */,
Cursor /* cursor */,
Time /* time */
);
extern int XGrabServer(
Display* /* display */
);
extern int XHeightMMOfScreen(
Screen* /* screen */
);
extern int XHeightOfScreen(
Screen* /* screen */
);
extern int XIfEvent(
Display* /* display */,
XEvent* /* event_return */,
Bool (*) (
Display* /* display */,
XEvent* /* event */,
XPointer /* arg */
) /* predicate */,
XPointer /* arg */
);
extern int XImageByteOrder(
Display* /* display */
);
extern int XInstallColormap(
Display* /* display */,
Colormap /* colormap */
);
extern KeyCode XKeysymToKeycode(
Display* /* display */,
KeySym /* keysym */
);
extern int XKillClient(
Display* /* display */,
XID /* resource */
);
extern Status XLookupColor(
Display* /* display */,
Colormap /* colormap */,
_Xconst char* /* color_name */,
XColor* /* exact_def_return */,
XColor* /* screen_def_return */
);
extern int XLowerWindow(
Display* /* display */,
Window /* w */
);
extern int XMapRaised(
Display* /* display */,
Window /* w */
);
extern int XMapSubwindows(
Display* /* display */,
Window /* w */
);
extern int XMapWindow(
Display* /* display */,
Window /* w */
);
extern int XMaskEvent(
Display* /* display */,
long /* event_mask */,
XEvent* /* event_return */
);
extern int XMaxCmapsOfScreen(
Screen* /* screen */
);
extern int XMinCmapsOfScreen(
Screen* /* screen */
);
extern int XMoveResizeWindow(
Display* /* display */,
Window /* w */,
int /* x */,
int /* y */,
unsigned int /* width */,
unsigned int /* height */
);
extern int XMoveWindow(
Display* /* display */,
Window /* w */,
int /* x */,
int /* y */
);
extern int XNextEvent(
Display* /* display */,
XEvent* /* event_return */
);
extern int XNoOp(
Display* /* display */
);
extern Status XParseColor(
Display* /* display */,
Colormap /* colormap */,
_Xconst char* /* spec */,
XColor* /* exact_def_return */
);
extern int XParseGeometry(
_Xconst char* /* parsestring */,
int* /* x_return */,
int* /* y_return */,
unsigned int* /* width_return */,
unsigned int* /* height_return */
);
extern int XPeekEvent(
Display* /* display */,
XEvent* /* event_return */
);
extern int XPeekIfEvent(
Display* /* display */,
XEvent* /* event_return */,
Bool (*) (
Display* /* display */,
XEvent* /* event */,
XPointer /* arg */
) /* predicate */,
XPointer /* arg */
);
extern int XPending(
Display* /* display */
);
extern int XPlanesOfScreen(
Screen* /* screen */
);
extern int XProtocolRevision(
Display* /* display */
);
extern int XProtocolVersion(
Display* /* display */
);
extern int XPutBackEvent(
Display* /* display */,
XEvent* /* event */
);
extern int XPutImage(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
XImage* /* image */,
int /* src_x */,
int /* src_y */,
int /* dest_x */,
int /* dest_y */,
unsigned int /* width */,
unsigned int /* height */
);
extern int XQLength(
Display* /* display */
);
extern Status XQueryBestCursor(
Display* /* display */,
Drawable /* d */,
unsigned int /* width */,
unsigned int /* height */,
unsigned int* /* width_return */,
unsigned int* /* height_return */
);
extern Status XQueryBestSize(
Display* /* display */,
int /* class */,
Drawable /* which_screen */,
unsigned int /* width */,
unsigned int /* height */,
unsigned int* /* width_return */,
unsigned int* /* height_return */
);
extern Status XQueryBestStipple(
Display* /* display */,
Drawable /* which_screen */,
unsigned int /* width */,
unsigned int /* height */,
unsigned int* /* width_return */,
unsigned int* /* height_return */
);
extern Status XQueryBestTile(
Display* /* display */,
Drawable /* which_screen */,
unsigned int /* width */,
unsigned int /* height */,
unsigned int* /* width_return */,
unsigned int* /* height_return */
);
extern int XQueryColor(
Display* /* display */,
Colormap /* colormap */,
XColor* /* def_in_out */
);
extern int XQueryColors(
Display* /* display */,
Colormap /* colormap */,
XColor* /* defs_in_out */,
int /* ncolors */
);
extern Bool XQueryExtension(
Display* /* display */,
_Xconst char* /* name */,
int* /* major_opcode_return */,
int* /* first_event_return */,
int* /* first_error_return */
);
extern int XQueryKeymap(
Display* /* display */,
char [32] /* keys_return */
);
extern Bool XQueryPointer(
Display* /* display */,
Window /* w */,
Window* /* root_return */,
Window* /* child_return */,
int* /* root_x_return */,
int* /* root_y_return */,
int* /* win_x_return */,
int* /* win_y_return */,
unsigned int* /* mask_return */
);
extern int XQueryTextExtents(
Display* /* display */,
XID /* font_ID */,
_Xconst char* /* string */,
int /* nchars */,
int* /* direction_return */,
int* /* font_ascent_return */,
int* /* font_descent_return */,
XCharStruct* /* overall_return */
);
extern int XQueryTextExtents16(
Display* /* display */,
XID /* font_ID */,
int /* nchars */,
int* /* direction_return */,
int* /* font_ascent_return */,
int* /* font_descent_return */,
XCharStruct* /* overall_return */
);
extern Status XQueryTree(
Display* /* display */,
Window /* w */,
Window* /* root_return */,
Window* /* parent_return */,
Window** /* children_return */,
unsigned int* /* nchildren_return */
);
extern int XRaiseWindow(
Display* /* display */,
Window /* w */
);
extern int XReadBitmapFile(
Display* /* display */,
Drawable /* d */,
_Xconst char* /* filename */,
unsigned int* /* width_return */,
unsigned int* /* height_return */,
Pixmap* /* bitmap_return */,
int* /* x_hot_return */,
int* /* y_hot_return */
);
extern int XReadBitmapFileData(
_Xconst char* /* filename */,
unsigned int* /* width_return */,
unsigned int* /* height_return */,
unsigned char** /* data_return */,
int* /* x_hot_return */,
int* /* y_hot_return */
);
extern int XRebindKeysym(
Display* /* display */,
KeySym /* keysym */,
KeySym* /* list */,
int /* mod_count */,
_Xconst unsigned char* /* string */,
int /* bytes_string */
);
extern int XRecolorCursor(
Display* /* display */,
Cursor /* cursor */,
XColor* /* foreground_color */,
XColor* /* background_color */
);
extern int XRefreshKeyboardMapping(
XMappingEvent* /* event_map */
);
extern int XRemoveFromSaveSet(
Display* /* display */,
Window /* w */
);
extern int XRemoveHost(
Display* /* display */,
XHostAddress* /* host */
);
extern int XRemoveHosts(
Display* /* display */,
XHostAddress* /* hosts */,
int /* num_hosts */
);
extern int XReparentWindow(
Display* /* display */,
Window /* w */,
Window /* parent */,
int /* x */,
int /* y */
);
extern int XResetScreenSaver(
Display* /* display */
);
extern int XResizeWindow(
Display* /* display */,
Window /* w */,
unsigned int /* width */,
unsigned int /* height */
);
extern int XRestackWindows(
Display* /* display */,
Window* /* windows */,
int /* nwindows */
);
extern int XRotateBuffers(
Display* /* display */,
int /* rotate */
);
extern int XRotateWindowProperties(
Display* /* display */,
Window /* w */,
Atom* /* properties */,
int /* num_prop */,
int /* npositions */
);
extern int XScreenCount(
Display* /* display */
);
extern int XSelectInput(
Display* /* display */,
Window /* w */,
long /* event_mask */
);
extern Status XSendEvent(
Display* /* display */,
Window /* w */,
Bool /* propagate */,
long /* event_mask */,
XEvent* /* event_send */
);
extern int XSetAccessControl(
Display* /* display */,
int /* mode */
);
extern int XSetArcMode(
Display* /* display */,
GC /* gc */,
int /* arc_mode */
);
extern int XSetBackground(
Display* /* display */,
GC /* gc */,
unsigned long /* background */
);
extern int XSetClipMask(
Display* /* display */,
GC /* gc */,
Pixmap /* pixmap */
);
extern int XSetClipOrigin(
Display* /* display */,
GC /* gc */,
int /* clip_x_origin */,
int /* clip_y_origin */
);
extern int XSetClipRectangles(
Display* /* display */,
GC /* gc */,
int /* clip_x_origin */,
int /* clip_y_origin */,
XRectangle* /* rectangles */,
int /* n */,
int /* ordering */
);
extern int XSetCloseDownMode(
Display* /* display */,
int /* close_mode */
);
extern int XSetCommand(
Display* /* display */,
Window /* w */,
char** /* argv */,
int /* argc */
);
extern int XSetDashes(
Display* /* display */,
GC /* gc */,
int /* dash_offset */,
_Xconst char* /* dash_list */,
int /* n */
);
extern int XSetFillRule(
Display* /* display */,
GC /* gc */,
int /* fill_rule */
);
extern int XSetFillStyle(
Display* /* display */,
GC /* gc */,
int /* fill_style */
);
extern int XSetFont(
Display* /* display */,
GC /* gc */,
Font /* font */
);
extern int XSetFontPath(
Display* /* display */,
char** /* directories */,
int /* ndirs */
);
extern int XSetForeground(
Display* /* display */,
GC /* gc */,
unsigned long /* foreground */
);
extern int XSetFunction(
Display* /* display */,
GC /* gc */,
int /* function */
);
extern int XSetGraphicsExposures(
Display* /* display */,
GC /* gc */,
Bool /* graphics_exposures */
);
extern int XSetIconName(
Display* /* display */,
Window /* w */,
_Xconst char* /* icon_name */
);
extern int XSetInputFocus(
Display* /* display */,
Window /* focus */,
int /* revert_to */,
Time /* time */
);
extern int XSetLineAttributes(
Display* /* display */,
GC /* gc */,
unsigned int /* line_width */,
int /* line_style */,
int /* cap_style */,
int /* join_style */
);
extern int XSetModifierMapping(
Display* /* display */,
XModifierKeymap* /* modmap */
);
extern int XSetPlaneMask(
Display* /* display */,
GC /* gc */,
unsigned long /* plane_mask */
);
extern int XSetPointerMapping(
Display* /* display */,
_Xconst unsigned char* /* map */,
int /* nmap */
);
extern int XSetScreenSaver(
Display* /* display */,
int /* timeout */,
int /* interval */,
int /* prefer_blanking */,
int /* allow_exposures */
);
extern int XSetSelectionOwner(
Display* /* display */,
Atom /* selection */,
Window /* owner */,
Time /* time */
);
extern int XSetState(
Display* /* display */,
GC /* gc */,
unsigned long /* foreground */,
unsigned long /* background */,
int /* function */,
unsigned long /* plane_mask */
);
extern int XSetStipple(
Display* /* display */,
GC /* gc */,
Pixmap /* stipple */
);
extern int XSetSubwindowMode(
Display* /* display */,
GC /* gc */,
int /* subwindow_mode */
);
extern int XSetTSOrigin(
Display* /* display */,
GC /* gc */,
int /* ts_x_origin */,
int /* ts_y_origin */
);
extern int XSetTile(
Display* /* display */,
GC /* gc */,
Pixmap /* tile */
);
extern int XSetWindowBackground(
Display* /* display */,
Window /* w */,
unsigned long /* background_pixel */
);
extern int XSetWindowBackgroundPixmap(
Display* /* display */,
Window /* w */,
Pixmap /* background_pixmap */
);
extern int XSetWindowBorder(
Display* /* display */,
Window /* w */,
unsigned long /* border_pixel */
);
extern int XSetWindowBorderPixmap(
Display* /* display */,
Window /* w */,
Pixmap /* border_pixmap */
);
extern int XSetWindowBorderWidth(
Display* /* display */,
Window /* w */,
unsigned int /* width */
);
extern int XSetWindowColormap(
Display* /* display */,
Window /* w */,
Colormap /* colormap */
);
extern int XStoreBuffer(
Display* /* display */,
_Xconst char* /* bytes */,
int /* nbytes */,
int /* buffer */
);
extern int XStoreBytes(
Display* /* display */,
_Xconst char* /* bytes */,
int /* nbytes */
);
extern int XStoreColor(
Display* /* display */,
Colormap /* colormap */,
XColor* /* color */
);
extern int XStoreColors(
Display* /* display */,
Colormap /* colormap */,
XColor* /* color */,
int /* ncolors */
);
extern int XStoreName(
Display* /* display */,
Window /* w */,
_Xconst char* /* window_name */
);
extern int XStoreNamedColor(
Display* /* display */,
Colormap /* colormap */,
_Xconst char* /* color */,
unsigned long /* pixel */,
int /* flags */
);
extern int XSync(
Display* /* display */,
Bool /* discard */
);
extern int XTextExtents(
XFontStruct* /* font_struct */,
_Xconst char* /* string */,
int /* nchars */,
int* /* direction_return */,
int* /* font_ascent_return */,
int* /* font_descent_return */,
XCharStruct* /* overall_return */
);
extern int XTextExtents16(
XFontStruct* /* font_struct */,
int /* nchars */,
int* /* direction_return */,
int* /* font_ascent_return */,
int* /* font_descent_return */,
XCharStruct* /* overall_return */
);
extern int XTextWidth(
XFontStruct* /* font_struct */,
_Xconst char* /* string */,
int /* count */
);
extern int XTextWidth16(
XFontStruct* /* font_struct */,
int /* count */
);
extern Bool XTranslateCoordinates(
Display* /* display */,
Window /* src_w */,
Window /* dest_w */,
int /* src_x */,
int /* src_y */,
int* /* dest_x_return */,
int* /* dest_y_return */,
Window* /* child_return */
);
extern int XUndefineCursor(
Display* /* display */,
Window /* w */
);
extern int XUngrabButton(
Display* /* display */,
unsigned int /* button */,
unsigned int /* modifiers */,
Window /* grab_window */
);
extern int XUngrabKey(
Display* /* display */,
int /* keycode */,
unsigned int /* modifiers */,
Window /* grab_window */
);
extern int XUngrabKeyboard(
Display* /* display */,
Time /* time */
);
extern int XUngrabPointer(
Display* /* display */,
Time /* time */
);
extern int XUngrabServer(
Display* /* display */
);
extern int XUninstallColormap(
Display* /* display */,
Colormap /* colormap */
);
extern int XUnloadFont(
Display* /* display */,
Font /* font */
);
extern int XUnmapSubwindows(
Display* /* display */,
Window /* w */
);
extern int XUnmapWindow(
Display* /* display */,
Window /* w */
);
extern int XVendorRelease(
Display* /* display */
);
extern int XWarpPointer(
Display* /* display */,
Window /* src_w */,
Window /* dest_w */,
int /* src_x */,
int /* src_y */,
unsigned int /* src_width */,
unsigned int /* src_height */,
int /* dest_x */,
int /* dest_y */
);
extern int XWidthMMOfScreen(
Screen* /* screen */
);
extern int XWidthOfScreen(
Screen* /* screen */
);
extern int XWindowEvent(
Display* /* display */,
Window /* w */,
long /* event_mask */,
XEvent* /* event_return */
);
extern int XWriteBitmapFile(
Display* /* display */,
_Xconst char* /* filename */,
Pixmap /* bitmap */,
unsigned int /* width */,
unsigned int /* height */,
int /* x_hot */,
int /* y_hot */
);
extern Bool XSupportsLocale (void);
extern char *XSetLocaleModifiers(
const char* /* modifier_list */
);
Display* /* display */,
struct _XrmHashBucketRec* /* rdb */,
_Xconst char* /* res_name */,
_Xconst char* /* res_class */
);
XOM /* om */
);
extern char *XSetOMValues(
XOM /* om */,
...
) _X_SENTINEL(0);
extern char *XGetOMValues(
XOM /* om */,
...
) _X_SENTINEL(0);
extern Display *XDisplayOfOM(
XOM /* om */
);
extern char *XLocaleOfOM(
XOM /* om */
);
XOM /* om */,
...
) _X_SENTINEL(0);
extern void XDestroyOC(
XOC /* oc */
);
XOC /* oc */
);
extern char *XSetOCValues(
XOC /* oc */,
...
) _X_SENTINEL(0);
extern char *XGetOCValues(
XOC /* oc */,
...
) _X_SENTINEL(0);
extern XFontSet XCreateFontSet(
Display* /* display */,
_Xconst char* /* base_font_name_list */,
char*** /* missing_charset_list */,
int* /* missing_charset_count */,
char** /* def_string */
);
extern void XFreeFontSet(
Display* /* display */,
XFontSet /* font_set */
);
extern int XFontsOfFontSet(
XFontSet /* font_set */,
XFontStruct*** /* font_struct_list */,
char*** /* font_name_list */
);
extern char *XBaseFontNameListOfFontSet(
XFontSet /* font_set */
);
extern char *XLocaleOfFontSet(
XFontSet /* font_set */
);
extern Bool XContextDependentDrawing(
XFontSet /* font_set */
);
extern Bool XDirectionalDependentDrawing(
XFontSet /* font_set */
);
extern Bool XContextualDrawing(
XFontSet /* font_set */
);
extern XFontSetExtents *XExtentsOfFontSet(
XFontSet /* font_set */
);
extern int XmbTextEscapement(
XFontSet /* font_set */,
_Xconst char* /* text */,
int /* bytes_text */
);
extern int XwcTextEscapement(
XFontSet /* font_set */,
int /* num_wchars */
);
extern int Xutf8TextEscapement(
XFontSet /* font_set */,
_Xconst char* /* text */,
int /* bytes_text */
);
extern int XmbTextExtents(
XFontSet /* font_set */,
_Xconst char* /* text */,
int /* bytes_text */,
XRectangle* /* overall_ink_return */,
XRectangle* /* overall_logical_return */
);
extern int XwcTextExtents(
XFontSet /* font_set */,
int /* num_wchars */,
XRectangle* /* overall_ink_return */,
XRectangle* /* overall_logical_return */
);
extern int Xutf8TextExtents(
XFontSet /* font_set */,
_Xconst char* /* text */,
int /* bytes_text */,
XRectangle* /* overall_ink_return */,
XRectangle* /* overall_logical_return */
);
extern Status XmbTextPerCharExtents(
XFontSet /* font_set */,
_Xconst char* /* text */,
int /* bytes_text */,
XRectangle* /* ink_extents_buffer */,
XRectangle* /* logical_extents_buffer */,
int /* buffer_size */,
int* /* num_chars */,
XRectangle* /* overall_ink_return */,
XRectangle* /* overall_logical_return */
);
extern Status XwcTextPerCharExtents(
XFontSet /* font_set */,
int /* num_wchars */,
XRectangle* /* ink_extents_buffer */,
XRectangle* /* logical_extents_buffer */,
int /* buffer_size */,
int* /* num_chars */,
XRectangle* /* overall_ink_return */,
XRectangle* /* overall_logical_return */
);
extern Status Xutf8TextPerCharExtents(
XFontSet /* font_set */,
_Xconst char* /* text */,
int /* bytes_text */,
XRectangle* /* ink_extents_buffer */,
XRectangle* /* logical_extents_buffer */,
int /* buffer_size */,
int* /* num_chars */,
XRectangle* /* overall_ink_return */,
XRectangle* /* overall_logical_return */
);
extern void XmbDrawText(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
XmbTextItem* /* text_items */,
int /* nitems */
);
extern void XwcDrawText(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
XwcTextItem* /* text_items */,
int /* nitems */
);
extern void Xutf8DrawText(
Display* /* display */,
Drawable /* d */,
GC /* gc */,
int /* x */,
int /* y */,
XmbTextItem* /* text_items */,
int /* nitems */
);
extern void XmbDrawString(
Display* /* display */,
Drawable /* d */,
XFontSet /* font_set */,
GC /* gc */,
int /* x */,
int /* y */,
_Xconst char* /* text */,
int /* bytes_text */
);
extern void XwcDrawString(
Display* /* display */,
Drawable /* d */,
XFontSet /* font_set */,
GC /* gc */,
int /* x */,
int /* y */,
int /* num_wchars */
);
extern void Xutf8DrawString(
Display* /* display */,
Drawable /* d */,
XFontSet /* font_set */,
GC /* gc */,
int /* x */,
int /* y */,
_Xconst char* /* text */,
int /* bytes_text */
);
extern void XmbDrawImageString(
Display* /* display */,
Drawable /* d */,
XFontSet /* font_set */,
GC /* gc */,
int /* x */,
int /* y */,
_Xconst char* /* text */,
int /* bytes_text */
);
extern void XwcDrawImageString(
Display* /* display */,
Drawable /* d */,
XFontSet /* font_set */,
GC /* gc */,
int /* x */,
int /* y */,
int /* num_wchars */
);
extern void Xutf8DrawImageString(
Display* /* display */,
Drawable /* d */,
XFontSet /* font_set */,
GC /* gc */,
int /* x */,
int /* y */,
_Xconst char* /* text */,
int /* bytes_text */
);
Display* /* dpy */,
struct _XrmHashBucketRec* /* rdb */,
char* /* res_name */,
char* /* res_class */
);
XIM /* im */
);
extern char *XGetIMValues(
XIM /* im */, ...
) _X_SENTINEL(0);
extern char *XSetIMValues(
XIM /* im */, ...
) _X_SENTINEL(0);
extern Display *XDisplayOfIM(
XIM /* im */
);
extern char *XLocaleOfIM(
XIM /* im*/
);
XIM /* im */, ...
) _X_SENTINEL(0);
extern void XDestroyIC(
XIC /* ic */
);
extern void XSetICFocus(
XIC /* ic */
);
extern void XUnsetICFocus(
XIC /* ic */
);
extern wchar_t *XwcResetIC(
XIC /* ic */
);
extern char *XmbResetIC(
XIC /* ic */
);
extern char *Xutf8ResetIC(
XIC /* ic */
);
extern char *XSetICValues(
XIC /* ic */, ...
) _X_SENTINEL(0);
extern char *XGetICValues(
XIC /* ic */, ...
) _X_SENTINEL(0);
XIC /* ic */
);
extern Bool XFilterEvent(
XEvent* /* event */,
Window /* window */
);
extern int XmbLookupString(
XIC /* ic */,
XKeyPressedEvent* /* event */,
char* /* buffer_return */,
int /* bytes_buffer */,
KeySym* /* keysym_return */,
Status* /* status_return */
);
extern int XwcLookupString(
XIC /* ic */,
XKeyPressedEvent* /* event */,
wchar_t* /* buffer_return */,
int /* wchars_buffer */,
KeySym* /* keysym_return */,
Status* /* status_return */
);
extern int Xutf8LookupString(
XIC /* ic */,
XKeyPressedEvent* /* event */,
char* /* buffer_return */,
int /* bytes_buffer */,
KeySym* /* keysym_return */,
Status* /* status_return */
);
extern XVaNestedList XVaCreateNestedList(
int /*unused*/, ...
) _X_SENTINEL(0);
/* internal connections for IMs */
extern Bool XRegisterIMInstantiateCallback(
Display* /* dpy */,
struct _XrmHashBucketRec* /* rdb */,
char* /* res_name */,
char* /* res_class */,
XIDProc /* callback */,
XPointer /* client_data */
);
extern Bool XUnregisterIMInstantiateCallback(
Display* /* dpy */,
struct _XrmHashBucketRec* /* rdb */,
char* /* res_name */,
char* /* res_class */,
XIDProc /* callback */,
XPointer /* client_data */
);
typedef void (*XConnectionWatchProc)(
Display* /* dpy */,
XPointer /* client_data */,
int /* fd */,
);
extern Status XInternalConnectionNumbers(
Display* /* dpy */,
int** /* fd_return */,
int* /* count_return */
);
extern void XProcessInternalConnection(
Display* /* dpy */,
int /* fd */
);
extern Status XAddConnectionWatch(
Display* /* dpy */,
XConnectionWatchProc /* callback */,
XPointer /* client_data */
);
extern void XRemoveConnectionWatch(
Display* /* dpy */,
XConnectionWatchProc /* callback */,
XPointer /* client_data */
);
extern void XSetAuthorization(
char * /* name */,
int /* namelen */,
char * /* data */,
int /* datalen */
);
extern int _Xmbtowc(
wchar_t * /* wstr */,
#ifdef ISC
char const * /* str */,
size_t /* len */
#else
char * /* str */,
int /* len */
#endif
);
extern int _Xwctomb(
char * /* str */,
wchar_t /* wc */
);
#endif /* _XLIB_H_ */