edelib 2.1.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List

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
26 EDELIB_NS_BEGIN
27
36 EDELIB_API unsigned int color_rgb_to_fltk(unsigned char r, unsigned char g, unsigned char b);
37
49 EDELIB_API void color_fltk_to_rgb(unsigned int color, unsigned char& r, unsigned char& g, unsigned char& b);
50
60 EDELIB_API unsigned int color_html_to_fltk(const char* col);
61
72 EDELIB_API void color_fltk_to_html(unsigned int color, char* buf);
73
84 EDELIB_API void color_rgb_to_html(unsigned char r, unsigned char g, unsigned char b, char* buf);
85
95 EDELIB_API void color_html_to_rgb(const char* buf, unsigned char& r, unsigned char& g, unsigned char& b);
96
97 EDELIB_NS_END
98 #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)