File: xpmicon.h

package info (click to toggle)
WMRack 1.0b3-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 424 kB
  • ctags: 260
  • sloc: ansic: 3,297; sh: 156; makefile: 109
file content (46 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * $Id: xpmicon.h,v 1.4 1997/07/12 14:11:37 ograf Exp $
 *
 * part of wmrack
 *
 * handles the whole pixmap stuff
 *
 * Copyright (c) 1997 by Oliver Graf <ograf@fga.de>
 */
#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_LED_ALPHA  7
#define RACK_MAX        8

extern XpmIcon rackXpm[];
extern int curRack;
extern char *ledAlphabet;

#define currentXpm(w) rackXpm[curRack].##w
#define ledXpm(x,w) rackXpm[x].##w

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

#endif