Main Page | Data Structures | Directories | File List | Data Fields | Globals

lcx11.h

Go to the documentation of this file.
00001 /* ---------------------------------------------------------------------- *
00002  * lcx11.h
00003  * This file is part of lincity.
00004  * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001.
00005  * ---------------------------------------------------------------------- */
00006 #ifndef __lcx11_h__
00007 #define __lcx11_h__
00008 
00009 #include "lin-city.h"
00010 
00011 #define TRUE 1
00012 #define FALSE 0
00013 
00014 #if defined (commentout)
00015 #define MOUSE_LEFTBUTTON Button1
00016 #define MOUSE_MIDDLEBUTTON Button2
00017 #define MOUSE_RIGHTBUTTON Button3
00018 #endif
00019 
00020 #define WINWIDTH 640            /* default window width */
00021 #define WINHEIGHT 480           /* default window height */
00022 
00023 
00024 /* Type Definitions */
00025 typedef struct _disp
00026 {
00027     Display *dpy;
00028     int screen;
00029     char *dname;
00030 
00031     Window win;
00032     Window confinewin;
00033     Window root;
00034 
00035     unsigned int winH;
00036     unsigned int winW;
00037 
00038     long bg;                    /* colors */
00039     XColor bg_xcolor;
00040     GC pixcolour_gc[256];
00041     Atom kill_atom, protocol_atom;
00042     Colormap cmap;
00043 
00044     int pointer_confined;
00045 }
00046 disp;
00047 
00048 extern int winX, winY, mouse_button, cs_mouse_shifted;
00049 extern disp display;
00050 
00051 extern char *bg_color;
00052 extern int verbose;
00053 extern int pix_double;
00054 extern int text_bg;
00055 extern int text_fg;
00056 extern int x_key_value;
00057 extern int x_key_shifted;
00058 extern int borderx, bordery;
00059 extern long unsigned int colour_table[256];
00060 extern int xclip_x1, xclip_y1, xclip_x2, xclip_y2, clipping_flag;
00061 extern unsigned char *open_font;
00062 extern int open_font_height;
00063 extern int suppress_next_expose;
00064 extern int cs_mouse_x, cs_mouse_y;
00065 extern float gamma_correct_red, gamma_correct_green, gamma_correct_blue;
00066 extern Cursor pirate_cursor;
00067 
00068 void parse_xargs (int, char **, char **);
00069 void set_pointer_confinement (void);
00070 void do_setcustompalette (XColor *);
00071 void Create_Window (char *);
00072 void HandleError (char *, int);
00073 void HandleEvent (XEvent *);
00074 void refresh_screen (int, int, int, int);
00075 void my_x_putchar (int, int, unsigned char);
00076 void open_x_putchar (int, int, unsigned char);
00077 void do_call_event (int);
00078 void call_event (void);
00079 void call_wait_event (void);
00080 void open_setcustompalette (XColor *);
00081 void drag_screen(void); /* WCK */
00082 void draw_border (void);
00083 void init_x_mouse (void);
00084 
00085 int lc_get_keystroke (void);
00086 
00087 #ifdef USE_PIXMAPS
00088 extern Pixmap icon_pixmap[];
00089 #endif
00090 
00091 #endif /* __lcx11_h__ */

Generated on Sun Dec 26 11:23:25 2004 for lincity by  doxygen 1.3.9.1