ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/crossedit/Defines.h
Revision: 1.1
Committed: Fri Feb 3 07:11:43 2006 UTC (18 years, 3 months ago) by root
Content type: text/plain
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# User Rev Content
1 root 1.1
2     #ifndef _Defines_h_
3     #define _Defines_h_
4    
5     #include <Posix.h>
6     #include <X11/Intrinsic.h>
7     #include <global.h>
8    
9     #ifndef CrossEdit
10     #define CrossEdit
11     #endif
12    
13     extern int FontSize;
14    
15     #define WIZARD_MODE
16    
17     #define STACK_SIZE 40
18     #define STACK_MIN 4
19     #define STACK_MAX 12
20     #define MAPLIST_SIZE 10
21     #define STYPELIST_SIZE 10
22     #define FILENAME_SIZE PATH_MAX
23    
24     #ifndef NeXT
25     #define EXIT_FAILURE 1
26     #endif
27    
28     /*
29     * Map size limits
30     */
31     #define MapMinWidth 1
32     #define MapMinHeight 1
33     #define MapMaxWidth 100
34     #define MapMaxHeight 100
35    
36     #define AppClass "Crossedit"
37    
38     typedef struct _Edit *Edit;
39     typedef struct _App *App;
40     typedef struct _Attr *Attr;
41     typedef struct _MapAttr *MapAttr;
42    
43     typedef struct mapdef *Map;
44    
45     extern enum DisplayMode displaymode;
46    
47     /*typedef struct obj *Object;*/
48    
49     /* temporary kludge */
50    
51     extern object *MapGetObjectZ (Map, int, int, int);
52     extern object *MapGetRealObject (Map, int, int, int);
53     #if 0
54     extern void MapInsertObjectZ(Map,object *, int, int, int);
55     #endif
56     extern void InitializeColors (Display *dpy);
57     extern object *object_create_arch (archetype *);
58    
59     extern XColor discolor[];
60    
61     void CrEditSelect(Widget w,XRectangle rect);
62    
63     #define XDRAWIMAGESTRING(disp,win,gc,x,y,str,len) \
64     XDrawImageString16(disp,win,gc,x,y,str,len)
65     #define FontindexToXChar(s) fontindex_to_XChar2b(s)
66     #define XCharToFontindex(s) ((Fontindex) ((s).byte1*256 + (s).byte2))
67    
68     #ifndef XChar2b
69     typedef XChar2b XChar;
70     #endif
71    
72     enum DisplayMode {Dm_Png};
73    
74     /* Useful macro */
75     #define HAS_COLOUR(widg) (PlanesOfScreen(XtScreen(widg)) > 1)
76    
77     #endif
78    
79    
80     /*** end of Defines.h ***/
81