1 /* -*- c++ -*-
2 FILE: BitmapsX.h
3 RCS REVISION: $Revision: 1.7 $
4 
5 COPYRIGHT: (c) 1999 -- 2003 Melinda Green, Don Hatch, and Jay Berkenbilt - Superliminal Software
6 
7 LICENSE: Free to use and modify for non-commercial purposes as long as the
8     following conditions are adhered to:
9     1) Obvious credit for the source of this code and the designs it embodies
10        are clearly made, and
11     2) Ports and derived versions of 4D Magic Cube programs are not distributed
12        without the express written permission of the authors.
13 
14 DESCRIPTION:
15     Bitmap information produced by the bitmap editor
16 */
17 
18 #ifndef BITMAPSX_H
19 #define BITMAPSX_H
20 
21 #define grey0_width 1
22 #define grey0_height 1
23 static unsigned char grey0_bits[] = {
24     0x00
25 };
26 
27 #define grey6_width 4
28 #define grey6_height 4
29 static unsigned char grey6_bits[] = {
30     0x01, 0x00, 0x00, 0x00
31 };
32 
33 #define grey12_width 4
34 #define grey12_height 4
35 static unsigned char grey12_bits[] = {
36     0x01, 0x00, 0x04, 0x00
37 };
38 
39 #define grey25_width 2
40 #define grey25_height 2
41 static unsigned char grey25_bits[] = {
42     0x01, 0x00
43 };
44 
45 #define grey50_width 2
46 #define grey50_height 2
47 static unsigned char grey50_bits[] = {
48     0x01, 0x02
49 };
50 
51 #define grey75_width 2
52 #define grey75_height 2
53 static unsigned char grey75_bits[] = {
54     0x03, 0x02
55 };
56 
57 #define grey88_width 4
58 #define grey88_height 4
59 static unsigned char grey88_bits[] = {
60     0xfe, 0xff, 0xfb, 0xff
61 };
62 
63 #define grey94_width 4
64 #define grey94_height 4
65 static unsigned char grey94_bits[] = {
66     0xfe, 0xff, 0xff, 0xff
67 };
68 
69 #define grey100_width 1
70 #define grey100_height 1
71 static unsigned char grey100_bits[] = {
72     0x01
73 };
74 
75 #define horiz_width 1
76 #define horiz_height 2
77 static unsigned char horiz_bits[] = {
78     0x01, 0x00
79 };
80 
81 #define diag0_width 4
82 #define diag0_height 4
83 static unsigned char diag0_bits[] = {
84     0x0c, 0x06, 0x03, 0x09
85 };
86 
87 #define diag1_width 4
88 #define diag1_height 4
89 static unsigned char diag1_bits[] = {
90     0x09, 0x03, 0x06, 0x0c
91 };
92 
93 #define littlediags_width 6
94 #define littlediags_height 6
95 static unsigned char littlediags_bits[] = {
96     0xfb, 0xfd, 0xfe, 0xf7, 0xef, 0xdf
97 };
98 
99 #define ovals_width 6
100 #define ovals_height 6
101 static unsigned char ovals_bits[] = {
102     0xfc, 0xfa, 0xf9, 0xcf, 0xd7, 0xe7
103 };
104 
105 #define thindiag1_width 5
106 #define thindiag1_height 5
107 static unsigned char thindiag1_bits[] = {
108     0xfe, 0xfd, 0xfb, 0xf7, 0xef
109 };
110 
111 #define WHATEVER(name) {name##_width, name##_height, name##_bits}
112 
113 static struct
114 {
115     int         width, height;
116     unsigned char *bits;
117 }
118 stippleinfo[] =
119 {
120     WHATEVER(grey100),
121     WHATEVER(littlediags),
122     WHATEVER(grey94),
123     WHATEVER(ovals),
124     WHATEVER(thindiag1),
125     WHATEVER(grey75),
126     WHATEVER(diag0),
127     WHATEVER(grey50),
128     WHATEVER(grey88),
129     WHATEVER(grey25),
130     WHATEVER(horiz),
131     WHATEVER(diag1),
132     WHATEVER(grey6),
133     WHATEVER(grey12),
134     WHATEVER(grey0),
135 };
136 static Pixmap stipple_pixmaps[8];
137 
138 #endif
139 
140 // Local Variables:
141 // c-basic-offset: 4
142 // c-comment-only-line-offset: 0
143 // c-file-offsets: ((defun-block-intro . +) (block-open . 0) (substatement-open . 0) (statement-cont . +) (statement-case-open . +4) (arglist-intro . +) (arglist-close . +) (inline-open . 0))
144 // indent-tabs-mode: nil
145 // End:
146