Color.h
/*
* $Id: Color.h 2839 2009-09-28 11:36:20Z karijes $
*
* Color conversion functions
* Copyright (c) 2005-2009 edelib authors
*
* This library 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 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_COLOR_H__
#define __EDELIB_COLOR_H__
#include "edelib-global.h"
EDELIB_NS_BEGIN
EDELIB_API unsigned int color_rgb_to_fltk(unsigned char r, unsigned char g, unsigned char b);
EDELIB_API void color_fltk_to_rgb(unsigned int color, unsigned char& r, unsigned char& g, unsigned char& b);
EDELIB_API unsigned int color_html_to_fltk(const char* col);
EDELIB_API void color_fltk_to_html(unsigned int color, char* buf);
EDELIB_API void color_rgb_to_html(unsigned char r, unsigned char g, unsigned char b, char* buf);
EDELIB_API void color_html_to_rgb(const char* buf, unsigned char& r, unsigned char& g, unsigned char& b);
EDELIB_NS_END
#endif
edelib::color_rgb_to_fltk
unsigned int color_rgb_to_fltk(unsigned char r, unsigned char g, unsigned char b)
edelib::color_html_to_rgb
void color_html_to_rgb(const char *buf, unsigned char &r, unsigned char &g, unsigned char &b)
edelib::color_fltk_to_rgb
void color_fltk_to_rgb(unsigned int color, unsigned char &r, unsigned char &g, unsigned char &b)
edelib::color_html_to_fltk
unsigned int color_html_to_fltk(const char *col)
edelib::color_rgb_to_html
void color_rgb_to_html(unsigned char r, unsigned char g, unsigned char b, char *buf)
edelib::color_fltk_to_html
void color_fltk_to_html(unsigned int color, char *buf)