edelib 2.1.0
Color.h
1/*
2 * $Id: Color.h 2839 2009-09-28 11:36:20Z karijes $
3 *
4 * Color conversion functions
5 * Copyright (c) 2005-2009 edelib authors
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __EDELIB_COLOR_H__
22#define __EDELIB_COLOR_H__
23
24#include "edelib-global.h"
25
26EDELIB_NS_BEGIN
27
36EDELIB_API unsigned int color_rgb_to_fltk(unsigned char r, unsigned char g, unsigned char b);
37
49EDELIB_API void color_fltk_to_rgb(unsigned int color, unsigned char& r, unsigned char& g, unsigned char& b);
50
60EDELIB_API unsigned int color_html_to_fltk(const char* col);
61
72EDELIB_API void color_fltk_to_html(unsigned int color, char* buf);
73
84EDELIB_API void color_rgb_to_html(unsigned char r, unsigned char g, unsigned char b, char* buf);
85
95EDELIB_API void color_html_to_rgb(const char* buf, unsigned char& r, unsigned char& g, unsigned char& b);
96
97EDELIB_NS_END
98#endif
void color_rgb_to_html(unsigned char r, unsigned char g, unsigned char b, char *buf)
unsigned int color_rgb_to_fltk(unsigned char r, unsigned char g, unsigned char b)
unsigned int color_html_to_fltk(const char *col)
void color_fltk_to_rgb(unsigned int color, unsigned char &r, unsigned char &g, unsigned char &b)
void color_fltk_to_html(unsigned int color, char *buf)
void color_html_to_rgb(const char *buf, unsigned char &r, unsigned char &g, unsigned char &b)