UNIVERS
15.3
UNIVERS base processing software API
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
zm
colors.h
1
/* colors.h */
2
/* $Id: colors.h,v 1.7 2005/09/28 10:00:49 vlad Exp $ */
3
#ifndef __colors_h
4
#define __colors_h
5
6
/***********************************************************************
7
* Средства для работы с цветами и палитрами. *
8
* ZCP - Z module for dealing with colors & palettes *
9
* *
10
* Public part *
11
***********************************************************************/
12
13
#include <X11/Xlib.h>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
/* __cplusplus */
18
19
25
#define ZCP_MAX_COLOR_DIST_ENV "ZCPDISTANCE"
26
31
#define ZCP_ALL_COLORS_PAL "Colors"
32
38
#define ZCP_COLORNAME_LEN 20
39
45
#define ZCP_PALETTENAME_LEN 20
46
47
52
void
zcp_init (Display* dpy);
53
54
61
unsigned
long
zcp_color_pixel (
const
char
* colorName);
62
63
72
unsigned
long
zcp_rgb_pixel (
float
rgb[3]);
73
74
84
int
zcp_color_to_rgb (
const
char
* colorName,
float
rgb[3]);
85
86
95
const
char
* zcp_rgb_to_color (
float
rgb[3]);
96
97
106
int
zcp_get_palette (
const
char
* palName,
107
unsigned
long
** pixels);
108
117
int
zcp_list_colors (
const
char
* palName,
118
char
*** colorNames);
119
124
int
zcp_list_palette (
char
*** palList);
125
126
127
#ifdef __cplusplus
128
};
129
#endif
/* __cplusplus */
130
131
#endif
/* colors.h */
Generated by
1.8.5