comparison pkg-src/tree-x/dissolve.h @ 167:85ec50267440 r20-3b10

Import from CVS: tag r20-3b10
author cvs
date Mon, 13 Aug 2007 09:45:46 +0200
parents 0132846995bd
children 15872534500d
comparison
equal deleted inserted replaced
166:7a77eb660975 167:85ec50267440
7 #define NUM_LINE_STEPS 4 7 #define NUM_LINE_STEPS 4
8 8
9 #define first_width 16 9 #define first_width 16
10 #define first_height 16 10 #define first_height 16
11 11
12 static char first_bits[] = { 12 static unsigned char first_bits[] = {
13 0x88, 0x04, 0x00, 0x80, 0x20, 0x10, 0x00, 0x81, 0x12, 0x00, 0x00, 0x00, 13 0x88, 0x04, 0x00, 0x80, 0x20, 0x10, 0x00, 0x81, 0x12, 0x00, 0x00, 0x00,
14 0x00, 0x02, 0x82, 0x40, 0x00, 0x00, 0x12, 0x14, 0x00, 0x00, 0x0a, 0x28, 14 0x00, 0x02, 0x82, 0x40, 0x00, 0x00, 0x12, 0x14, 0x00, 0x00, 0x0a, 0x28,
15 0x40, 0x01, 0x05, 0x00, 0xa0, 0x92, 0x08, 0x00 }; 15 0x40, 0x01, 0x05, 0x00, 0xa0, 0x92, 0x08, 0x00 };
16 #define second_width 16 16 #define second_width 16
17 #define second_height 16 17 #define second_height 16
18 18
19 static char second_bits[] = { 19 static unsigned char second_bits[] = {
20 0x51, 0x20, 0x04, 0x02, 0x00, 0x88, 0x02, 0x00, 0x08, 0x09, 0x40, 0x00, 20 0x51, 0x20, 0x04, 0x02, 0x00, 0x88, 0x02, 0x00, 0x08, 0x09, 0x40, 0x00,
21 0x04, 0x04, 0x00, 0xa0, 0x80, 0x08, 0x08, 0x00, 0x00, 0xa8, 0x00, 0x00, 21 0x04, 0x04, 0x00, 0xa0, 0x80, 0x08, 0x08, 0x00, 0x00, 0xa8, 0x00, 0x00,
22 0x28, 0x28, 0x00, 0x80, 0x01, 0x00, 0x10, 0x82 }; 22 0x28, 0x28, 0x00, 0x80, 0x01, 0x00, 0x10, 0x82 };
23 #define third_width 16 23 #define third_width 16
24 #define third_height 16 24 #define third_height 16
25 25
26 static char third_bits[] = { 26 static unsigned char third_bits[] = {
27 0x00, 0x01, 0x12, 0x44, 0x00, 0x01, 0x00, 0x08, 0x00, 0x42, 0x2a, 0x08, 27 0x00, 0x01, 0x12, 0x44, 0x00, 0x01, 0x00, 0x08, 0x00, 0x42, 0x2a, 0x08,
28 0x80, 0x00, 0x04, 0x10, 0x01, 0x04, 0x00, 0x80, 0xa9, 0x04, 0x00, 0x00, 28 0x80, 0x00, 0x04, 0x10, 0x01, 0x04, 0x00, 0x80, 0xa9, 0x04, 0x00, 0x00,
29 0x00, 0x10, 0x0a, 0x05, 0x40, 0x00, 0x00, 0x50 }; 29 0x00, 0x10, 0x0a, 0x05, 0x40, 0x00, 0x00, 0x50 };
30 #define fourth_width 16 30 #define fourth_width 16
31 #define fourth_height 16 31 #define fourth_height 16
32 32
33 static char fourth_bits[] = { 33 static unsigned char fourth_bits[] = {
34 0x02, 0x88, 0x80, 0x00, 0x04, 0x40, 0x11, 0x02, 0x40, 0x90, 0x05, 0x00, 34 0x02, 0x88, 0x80, 0x00, 0x04, 0x40, 0x11, 0x02, 0x40, 0x90, 0x05, 0x00,
35 0x00, 0x08, 0x11, 0x01, 0x40, 0x00, 0x00, 0x41, 0x14, 0x00, 0x00, 0x12, 35 0x00, 0x08, 0x11, 0x01, 0x40, 0x00, 0x00, 0x41, 0x14, 0x00, 0x00, 0x12,
36 0x10, 0x00, 0x40, 0x40, 0x08, 0x00, 0xa0, 0x04 }; 36 0x10, 0x00, 0x40, 0x40, 0x08, 0x00, 0xa0, 0x04 };
37 #define fifth_width 16 37 #define fifth_width 16
38 #define fifth_height 16 38 #define fifth_height 16
39 39
40 static char fifth_bits[] = { 40 static unsigned char fifth_bits[] = {
41 0x24, 0x00, 0x00, 0x08, 0x09, 0x20, 0x20, 0x04, 0x00, 0x00, 0x00, 0x85, 41 0x24, 0x00, 0x00, 0x08, 0x09, 0x20, 0x20, 0x04, 0x00, 0x00, 0x00, 0x85,
42 0x10, 0x20, 0x40, 0x02, 0x14, 0x40, 0x00, 0x08, 0x02, 0x01, 0x10, 0x40, 42 0x10, 0x20, 0x40, 0x02, 0x14, 0x40, 0x00, 0x08, 0x02, 0x01, 0x10, 0x40,
43 0x04, 0x04, 0x20, 0x20, 0x00, 0x00, 0x42, 0x29 }; 43 0x04, 0x04, 0x20, 0x20, 0x00, 0x00, 0x42, 0x29 };
44 #define sixth_width 16 44 #define sixth_width 16
45 #define sixth_height 16 45 #define sixth_height 16
46 46
47 static char sixth_bits[] = { 47 static unsigned char sixth_bits[] = {
48 0x00, 0x12, 0x28, 0x00, 0x02, 0x00, 0x88, 0x00, 0x01, 0x20, 0x90, 0x02, 48 0x00, 0x12, 0x28, 0x00, 0x02, 0x00, 0x88, 0x00, 0x01, 0x20, 0x90, 0x02,
49 0x01, 0x50, 0x20, 0x04, 0x08, 0xa0, 0x41, 0x00, 0x00, 0x00, 0x24, 0x05, 49 0x01, 0x50, 0x20, 0x04, 0x08, 0xa0, 0x41, 0x00, 0x00, 0x00, 0x24, 0x05,
50 0x00, 0x80, 0x00, 0x10, 0x10, 0x40, 0x05, 0x00 }; 50 0x00, 0x80, 0x00, 0x10, 0x10, 0x40, 0x05, 0x00 };
51 #define seventh_width 16 51 #define seventh_width 16
52 #define seventh_height 16 52 #define seventh_height 16
53 53
54 static char seventh_bits[] = { 54 static unsigned char seventh_bits[] = {
55 0x00, 0x40, 0x01, 0x10, 0x90, 0x02, 0x00, 0x50, 0xa4, 0x04, 0x00, 0x20, 55 0x00, 0x40, 0x01, 0x10, 0x90, 0x02, 0x00, 0x50, 0xa4, 0x04, 0x00, 0x20,
56 0x20, 0x80, 0x08, 0x08, 0x00, 0x01, 0x04, 0x00, 0x40, 0x52, 0x00, 0x00, 56 0x20, 0x80, 0x08, 0x08, 0x00, 0x01, 0x04, 0x00, 0x40, 0x52, 0x00, 0x00,
57 0x81, 0x42, 0x10, 0x00, 0x04, 0x25, 0x00, 0x00 }; 57 0x81, 0x42, 0x10, 0x00, 0x04, 0x25, 0x00, 0x00 };
58 #define eighth_width 16 58 #define eighth_width 16
59 #define eighth_height 16 59 #define eighth_height 16
60 60
61 static char eighth_bits[] = { 61 static unsigned char eighth_bits[] = {
62 0x00, 0x00, 0x40, 0x21, 0x40, 0x04, 0x44, 0x20, 0x00, 0x00, 0x00, 0x50, 62 0x00, 0x00, 0x40, 0x21, 0x40, 0x04, 0x44, 0x20, 0x00, 0x00, 0x00, 0x50,
63 0x4a, 0x01, 0x00, 0x00, 0x22, 0x12, 0xa0, 0x22, 0x00, 0x00, 0xc1, 0x80, 63 0x4a, 0x01, 0x00, 0x00, 0x22, 0x12, 0xa0, 0x22, 0x00, 0x00, 0xc1, 0x80,
64 0x02, 0x00, 0x80, 0x0a, 0x02, 0x08, 0x00, 0x00 }; 64 0x02, 0x00, 0x80, 0x0a, 0x02, 0x08, 0x00, 0x00 };
65
66 void
67 InitializeDissolveEffect(Display *dpy,
68 Drawable drawable,
69 int fg_pixel,
70 int bg_pixel);
71
72 void
73 DissolveTree(Display *dpy,
74 Window drawable,
75 XRectangle rectangles[],
76 int nrectangles,
77 XSegment segments[],
78 int nsegments,
79 int mode);