extern  Display *display;
extern  Window V_window;
extern  Window   I_window;
extern  Window   C_window;
extern  Window   T_window;
extern  Window   E_window;
extern  Window   M_window;
extern  XRectangle V_I_pos;
extern  XEvent V_event;
extern  Colormap V_cmap;
extern  int V_depth,V_class;
extern  int V_width,V_height;
extern  Visual *V_vis;
extern  int V_screen;
extern  int V_colors[];
extern  char *V_colorName[];
extern  Pixmap V_PixSave;
extern  GC V_gcCao[];
extern  Font V_vr[];
extern  Font V_menuFont;
extern  char *V_fontName[] ;
extern  Pixmap V_icon[];
extern  GC V_gcMenu;
extern  PIXEL V_xWin,V_yWin,dxWin,dyWin;
extern  PIXEL V_xZoom,V_yZoom,V_dxZoom,V_dyZoom;
extern  LAMBDA dxChip,dyChip;
extern  float scale;
extern  float V_oldscale;
extern  float V_factor;
extern  int V_fact;
extern  PIXEL V_pixDep;
extern  int M_id;

extern GC C_gcIcon,C_gcIconInv,C_gcBgnd, C_gcTextPop;
extern GC C_gcIconText,C_gcIconTextInv,C_gcText;
extern int C_ObjectColor[];
struct C_Config { 	/* 1:select, 0:unselect */
	int	C_VISIBLE;	/* code visibily in define order, bitwise */
	int	C_SCROLL;	/* 0 < SCROLL < 100	*/
	int	C_VIEW;		/* 0:fill;1:pattern;2:outline */
	int	C_PEEK;		/* 0:fill;1:pattern;2:outline */

};
extern struct C_Config C_Config_List;
typedef struct {
	short x, y;
	unsigned short width, height;
	short t; /* useful in drawing text in rectangle */
} YRectangle;
extern  YRectangle *V_icon_pos;
