Logo Search packages:      
Sourcecode: ion3 version File versions  Download package


 * ion/de/colour.h
 * Copyright (c) Tuomo Valkonen 1999-2007. 
 * Ion is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.


#include <ioncore/common.h>
#include <ioncore/global.h>
#include <ioncore/rootwin.h>


typedef unsigned long DEColour;

    GrStyleSpec spec;
    DEColour bg, hl, sh, fg, pad;

#define DE_BLACK(rootwin) BlackPixel(ioncore_g.dpy, rootwin->xscr)
#define DE_WHITE(rootwin) WhitePixel(ioncore_g.dpy, rootwin->xscr)

bool de_init_colour_group(WRootWin *rootwin, DEColourGroup *cg);
bool de_alloc_colour(WRootWin *rootwin, DEColour *ret, const char *name);
bool de_duplicate_colour(WRootWin *rootwin, DEColour in, DEColour *out);
void de_free_colour_group(WRootWin *rootwin, DEColourGroup *cg);
void de_free_colour(WRootWin *rootwin, DEColour col);

#endif /* ION_DE_COLOUR_H */

Generated by  Doxygen 1.6.0   Back to index