Mapper
test_clip.c
Go to the documentation of this file.
1 
2 #include "prototypes.h"
3 
4 
5 void test_clip(Pixmap pixm)
6 
7 {
8 
9 Region region;
10 XPoint point[5];
11 extern Display *display;
12 extern GC gc;
13 int i;
14 
15 point[0].x=0;
16 point[0].y=0;
17 point[0].x=500;
18 point[0].y=500;
19 point[0].x=-250;
20 point[0].y=250;
21 
22 printf("into testclip\n");
23 /*
24 for(i=0;i<50;i++) {
25 */
26 region=XPolygonRegion(point,3,WindingRule);
27 XSetRegion(display,gc,region);
28 XDestroyRegion(region);
29 
30 XFillPolygon(display,pixm,gc,point,3,Complex,
31  CoordModeOrigin);
32 
33 
34 XSetClipMask(display,gc,None);
35 /*
36 
37 }
38 */
39 printf("testclip finished\n");
40 }
41 
42 
static int i
Display * display
Definition: mapper.c:159
printf("fbuf is %s\n", fbuf)
Region region
Definition: mapper.c:170
GC gc
Definition: mapper.c:163
Definition: mapp2h.h:29
int y
Definition: mapp2h.h:30
int x
Definition: mapp2h.h:30
void test_clip(Pixmap pixm)
Definition: test_clip.c:5