#include <X11/extensions/Xext.h>
Go to the source code of this file.
|
#define | XextHasExtension(i) ((i) && ((i)->codes)) |
|
#define | XextCheckExtension(dpy, i, name, val) if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return val; } |
|
#define | XextSimpleCheckExtension(dpy, i, name) if (!XextHasExtension(i)) { XMissingExtension (dpy, name); return; } |
|
#define | XEXT_GENERATE_FIND_DISPLAY(proc, extinfo, extname, hooks, nev, data) |
|
#define | XEXT_FIND_DISPLAY_PROTO(proc) XExtDisplayInfo *proc(Display *dpy) |
|
#define | XEXT_GENERATE_CLOSE_DISPLAY(proc, extinfo) |
|
#define | XEXT_CLOSE_DISPLAY_PROTO(proc) int proc(Display *dpy, XExtCodes *codes) |
|
#define | XEXT_GENERATE_ERROR_STRING(proc, extname, nerr, errl) |
|
#define | XEXT_ERROR_STRING_PROTO(proc) char *proc(Display *dpy, int code, XExtCodes *codes, char *buf, int n) |
|
#define XEXT_CLOSE_DISPLAY_PROTO |
( |
|
proc | ) |
int proc(Display *dpy, XExtCodes *codes) |
#define XEXT_ERROR_STRING_PROTO |
( |
|
proc | ) |
char *proc(Display *dpy, int code, XExtCodes *codes, char *buf, int n) |
#define XEXT_GENERATE_CLOSE_DISPLAY |
( |
|
proc, |
|
|
|
extinfo |
|
) |
| |
Value:int proc (Display *
dpy, XExtCodes *codes) \
{ \
}
Definition at line 200 of file extutil.h.
#define XEXT_GENERATE_ERROR_STRING |
( |
|
proc, |
|
|
|
extname, |
|
|
|
nerr, |
|
|
|
errl |
|
) |
| |
Value:char *proc (Display *
dpy,
int code, XExtCodes *codes,
char *buf,
int n) \
{ \
code -= codes->first_error;
\
if (code >= 0 && code < nerr) { \
sprintf (tmp,
"%s.%d", extname, code); \
XGetErrorDatabaseText (
dpy,
"XProtoError", tmp, errl[code], buf,
n); \
return buf; \
} \
return (char *)0; \
}
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
int sprintf(idStr &string, const char *fmt,...)
Definition at line 209 of file extutil.h.
#define XEXT_GENERATE_FIND_DISPLAY |
( |
|
proc, |
|
|
|
extinfo, |
|
|
|
extname, |
|
|
|
hooks, |
|
|
|
nev, |
|
|
|
data |
|
) |
| |
Value:
return dpyinfo; \
}
struct _XExtDisplayInfo XExtDisplayInfo
XExtensionInfo * XextCreateExtension()
GLsizei GLsizei GLenum GLenum const GLvoid * data
XExtDisplayInfo * XextFindDisplay()
XExtDisplayInfo * XextAddDisplay()
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
Definition at line 187 of file extutil.h.
#define XextHasExtension |
( |
|
i | ) |
((i) && ((i)->codes)) |
void XextDestroyExtension |
( |
| ) |
|
int XextRemoveDisplay |
( |
| ) |
|