wmcore: use misc.* and list.* from libdockapp.
[dockapps.git] / wmwlmon / xutils.h
blob7796807b3b9d3f6412b9ae261a9a37f0c9cc0e62
1 /* $Id: xutils.h,v 1.4 2008/04/30 20:52:42 hacki Exp $ */
3 /*
4 * Copyright (c) 2005, 2006 Marcus Glocker <marcus@nazgul.ch>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 * prototypes
22 int flush_expose(Window);
23 void copyXPMArea(int, int, int, int, int, int);
24 void copyXBMArea(int, int, int, int, int, int);
25 void RedrawWindow(void);
26 void initXwindow(char *);
27 void openXwindow(int, char **, char **, unsigned char *, int, int);
28 unsigned long getColor(char *, float, int *, int *, int *);
29 unsigned long getBlendedColor(char *, float, int, int, int);
32 * global variables
34 Display *display;
35 Window Root;
36 Window win, iconwin;
37 int screen;
38 int DisplayDepth;
41 * typedefs
43 typedef struct {
44 Pixmap pixmap;
45 Pixmap mask;
46 XpmAttributes attributes;
47 } XpmIcon;