File: picture.h

package info (click to toggle)
xpuzzles 7.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,208 kB
  • sloc: ansic: 94,274; makefile: 7,477; sh: 3,221
file content (42 lines) | stat: -rw-r--r-- 1,446 bytes parent folder | download | duplicates (40)
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
/*
 * @(#)picture.h
 *
 * Taken from xlock, many authors...
 *
 * All rights reserved.
 *
 * Permission to use, copy, modify, and distribute this software and
 * its documentation for any purpose and without fee is hereby granted,
 * provided that the above copyright notice appear in all copies and
 * that both that copyright notice and this permission notice appear in
 * supporting documentation, and that the name of the author not be
 * used in advertising or publicity pertaining to distribution of the
 * software without specific, written prior permission.
 *
 * This program is distributed in the hope that it will be "useful",
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

/* Header file for picture */

#ifndef _picture_h
#define _picture_h

#define IS_NONE 0
#define IS_XBMDONE 1            /* Only need one mono image */
#define IS_XBM 2
#define IS_XBMFILE 3
#define IS_XPM 4
#define IS_XPMFILE 5
/* These are not here but can be stolen from xlock later. */
#define IS_RASTERFILE 6
#define IS_MAGICKFILE 7

extern Bool fixedColors(Visual *visual, int depth, Bool install);
extern Bool getImage(Display *display, Window window, Visual *visual,
	Colormap colormap, int depth, XImage ** picture, char *filename,
	Bool install, int *graphicsFormat, Colormap *ncm);
extern void destroyImage(XImage **picture, int *graphicsFormat);

#endif /* _picture_h */