File: xpmicon.h

package info (click to toggle)
wmrack 1.4-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 920 kB
  • ctags: 619
  • sloc: ansic: 3,207; sh: 152; makefile: 69
file content (43 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (7)
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
/*
 * $Id: xpmicon.h,v 1.2 2003/10/01 22:44:19 xtifr Exp $
 *
 * part of wmrack
 *
 * handles the whole pixmap stuff
 *
 * Copyright (c) 1997 by Oliver Graf <ograf@fga.de>
 */
#ifndef WMRACK_XPMICON_H_
#define WMRACK_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;

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 /* WMRACK_XPMICON_H_ */