/* definition of all useful globals for xV_visu application
	declaration in drv.c to clean up the main programm */

	Display *display;
	Window E_window;
	Window T_window;
	Window V_window;
	Window I_window;
	Window C_window;
	Window M_window;
	XRectangle V_I_pos;
	XEvent V_event;
	Colormap V_cmap;
	int V_depth,V_class;
	int V_width, V_height ;
	Visual *V_vis;
	int V_screen;
	/* these variables are comming from the V_colors.c file */
	int V_colors[CMAPSIZE];
	char *V_colorName[CMAPSIZE] = {
								"tan", /*tan*/			/* nwell */
								"light yellow",	/*coral*/				/* pwell */
								"spring green",					/* ntie */
								"light goldenrod",					/* ptie */
								"lawn green",		/* ndif */
								"yellow",					/* pdif */
								"orange",					/* gate */
								"red",						/* poly */
								"light pink",					/* tpoly */
								"royal blue",					/* alu1 */
								"light steel blue",	/* talu1 */
								"dark violet",					/* c_poly */
								"gold",		/* c_difn */
								"medium aquamarine",		/* c_difp */
								"goldenrod",					/* c_bodyn */
								"medium turquoise",					/* c_bodyp */
								"Cyan",						/* alu2 */
								"light cyan",		/* talu2 */
								"deep sky blue",					/* c_via */
								"peach puff", 			/* alu3 */
								"bisque",			 /* talu3 */
								"chocolate",					/* c_via_2 */
								"coral", 			/* ref */
								"White",						/* instance */
								"saddle brown",					/* default */
								"White",					/* fgnd */
								"Black",					/* bgnd */
								"Wheat",					/*M_BGND*/
								"Dodger Blue",			/*ICON*/
								"yellow",					/*ICON_TEXT*/
								"yellow",					/*ICON_INV*/
								"Dodger Blue",			/*ICON_TEXT_INV*/
								"Black",					/*TEXT*/
								"cyan", 						/* button */
								"sea green" 						/* button */
	};

	Pixmap V_PixSave;
	GC V_gcCao[GC_FGND + 1];
	GC V_gcBox, C_gcV1, C_gcV2, C_gcV3, C_gcV4;;
	Font V_vr[6]; /* font for textual output */
	char *V_fontName[] = {
								"6x10",
								"9x15",
								"9x15",
								"9x15",
								"9x15",
								"9x15"
	};
	Font V_menuFont;

/* as it is many times used, the V_windows size attributes
	are passed to global variables. */
	PIXEL V_xWin,V_yWin,dxWin,dyWin;
	PIXEL V_xZoom,V_yZoom,V_dxZoom,V_dyZoom;
	LAMBDA dxChip,dyChip;

/* Some constants for scaling purposes */
	float V_factor = 5;
	int V_fact = 5;
	PIXEL V_pixDep = 16; /* scrolling is considered in terms of lambda */
	YRectangle *V_icon_pos; /* icon position for menu */
	int M_id; /* Message id */
