/*
 *  XLeScrabble - X version of the popular board game, in french and
 *  for 1 to 4 players.
 *
 * This software comes with NO warranty whatsoever. I therefore take no
 * responsibility for any damages, losses or problems caused through use
 * or misuse of this program.
 *
 * I hereby grant permission for this program to be freely copied and
 * distributed by any means, provided no charge is made for it.
 *
 * Matthew Chapman, csuoq@csv.warwick.ac.uk
 *    Apr 1995.
 */

/* xutils.h - header for reuseable X functions */

#ifndef XUTILS_H
#define XUTILS_H

/* closeness value for ReadPixmap calls */
#define CLOSENESS 40000

#define SETBG(x) XtVaTypedArg,XtNbackground,XtRString,x,strlen((char *)x)+1

void load_file_pixmap(char *fname, Pixmap *xpm,Widget top);
void load_data_pixmap(char **dname, Pixmap *xpm,Widget top);
void set_icon_pixmap(char **dname,Widget top);
void acceptQuitPre(Widget top);
void acceptQuitPost(Widget top);
void fit_on_screen(Widget top,Position *x,Position *y, int w, int h,
	int horizB,int vertB);

void SetBusy(Widget top);
void ClearBusy(Widget top);

#endif
