Files correlati : ca1.exe Ricompilazione Demo : [ ] Commento : Evitato di uscire da programma di stampa anialitica dopo ogni stampa git-svn-id: svn://10.65.10.50/branches/R_10_00@22568 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
#ifndef __COLORS_H
 | 
						|
#define __COLORS_H
 | 
						|
 | 
						|
#ifndef XVT_INCL_XVT
 | 
						|
#include <xvt.h>
 | 
						|
#endif   
 | 
						|
 | 
						|
COLOR RGB2COLOR(unsigned char red, unsigned char green, unsigned char blue);
 | 
						|
COLOR choose_color(COLOR col = COLOR_BLACK, WINDOW win = NULL_WIN);
 | 
						|
COLOR blend_colors(COLOR col1, COLOR col2, double perc = 0.5);
 | 
						|
COLOR modulate_color(COLOR col, double perc);   // -1 = Black; 0 = col; +1 = White
 | 
						|
COLOR grayed_color(COLOR col);
 | 
						|
inline bool same_color(COLOR col1, COLOR col2) { return (col1 & 0x00FFFFFF) == (col2 & 0x00FFFFFF); }
 | 
						|
// unsigned int color_distance(COLOR col1, COLOR col2);
 | 
						|
 | 
						|
extern COLOR MASK_BACK_COLOR;
 | 
						|
extern COLOR MASK_LIGHT_COLOR;
 | 
						|
extern COLOR MASK_DARK_COLOR;
 | 
						|
extern COLOR BTN_BACK_COLOR;
 | 
						|
extern COLOR BTN_LIGHT_COLOR;
 | 
						|
extern COLOR BTN_DARK_COLOR;
 | 
						|
extern COLOR NORMAL_COLOR;
 | 
						|
extern COLOR NORMAL_BACK_COLOR;
 | 
						|
extern COLOR PROMPT_COLOR;
 | 
						|
extern COLOR DISABLED_COLOR;
 | 
						|
extern COLOR DISABLED_BACK_COLOR;
 | 
						|
extern COLOR FOCUS_COLOR;
 | 
						|
extern COLOR FOCUS_BACK_COLOR;
 | 
						|
extern COLOR REQUIRED_BACK_COLOR;
 | 
						|
extern COLOR EASY_RIDER_COLOR;
 | 
						|
 | 
						|
extern bool CAMPI_SCAVATI; 
 | 
						|
extern bool NATIVE_CONTROLS; 
 | 
						|
extern bool ADVANCED_GRAPHICS; 
 | 
						|
extern bool AUTOSELECT;
 | 
						|
extern bool AUTOZOOM;
 | 
						|
extern bool AUTOEND;
 | 
						|
extern int  TOOL_SIZE;
 | 
						|
extern bool TOOL_TEXT;
 | 
						|
extern bool EASY_RIDER;
 | 
						|
extern bool ENTER_AS_TAB;  
 | 
						|
extern int  INTERLINE;
 | 
						|
extern bool ANIMATED_BOXES;
 | 
						|
 | 
						|
const COLOR COLOR_DKCYAN = XVT_MAKE_COLOR(0,128,128);
 | 
						|
const COLOR COLOR_DKYELLOW = XVT_MAKE_COLOR(128,128, 0);
 | 
						|
const COLOR COLOR_DKGREEN = XVT_MAKE_COLOR(0,128, 0);
 | 
						|
const COLOR COLOR_DKBLUE = XVT_MAKE_COLOR(0,0,128);
 | 
						|
const COLOR COLOR_DKRED = XVT_MAKE_COLOR(128,0, 0);
 | 
						|
const COLOR COLOR_DKMAGENTA = XVT_MAKE_COLOR(128,0,128);
 | 
						|
 | 
						|
#endif
 |