/* symrad.h - A radiator simulation game. */

#ifndef SYMRAD_H_INC
#define SYMRAD_H_INC

/* ---------------------------------------------------------------------- */
/* Button stuff */
typedef struct _button {
  Display *dpy;
  XRectangle extent;
  Window win;
  int arm;
  int activate;
} *Button;

/* Function declarations */
void button_Expose(Button, XEvent *);
void button_Enter(Button, XEvent *);
void button_Leave(Button, XEvent *);
void button_Press(Button, XEvent *);
void button_Release(Button, XEvent *);
Button button_Create(Display *, Window, char *, int, int, int, int);
void button_Destroy(Button);

#define NUM_PIXES 7

/* ---------------------------------------------------------------------- */
/* Symrad stuff */
typedef struct _symrad {
  Display *dpy;
  GC gc;
  Window win;
  XRectangle extent;
  Button butt1;
  Button butt2;
  Pixmap bigpix;
  Pixmap littlepix[NUM_PIXES];
  int position;			/* Should be  0--50 */
  int desired;			/* Should be -5--55 */
} symrad_struct, *symrad_type;



#endif /* SYMRAD_H_INC */
