summaryrefslogtreecommitdiff
path: root/iup/src/mot/iupmot_color.h
blob: a306fd37d1b945fe04c390421084270881a91713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/** \file
 * \brief Motif Color Management
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUPMOT_COLOR_H 
#define __IUPMOT_COLOR_H

#ifdef __cplusplus
extern "C" {
#endif


/* Returns a pixel value from a RGB triple. */
extern unsigned long (* iupmotColorGetPixel)(unsigned char r, unsigned char g, unsigned char b);

/* Returns a RGB triple from a pixel value. */
extern void (* iupmotColorGetRGB)(unsigned long pixel, unsigned char *r, unsigned char *g, unsigned char *b);

/* initialize the toplevel colormap and the iupmotColorGet* functions */
void iupmotColorInit(void);
void iupmotColorFinish(void);

/* returns the toplevel colormap */
Colormap iupmotColorMap(void);

/* Returns a pixel value from a IUP color description. */
unsigned long iupmotColorGetPixelStr(const char* color);


#ifdef __cplusplus
}
#endif

#endif