2018-05-12 16:03:00 +00:00
|
|
|
/*
|
2009-07-28 21:44:22 +00:00
|
|
|
*
|
|
|
|
* Conky, a system monitor, based on torsmo
|
2009-02-22 16:53:30 +00:00
|
|
|
*
|
|
|
|
* Any original torsmo code is licensed under the BSD license
|
|
|
|
*
|
|
|
|
* All code written since the fork of torsmo is licensed under the GPL
|
|
|
|
*
|
|
|
|
* Please see COPYING for details
|
|
|
|
*
|
|
|
|
* Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
|
2018-05-12 16:03:00 +00:00
|
|
|
* Copyright (c) 2005-2018 Brenden Matthews, Philip Kovacs, et. al.
|
2009-02-22 16:53:30 +00:00
|
|
|
* (see AUTHORS)
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef _COLOURS_H
|
|
|
|
#define _COLOURS_H
|
|
|
|
|
2018-05-12 16:03:00 +00:00
|
|
|
#include <string>
|
|
|
|
|
2009-08-07 07:24:24 +00:00
|
|
|
unsigned int adjust_colours(unsigned int);
|
2010-01-04 04:50:02 +00:00
|
|
|
unsigned long *do_gradient(int, unsigned long, unsigned long);
|
|
|
|
|
2010-02-28 11:26:18 +00:00
|
|
|
long get_x11_color(const std::string &colour);
|
|
|
|
// XXX: when everyone uses C++ strings, remove this C version
|
2010-01-04 04:50:02 +00:00
|
|
|
long get_x11_color(const char *);
|
|
|
|
|
2009-02-22 16:53:30 +00:00
|
|
|
#endif /* _COLOURS_H */
|