edelib  2.0.0
edelib/Color.h
00001 /*
00002  * $Id: Color.h 2839 2009-09-28 11:36:20Z karijes $
00003  *
00004  * Color conversion functions
00005  * Copyright (c) 2005-2009 edelib authors
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public License
00018  * along with this library. If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00021 #ifndef __EDELIB_COLOR_H__
00022 #define __EDELIB_COLOR_H__
00023 
00024 #include "edelib-global.h"
00025 
00026 EDELIB_NS_BEGIN
00027 
00036 EDELIB_API unsigned int color_rgb_to_fltk(unsigned char r, unsigned char g, unsigned char b);
00037 
00049 EDELIB_API void color_fltk_to_rgb(unsigned int color, unsigned char& r, unsigned char& g, unsigned char& b);
00050 
00060 EDELIB_API unsigned int color_html_to_fltk(const char* col);
00061 
00072 EDELIB_API void color_fltk_to_html(unsigned int color, char* buf);
00073 
00084 EDELIB_API void color_rgb_to_html(unsigned char r, unsigned char g, unsigned char b, char* buf);
00085 
00095 EDELIB_API void color_html_to_rgb(const char* buf, unsigned char& r, unsigned char& g, unsigned char& b);
00096 
00097 EDELIB_NS_END
00098 #endif