Lines Matching defs:color
12 #include "../../include/javascript/color.h"
27 /* -------------------------- color -------------------------- */
52 IMPLEMENT_JS_CLASS(CJS_Color,color)
54 color::color(CJS_Object* pJSObject): CJS_EmbedObj(pJSObject)
70 color::~color(void)
74 void color::ConvertPWLColorToArray(const CPWL_Color& color, CJS_Array& array)
76 switch (color.nColorType)
83 array.SetElement(1, CJS_Value(array.GetIsolate(),color.fColor1));
87 array.SetElement(1, CJS_Value(array.GetIsolate(),color.fColor1));
88 array.SetElement(2, CJS_Value(array.GetIsolate(),color.fColor2));
89 array.SetElement(3, CJS_Value(array.GetIsolate(),color.fColor3));
93 array.SetElement(1, CJS_Value(array.GetIsolate(),color.fColor1));
94 array.SetElement(2, CJS_Value(array.GetIsolate(),color.fColor2));
95 array.SetElement(3, CJS_Value(array.GetIsolate(),color.fColor3));
96 array.SetElement(4, CJS_Value(array.GetIsolate(),color.fColor4));
101 void color::ConvertArrayToPWLColor(CJS_Array& array, CPWL_Color& color)
141 color = CPWL_Color(COLORTYPE_TRANSPARENT);
145 color = CPWL_Color(COLORTYPE_GRAY, (FX_FLOAT)d1);
149 color = CPWL_Color(COLORTYPE_RGB, (FX_FLOAT)d1, (FX_FLOAT)d2, (FX_FLOAT)d3);
153 color = CPWL_Color(COLORTYPE_CMYK, (FX_FLOAT)d1, (FX_FLOAT)d2, (FX_FLOAT)d3, (FX_FLOAT)d4);
158 FX_BOOL color::prop(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError)\
190 FX_BOOL color::convert(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError)
230 FX_BOOL color::equal(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError)