summaryrefslogtreecommitdiffstats
path: root/generic/tkIntXlibDecls.h
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-07-16 13:28:34 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-07-16 13:28:34 (GMT)
commit81da7830cb098eaccd1d444a8bd5defa37a25b84 (patch)
treea9a0bb126561028526eaab747d6a8e623c83eb92 /generic/tkIntXlibDecls.h
parentef6562fba1ee7d08f5cfec0030c94b5364ba90d6 (diff)
downloadtk-81da7830cb098eaccd1d444a8bd5defa37a25b84.zip
tk-81da7830cb098eaccd1d444a8bd5defa37a25b84.tar.gz
tk-81da7830cb098eaccd1d444a8bd5defa37a25b84.tar.bz2
Bug [f9eddb541a] (TkSetRegion(), XSetClipRectangles): Patch 5 from Christopher Chavez - Implement XSetClipRectangles() on Windows by relocating the existing Aqua implementation
Diffstat (limited to 'generic/tkIntXlibDecls.h')
-rw-r--r--generic/tkIntXlibDecls.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/generic/tkIntXlibDecls.h b/generic/tkIntXlibDecls.h
index 9d4200a..1040c4f 100644
--- a/generic/tkIntXlibDecls.h
+++ b/generic/tkIntXlibDecls.h
@@ -275,7 +275,10 @@ EXTERN int TkPutImage(unsigned long *colors, int ncolors,
XImage *image, int src_x, int src_y,
int dest_x, int dest_y, unsigned int width,
unsigned int height);
-/* Slot 81 is reserved */
++/* 81 */
+EXTERN int XSetClipRectangles(Display * display, GC gc,
+ int clip_x_origin, int clip_y_origin,
+ XRectangle rectangles[], int n, int ordering);
/* 82 */
EXTERN Status XParseColor(Display *display, Colormap map,
_Xconst char *spec, XColor *colorPtr);
@@ -879,7 +882,7 @@ typedef struct TkIntXlibStubs {
Bool (*xFilterEvent) (XEvent *x, Window w); /* 78 */
int (*xmbLookupString) (XIC xi, XKeyPressedEvent *xk, char *c, int i, KeySym *k, Status *s); /* 79 */
int (*tkPutImage) (unsigned long *colors, int ncolors, 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); /* 80 */
- void (*reserved81)(void);
+ int (*xSetClipRectangles) (Display* display, GC gc, int clip_x_origin, int clip_y_origin, XRectangle rectangles[], int n, int ordering); /* 81 */
Status (*xParseColor) (Display *display, Colormap map, _Xconst char *spec, XColor *colorPtr); /* 82 */
GC (*xCreateGC) (Display *display, Drawable d, unsigned long valuemask, XGCValues *values); /* 83 */
int (*xFreeGC) (Display *display, GC gc); /* 84 */
@@ -1296,7 +1299,8 @@ extern const TkIntXlibStubs *tkIntXlibStubsPtr;
(tkIntXlibStubsPtr->xmbLookupString) /* 79 */
#define TkPutImage \
(tkIntXlibStubsPtr->tkPutImage) /* 80 */
-/* Slot 81 is reserved */
+#define XSetClipRectangles \
+ (tkIntXlibStubsPtr->xSetClipRectangles) /* 81 */
#define XParseColor \
(tkIntXlibStubsPtr->xParseColor) /* 82 */
#define XCreateGC \