1994-09-19 09:50:07 +00:00
|
|
|
#ifndef __COLORS_H
|
|
|
|
#define __COLORS_H
|
|
|
|
|
1998-03-05 13:54:51 +00:00
|
|
|
#ifndef __STDTYPES_H
|
|
|
|
#include <stdtypes.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef XVT_INCL_XVT
|
1995-01-02 09:33:00 +00:00
|
|
|
#include <xvt.h>
|
1996-11-12 14:53:09 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
COLOR RGB2COLOR(unsigned char red, unsigned char green, unsigned char blue);
|
|
|
|
COLOR choose_color(COLOR col = COLOR_BLACK, WINDOW win = NULL_WIN);
|
2003-03-11 09:17:38 +00:00
|
|
|
COLOR blend_colors(COLOR col1, COLOR col2, double perc = 0.5);
|
2007-02-23 08:17:38 +00:00
|
|
|
COLOR grayed_color(COLOR col);
|
2003-05-13 15:12:54 +00:00
|
|
|
unsigned int color_distance(COLOR col1, COLOR col2);
|
1995-01-02 09:33:00 +00:00
|
|
|
|
1994-09-19 09:50:07 +00:00
|
|
|
extern COLOR MASK_BACK_COLOR;
|
1995-01-03 14:19:41 +00:00
|
|
|
extern COLOR MASK_LIGHT_COLOR;
|
|
|
|
extern COLOR MASK_DARK_COLOR;
|
1996-08-08 15:46:57 +00:00
|
|
|
extern COLOR BTN_BACK_COLOR;
|
|
|
|
extern COLOR BTN_LIGHT_COLOR;
|
|
|
|
extern COLOR BTN_DARK_COLOR;
|
1995-10-25 09:43:56 +00:00
|
|
|
extern COLOR TOOL_BACK_COLOR;
|
1994-09-19 09:50:07 +00:00
|
|
|
extern COLOR NORMAL_COLOR;
|
|
|
|
extern COLOR NORMAL_BACK_COLOR;
|
|
|
|
extern COLOR DISABLED_COLOR;
|
|
|
|
extern COLOR DISABLED_BACK_COLOR;
|
|
|
|
extern COLOR FOCUS_COLOR;
|
|
|
|
extern COLOR FOCUS_BACK_COLOR;
|
2003-01-07 12:20:49 +00:00
|
|
|
extern COLOR REQUIRED_BACK_COLOR;
|
|
|
|
|
2003-05-26 13:02:42 +00:00
|
|
|
extern bool CAMPI_SCAVATI;
|
2007-12-10 09:48:34 +00:00
|
|
|
extern bool NATIVE_CONTROLS;
|
2003-05-26 13:02:42 +00:00
|
|
|
extern bool ADVANCED_GRAPHICS;
|
|
|
|
extern bool AUTOSELECT;
|
2005-05-16 23:44:23 +00:00
|
|
|
extern bool AUTOZOOM;
|
|
|
|
extern bool AUTOEND;
|
2008-04-04 16:04:15 +00:00
|
|
|
extern int TOOL_SIZE;
|
2008-05-15 14:59:21 +00:00
|
|
|
extern bool EASY_RIDER;
|
1994-09-19 09:50:07 +00:00
|
|
|
|
1995-01-02 09:33:00 +00:00
|
|
|
const COLOR COLOR_DKCYAN = MAKE_COLOR(0,128,128);
|
|
|
|
const COLOR COLOR_DKYELLOW = MAKE_COLOR(128,128, 0);
|
1995-01-03 14:19:41 +00:00
|
|
|
const COLOR COLOR_DKGREEN = MAKE_COLOR(0,128, 0);
|
|
|
|
const COLOR COLOR_DKBLUE = MAKE_COLOR(0,0,128);
|
|
|
|
const COLOR COLOR_DKRED = MAKE_COLOR(128,0, 0);
|
|
|
|
const COLOR COLOR_DKMAGENTA = MAKE_COLOR(128,0,128);
|
1995-01-02 09:33:00 +00:00
|
|
|
|
1994-09-19 09:50:07 +00:00
|
|
|
#endif
|