/*
 * $Id: xpmicon.h,v 1.2 1997/06/04 19:41:38 ograf Exp $
 *
 * part of asrack
 *
 * handles the whole pixmap stuff
 */
#ifndef _XPMICON_H
#define _XPMICON_H

/* Xpm struct */
typedef struct {
  char *name;
  char **standart;
  int loaded;
  XpmAttributes attributes;
  Pixmap pixmap;
  Pixmap mask;
} XpmIcon;

/* the XpmIcon definitions and variables */
#define RACK_NODISC     0
#define RACK_STOP       1
#define RACK_PLAY       2
#define RACK_PAUSE      3
#define RACK_MIXER      4
#define RACK_LED_PLAYER 5
#define RACK_LED_MIXER  6
#define RACK_MAX        7

extern XpmIcon rackXpm[];
extern int curRack, curLed;

#define currentXpm(w) rackXpm[curRack].##w
#define currentLed(w) rackXpm[curLed].##w

int xpm_setDefaultAttr(Display *disp, Drawable draw, char *color);
int xpm_loadSet(Display *disp, Drawable draw, char *filename);
int xpm_setDefaultSet(Display *disp, Drawable draw, int num);
void xpm_freeSet(Display *disp);

#endif
