summaryrefslogtreecommitdiffstats
path: root/generic/tkIntXlibDecls.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkIntXlibDecls.h')
-rw-r--r--generic/tkIntXlibDecls.h103
1 files changed, 98 insertions, 5 deletions
diff --git a/generic/tkIntXlibDecls.h b/generic/tkIntXlibDecls.h
index 30470ab..f5753c5 100644
--- a/generic/tkIntXlibDecls.h
+++ b/generic/tkIntXlibDecls.h
@@ -13,6 +13,12 @@
#ifndef _TKINTXLIBDECLS
#define _TKINTXLIBDECLS
+/*
+ * WARNING: This file is automatically generated by the tools/genStubs.tcl
+ * script. Any modifications to the function declarations below should be made
+ * in the generic/tkInt.decls script.
+ */
+
#ifdef MAC_TCL
#include "Xutil.h"
#else
@@ -24,11 +30,9 @@
#define TCL_STORAGE_CLASS DLLEXPORT
#endif
-/*
- * WARNING: This file is automatically generated by the tools/genStubs.tcl
- * script. Any modifications to the function declarations below should be made
- * in the generic/tkInt.decls script.
- */
+typedef int (*XAfterFunction) ( /* WARNING, this type not in Xlib spec */
+ Display* /* display */
+);
/* !BEGIN!: Do not edit below this line. */
@@ -363,6 +367,23 @@ EXTERN int XWarpPointer _ANSI_ARGS_((Display *d, Window s,
EXTERN int XFillRectangle _ANSI_ARGS_((Display *display,
Drawable d, GC gc, int x, int y,
unsigned int width, unsigned int height));
+/* 107 */
+EXTERN int XFlush _ANSI_ARGS_((Display *display));
+/* 108 */
+EXTERN int XGrabServer _ANSI_ARGS_((Display *display));
+/* 109 */
+EXTERN int XUngrabServer _ANSI_ARGS_((Display *display));
+/* 110 */
+EXTERN int XFree _ANSI_ARGS_((VOID *data));
+/* 111 */
+EXTERN int XNoOp _ANSI_ARGS_((Display *display));
+/* 112 */
+EXTERN XAfterFunction XSynchronize _ANSI_ARGS_((Display *display,
+ Bool onoff));
+/* 113 */
+EXTERN int XSync _ANSI_ARGS_((Display *display, Bool discard));
+/* 114 */
+EXTERN VisualID XVisualIDFromVisual _ANSI_ARGS_((Visual *visual));
#endif /* WIN */
#ifdef MAC_TCL
/* 0 */
@@ -1059,6 +1080,14 @@ typedef struct TkIntXlibStubs {
int (*xDrawLine) _ANSI_ARGS_((Display *d, Drawable dr, GC g, int x1, int y1, int x2, int y2)); /* 104 */
int (*xWarpPointer) _ANSI_ARGS_((Display *d, Window s, Window dw, int sx, int sy, unsigned int sw, unsigned int sh, int dx, int dy)); /* 105 */
int (*xFillRectangle) _ANSI_ARGS_((Display *display, Drawable d, GC gc, int x, int y, unsigned int width, unsigned int height)); /* 106 */
+ int (*xFlush) _ANSI_ARGS_((Display *display)); /* 107 */
+ int (*xGrabServer) _ANSI_ARGS_((Display *display)); /* 108 */
+ int (*xUngrabServer) _ANSI_ARGS_((Display *display)); /* 109 */
+ int (*xFree) _ANSI_ARGS_((VOID *data)); /* 110 */
+ int (*xNoOp) _ANSI_ARGS_((Display *display)); /* 111 */
+ XAfterFunction (*xSynchronize) _ANSI_ARGS_((Display *display, Bool onoff)); /* 112 */
+ int (*xSync) _ANSI_ARGS_((Display *display, Bool discard)); /* 113 */
+ VisualID (*xVisualIDFromVisual) _ANSI_ARGS_((Visual *visual)); /* 114 */
#endif /* WIN */
#ifdef MAC_TCL
int (*xSetDashes) _ANSI_ARGS_((Display *display, GC gc, int dash_offset, _Xconst char *dash_list, int n)); /* 0 */
@@ -1689,6 +1718,38 @@ extern TkIntXlibStubs *tkIntXlibStubsPtr;
#define XFillRectangle \
(tkIntXlibStubsPtr->xFillRectangle) /* 106 */
#endif
+#ifndef XFlush
+#define XFlush \
+ (tkIntXlibStubsPtr->xFlush) /* 107 */
+#endif
+#ifndef XGrabServer
+#define XGrabServer \
+ (tkIntXlibStubsPtr->xGrabServer) /* 108 */
+#endif
+#ifndef XUngrabServer
+#define XUngrabServer \
+ (tkIntXlibStubsPtr->xUngrabServer) /* 109 */
+#endif
+#ifndef XFree
+#define XFree \
+ (tkIntXlibStubsPtr->xFree) /* 110 */
+#endif
+#ifndef XNoOp
+#define XNoOp \
+ (tkIntXlibStubsPtr->xNoOp) /* 111 */
+#endif
+#ifndef XSynchronize
+#define XSynchronize \
+ (tkIntXlibStubsPtr->xSynchronize) /* 112 */
+#endif
+#ifndef XSync
+#define XSync \
+ (tkIntXlibStubsPtr->xSync) /* 113 */
+#endif
+#ifndef XVisualIDFromVisual
+#define XVisualIDFromVisual \
+ (tkIntXlibStubsPtr->xVisualIDFromVisual) /* 114 */
+#endif
#endif /* WIN */
#ifdef MAC_TCL
#ifndef XSetDashes
@@ -2434,4 +2495,36 @@ extern TkIntXlibStubs *tkIntXlibStubsPtr;
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLIMPORT
+#if defined(__WIN32__)
+
+#undef XFlush
+#undef XGrabServer
+#undef XUngrabServer
+#undef XFree
+#undef XNoOp
+#undef XSynchronize
+#undef XSync
+#undef XVisualIDFromVisual
+
+/*
+ * The following stubs implement various calls that don't do anything
+ * under Windows.
+ */
+
+#define XFlush(display)
+#define XGrabServer(display)
+#define XUngrabServer(display)
+
+/*
+ * The following functions are implemented as macros under Windows.
+ */
+
+#define XFree(data) {if ((data) != NULL) ckfree((char *) (data));}
+#define XNoOp(display) {display->request++;}
+#define XSynchronize(display, bool) {display->request++;}
+#define XSync(display, bool) {display->request++;}
+#define XVisualIDFromVisual(visual) (visual->visualid)
+
+#endif
+
#endif /* _TKINTXLIBDECLS */