File: rgb.h

package info (click to toggle)
flying 6.20-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 752 kB
  • ctags: 1,873
  • sloc: cpp: 10,966; makefile: 189
file content (22 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _rgb_h
#define _rgb_h

class RGBColor {
	public:
		int SetColor( const char *name );

		RGBColor()							{ red=green=blue = 0; }
		RGBColor(int r, int g, int b)	{ red=r; green=g; blue=b; }
		RGBColor( const char *name )	{ SetColor(name); }

		~RGBColor()		{}

		int	red;
		int	green;
		int	blue;

	private:
		int SetInternalColor( const char *name );
};

#endif