File: xwindow.h

package info (click to toggle)
spellcast 1.0-21
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k, jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 768 kB
  • ctags: 834
  • sloc: ansic: 7,660; makefile: 128; sh: 11
file content (323 lines) | stat: -rw-r--r-- 7,005 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
#ifndef _XWINDOW_H
#define _XWINDOW_H

/* Currently if no resolution is used it sets RES1024 */
#ifndef RES800
  #ifndef RESVAR
    #ifndef RES1024
	   #define RES1024
    #endif 
  #endif
#endif

#ifdef RES1024
/* This is to be used in a 1024x768 resolution */
#define WIN_WID 832
#define WIN_HGT 750
#define PIXMAP_SIZE (48)
/* general definitions */
#define SCROLL_W (16)
#define GEST_SIZE (48)
#define GEST_SMALL (16)
#define FRAME_SHADOW (3)


#define COLUMN_SIZE (8)
#define COLUMN_X (476)
#define COLUMN_Y (33)
#define GEST_SPACE (50)
#define X_BETWEEN_COLS (20)

/* Definitions previously in xbutton.c */
#define BBOX_X (32)
#define BBOX_Y (610)
#define BBOX_W (2)
#define BBOX_H (1)

#define BUTTON_W (150)
#define BUTTON_H (32)
#define BUTTON_CORNER (3)
#define BUTTON_SPACE (4)

/* Definitions previously in xquery.c */
#define QUERY_X  (32)
#define QUERY_Y  (642)
#define QUERY_W  (736)
#define QUERY_H  (100)
#define QUERY_AW  (450)

/* Definitions previously in xgest.c */
#define QUERY_LEADING (8)
#define QMENU_LEADING (4)
#define QMENU_BORDER (4)
#define GEST_SPACE (50)
#define X_BETWEEN_COLS (20)

/* Definitions previously in xtext.c */

#define TEXT_WID (400) 
#define TEXT_HGT (550)
#define TEXT_X (32)
#define TEXT_Y (32)

#define MAXLINESIZE (512) /* maximum number of chars that could possibly fit
			     in a line. If the player uses bits1, this will
			     probably crash. Tough. */

/* Definitions previously in xtalk.c */
#define TALK_X (380)
#define TALK_Y (610)
#define TALK_W (448)
#define TALK_LEADING (8)


/* Definitios previously in xloop.c */
#define STATS_X (476)
#define STATS_Y (449)
#define STATS_W (324)
#define STATS_H (150)
#define STATS_HP (244)



#endif

#ifdef RES800
/* This is for 800x600 */

/* Definitions previously in main.c */
#define WIN_WID 800
#define WIN_HGT 600
#define PIXMAP_SIZE (48)

/* Definitions previousy in xgest.c */
/* Define the size for the gesture history
   list. Was defined with 8 gestures */
/* Maybe we could do adjust COLUMN_SIZE 
   a bit better so it auto adjusts 
   based on the resolution (WIN_WID).
   Perhaps based on size of pixmaps 48x48?*/
#define COLUMN_SIZE (5)
#define COLUMN_X (460)
#define COLUMN_Y (33)
#define GEST_SPACE (50)
#define X_BETWEEN_COLS (20)
/* general definitions */
#define SCROLL_W (16)
#define GEST_SIZE (48)
#define GEST_SMALL (16)
#define FRAME_SHADOW (3)


/* Definitions previously in xbutton.c */
/* Defines the position and size of buttons */
#define BBOX_X (32)
#define BBOX_Y (400)
#define BBOX_W (2)
#define BBOX_H (1)

#define BUTTON_W (150)
#define BUTTON_H (32)
#define BUTTON_CORNER (3)
#define BUTTON_SPACE (4)


/* Definitions previously in xtext.c */

#define TEXT_WID (400) 
#define TEXT_HGT (350)
#define TEXT_X (32)
#define TEXT_Y (32)

#define MAXLINESIZE (512) /* maximum number of chars that could possibly fit
			     in a line. If the player uses bits1, this will
			     probably crash. Tough. */

/* Definitions previously in xquery.c */
#define QUERY_X  (32)
#define QUERY_Y  (450)
#define QUERY_W  (736)
#define QUERY_H  (100)
#define QUERY_AW  (450)

#define QUERY_LEADING (8)
#define QMENU_LEADING (4)
#define QMENU_BORDER (4)

#define GEST_SPACE (50)

/* Definitions previously in xtalk.c */
#define TALK_X (335)
#define TALK_Y (400)
#define TALK_W (430)
#define TALK_LEADING (8)


/* Definitios previously in xloop.c */
#define STATS_X (475)
#define STATS_Y (300)
#define STATS_W (300)
#define STATS_H (85)
#define STATS_HP (244)


#endif

#ifdef RESSMALL
/* Taken from patched spellcast found at */
/* This is to be used in a small resolution */
#define WIN_WID 832
#define WIN_HGT 575
#define PIXMAP_SIZE (48)
/* general definitions */
#define SCROLL_W (16)
#define GEST_SIZE (48)
#define GEST_SMALL (16)
#define FRAME_SHADOW (3)

/* Definitions previously in xgest.c */
#define COLUMN_SIZE (8)
#define COLUMN_X (426)
#define COLUMN_Y (18)
#define GEST_SPACE (50)
#define X_BETWEEN_COLS (10)



/* Definitions previously in xbutton.c */
#define BBOX_X (32)
#define BBOX_Y (426)
#define BBOX_W (2)
#define BBOX_H (1)

#define BUTTON_W (150)
#define BUTTON_H (28)
#define BUTTON_CORNER (3)
#define BUTTON_SPACE (4)

/* Definitions previously in xquery.c */
#define QUERY_X  (32)
#define QUERY_Y  (465)
#define QUERY_W  (736)
#define QUERY_H  (100)
#define QUERY_AW  (450)

#define QUERY_LEADING (8)
#define QMENU_LEADING (4)
#define QMENU_BORDER (4)

#define GEST_SPACE (50)

/* Definitions previously in xtext.c */

#define TEXT_WID (400) 
#define TEXT_HGT (332)
#define TEXT_X (18)
#define TEXT_Y (5)

#define MAXLINESIZE (512) /* maximum number of chars that could possibly fit
			     in a line. If the player uses bits1, this will
			     probably crash. Tough. */

/* Definitions previously in xtalk.c */
#define TALK_X (380)
#define TALK_Y (425)
#define TALK_W (448)
#define TALK_LEADING (8)


/* Definitios previously in xloop.c */
#define STATS_X (18)
#define STATS_Y (343)
#define STATS_W (324)
#define STATS_H (74)
#define STATS_HP (244)



#endif


#ifdef RESVAR
/* This is for other resolutions */
/* TODO: this must be intelligently done so that we can
   define WIN_WID and WIN_HGT and we get an acceptable screen */

/* Definitions previously in main.c */
#define WIN_WID 800
#define WIN_HGT 600
#define PIXMAP_SIZE (48)
/* general definitions */
#define SCROLL_W (16)
#define GEST_SIZE (48)
#define GEST_SMALL (16)
#define FRAME_SHADOW (3)


/* Definitions previousy in xgest.c */
/* Define the size for the gesture history
   list. Was defined with 8 gestures */
/* Maybe we could do adjust COLUMN_SIZE 
   a bit better so it auto adjusts 
   based on the resolution (WIN_WID).
   Perhaps based on size of pixmaps 48x48?*/
#define COLUMN_SIZE (8)
#define COLUMN_X (60+WIN_WID/2)
#define COLUMN_Y (33)
#define GEST_SPACE (50)

/* Definitions previouls in xbutton.c */
/* Defines the position and size of buttons */
#define BBOX_X (32)
#define BBOX_Y (WIN_HGT)
#define BBOX_W (2)
#define BBOX_H (1)

#define BUTTON_W (150)
#define BUTTON_H (32)
#define BUTTON_CORNER (3)
#define BUTTON_SPACE (4)


/* Definitions previously in xtext.c */

#define TEXT_WID (WIN_WID/2) 
#define TEXT_HGT (WIN_HGT*5/6)
#define TEXT_X (32)
#define TEXT_Y (32)

#define MAXLINESIZE (512) /* maximum number of chars that could possibly fit
			     in a line. If the player uses bits1, this will
			     probably crash. Tough. */

/* Definitions previously in xquery.c */
#define QUERY_X  (32)
#define QUERY_Y  (WIN_HGT+10)
#define QUERY_W  (736)
#define QUERY_H  (100)
#define QUERY_AW  (450)

#define QUERY_LEADING (8)
#define QMENU_LEADING (4)
#define QMENU_BORDER (4)
#define GEST_SPACE (50)
#define X_BETWEEN_COLS (20)

/* Definitions previously in xtalk.c */
#define TALK_X (WIN_WID/2)
#define TALK_Y (WIN_HGT*5/6+10)
#define TALK_W (448)
#define TALK_LEADING (8)


/* Definitios previously in xloop.c */
#define STATS_X (476)
#define STATS_Y (449)
#define STATS_W (324)
#define STATS_H (104)
#define STATS_HP (244)


#endif

#endif /* of ifndef XWINDOW_H */