Include mod_xrandr instead of using submodules
[notion/jeffpc.git] / de / colour.h
blob2c2b166d136d157ee7c62ef2b7c39f9ad63d527f
1 /*
2 * ion/de/colour.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_DE_COLOUR_H
10 #define ION_DE_COLOUR_H
12 #include <ioncore/common.h>
13 #include <ioncore/global.h>
14 #include <ioncore/rootwin.h>
17 INTRSTRUCT(DEColourGroup);
20 typedef unsigned long DEColour;
23 DECLSTRUCT(DEColourGroup){
24 GrStyleSpec spec;
25 DEColour bg, hl, sh, fg, pad;
29 #define DE_BLACK(rootwin) BlackPixel(ioncore_g.dpy, rootwin->xscr)
30 #define DE_WHITE(rootwin) WhitePixel(ioncore_g.dpy, rootwin->xscr)
32 bool de_init_colour_group(WRootWin *rootwin, DEColourGroup *cg);
33 bool de_alloc_colour(WRootWin *rootwin, DEColour *ret, const char *name);
34 bool de_duplicate_colour(WRootWin *rootwin, DEColour in, DEColour *out);
35 void de_free_colour_group(WRootWin *rootwin, DEColourGroup *cg);
36 void de_free_colour(WRootWin *rootwin, DEColour col);
38 #endif /* ION_DE_COLOUR_H */