Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00031
00032 #pragma once
00033
00034 #include "../api_display.h"
00035
00036 class CL_ColorHSLd;
00037 class CL_ColorHSLf;
00038 class CL_Color;
00039 class CL_Colorf;
00040 class CL_Colord;
00041
00046 template<typename Type>
00047 class CL_API_DISPLAY CL_ColorHSLx
00048 {
00051
00052 public:
00055 CL_ColorHSLx() : h((Type) 0), s((Type) 0), l((Type) 0), a((Type) 0) {}
00056 CL_ColorHSLx(Type h, Type s, Type l, Type a) : h(h), s(s), l(l), a(a) {}
00057 CL_ColorHSLx(const CL_ColorHSLx<Type> ©) { h = copy.h; s = copy.s; l = copy.l; a = copy.a;}
00058 CL_ColorHSLx(const CL_Color &color);
00059 CL_ColorHSLx(const CL_Colorf &color);
00060 CL_ColorHSLx(const CL_Colord &color);
00061
00065 public:
00066 Type h,s,l,a;
00067
00071
00072 public:
00073
00077 public:
00079 CL_ColorHSLx<Type> &operator = (const CL_ColorHSLx<Type>& copy) { h = copy.h; s = copy.s; l=copy.l; a=copy.a; return *this; }
00080
00082 bool operator == (const CL_ColorHSLx<Type>& color) const {return ((h == color.h) && (s == color.s) && (l == color.l) && (a == color.a));}
00083
00085 bool operator != (const CL_ColorHSLx<Type>& color) const {return ((h != color.h) || (s != color.s) || (l != color.l) || (a != color.a));}
00086
00088 };
00089
00091