/external/pdfium/core/fxge/ |
D | cfx_color.cpp | 20 CFX_Color ConvertCMYK2GRAY(float dC, float dM, float dY, float dK) { in ConvertCMYK2GRAY() 22 return CFX_Color(CFX_Color::kGray); in ConvertCMYK2GRAY() 23 return CFX_Color( in ConvertCMYK2GRAY() 24 CFX_Color::kGray, in ConvertCMYK2GRAY() 28 CFX_Color ConvertGRAY2CMYK(float dGray) { in ConvertGRAY2CMYK() 30 return CFX_Color(CFX_Color::kCMYK); in ConvertGRAY2CMYK() 31 return CFX_Color(CFX_Color::kCMYK, 0.0f, 0.0f, 0.0f, 1.0f - dGray); in ConvertGRAY2CMYK() 34 CFX_Color ConvertGRAY2RGB(float dGray) { in ConvertGRAY2RGB() 36 return CFX_Color(CFX_Color::kRGB); in ConvertGRAY2RGB() 37 return CFX_Color(CFX_Color::kRGB, dGray, dGray, dGray); in ConvertGRAY2RGB() [all …]
|
D | cfx_color.h | 13 struct CFX_Color { struct 14 static CFX_Color ParseColor(const CPDF_Array& array); 15 static CFX_Color ParseColor(const ByteString& str); 19 explicit CFX_Color(FX_COLORREF ref) in CFX_Color() argument 20 : CFX_Color(FXARGB_R(ref), FXARGB_G(ref), FXARGB_B(ref)) {} in CFX_Color() 22 CFX_Color(int32_t type = CFX_Color::kTransparent, 33 CFX_Color(int32_t r, int32_t g, int32_t b) in CFX_Color() argument 34 : nColorType(CFX_Color::kRGB), in CFX_Color() 40 CFX_Color(const CFX_Color&) = default; 42 CFX_Color operator/(float fColorDivide) const; [all …]
|
D | cfx_renderdevice.h | 231 const CFX_Color& color, 248 const CFX_Color& color, 249 const CFX_Color& crLeftTop, 250 const CFX_Color& crRightBottom,
|
D | cfx_renderdevice.cpp | 1185 const CFX_Color& color, in DrawFillRect() 1225 const CFX_Color& color, in DrawBorder() 1226 const CFX_Color& crLeftTop, in DrawBorder() 1227 const CFX_Color& crRightBottom, in DrawBorder()
|
/external/pdfium/fxjs/ |
D | cjs_color.cpp | 47 const CFX_Color& color) { in ConvertPWLColorToArray() 50 case CFX_Color::kTransparent: in ConvertPWLColorToArray() 54 case CFX_Color::kGray: in ConvertPWLColorToArray() 59 case CFX_Color::kRGB: in ConvertPWLColorToArray() 66 case CFX_Color::kCMYK: in ConvertPWLColorToArray() 79 CFX_Color color::ConvertArrayToPWLColor(CJS_Runtime* pRuntime, in ConvertArrayToPWLColor() 83 return CFX_Color(); in ConvertArrayToPWLColor() 88 return CFX_Color(CFX_Color::kTransparent); in ConvertArrayToPWLColor() 97 return CFX_Color(CFX_Color::kGray, d1); in ConvertArrayToPWLColor() 111 return CFX_Color(CFX_Color::kRGB, d1, d2, d3); in ConvertArrayToPWLColor() [all …]
|
D | cjs_color.h | 18 const CFX_Color& color); 19 static CFX_Color ConvertArrayToPWLColor(CJS_Runtime* pRuntime, 67 CJS_Return GetPropertyHelper(CJS_Runtime* pRuntime, CFX_Color* val); 70 CFX_Color* val); 72 CFX_Color m_crTransparent; 73 CFX_Color m_crBlack; 74 CFX_Color m_crWhite; 75 CFX_Color m_crRed; 76 CFX_Color m_crGreen; 77 CFX_Color m_crBlue; [all …]
|
D | cjs_field.cpp | 1139 CFX_Color color; in get_fill_color() 1140 if (iColorType == CFX_Color::kTransparent) { in get_fill_color() 1141 color = CFX_Color(CFX_Color::kTransparent); in get_fill_color() 1142 } else if (iColorType == CFX_Color::kGray) { in get_fill_color() 1143 color = CFX_Color(CFX_Color::kGray, in get_fill_color() 1145 } else if (iColorType == CFX_Color::kRGB) { in get_fill_color() 1147 CFX_Color(CFX_Color::kRGB, pFormControl->GetOriginalBackgroundColor(0), in get_fill_color() 1150 } else if (iColorType == CFX_Color::kCMYK) { in get_fill_color() 1152 CFX_Color(CFX_Color::kCMYK, pFormControl->GetOriginalBackgroundColor(0), in get_fill_color() 1770 CFX_Color color; in get_stroke_color() [all …]
|
D | cjs_delaydata.h | 30 CFX_Color color;
|
D | cjs_publicmethods.cpp | 958 CFX_Color crProp = color::ConvertArrayToPWLColor( in AFNumber_Format() 960 CFX_Color crColor = color::ConvertArrayToPWLColor(pRuntime, arColor); in AFNumber_Format()
|
/external/pdfium/fpdfsdk/pwl/ |
D | cpwl_appstream.cpp | 102 ByteString GetColorAppStream(const CFX_Color& color, in GetColorAppStream() 107 case CFX_Color::kRGB: in GetColorAppStream() 113 case CFX_Color::kGray: in GetColorAppStream() 119 case CFX_Color::kCMYK: in GetColorAppStream() 335 const CFX_Color& crText) { in GetAppStream_Check() 346 const CFX_Color& crText) { in GetAppStream_Circle() 357 const CFX_Color& crText) { in GetAppStream_Cross() 368 const CFX_Color& crText) { in GetAppStream_Diamond() 380 const CFX_Color& crText) { in GetAppStream_Square() 391 const CFX_Color& crText) { in GetAppStream_Star() [all …]
|
D | cpwl_wnd.h | 82 inline bool operator==(const CFX_Color& c1, const CFX_Color& c2) { 92 inline bool operator!=(const CFX_Color& c1, const CFX_Color& c2) { 98 #define PWL_DEFAULT_BLACKCOLOR CFX_Color(CFX_Color::kGray, 0) 99 #define PWL_DEFAULT_WHITECOLOR CFX_Color(CFX_Color::kGray, 1) 134 CFX_Color sBackgroundColor; // optional 138 CFX_Color sBorderColor; // optional 139 CFX_Color sTextColor; // optional 201 CFX_Color GetBackgroundColor() const; 202 void SetBackgroundColor(const CFX_Color& color); 203 CFX_Color GetBorderColor() const; [all …]
|
D | cpwl_wnd.cpp | 444 CFX_Color CPWL_Wnd::GetBackgroundColor() const { in GetBackgroundColor() 448 void CPWL_Wnd::SetBackgroundColor(const CFX_Color& color) { in SetBackgroundColor() 452 CFX_Color CPWL_Wnd::GetTextColor() const { in GetTextColor() 473 CFX_Color CPWL_Wnd::GetBorderColor() const { in GetBorderColor() 474 return HasFlag(PWS_BORDER) ? m_CreationParams.sBorderColor : CFX_Color(); in GetBorderColor() 698 CFX_Color CPWL_Wnd::GetBorderLeftTopColor(BorderStyle nBorderStyle) const { in GetBorderLeftTopColor() 701 return CFX_Color(CFX_Color::kGray, 1); in GetBorderLeftTopColor() 703 return CFX_Color(CFX_Color::kGray, 0.5f); in GetBorderLeftTopColor() 705 return CFX_Color(); in GetBorderLeftTopColor() 709 CFX_Color CPWL_Wnd::GetBorderRightBottomColor(BorderStyle nBorderStyle) const { in GetBorderRightBottomColor() [all …]
|
D | cpwl_combo_box.cpp | 286 bcp.sBackgroundColor = CFX_Color(CFX_Color::kRGB, 220.0f / 255.0f, in CreateButton() 314 if (cp.sBorderColor.nColorType == CFX_Color::kTransparent) in CreateListBox() 317 if (cp.sBackgroundColor.nColorType == CFX_Color::kTransparent) in CreateListBox()
|
D | cpwl_scroll_bar.cpp | 25 #define PWL_DEFAULT_HEAVYGRAYCOLOR CFX_Color(CFX_Color::kGray, 0.50)
|
/external/pdfium/core/fpdfdoc/ |
D | cpvt_generateap.cpp | 169 ByteString GenerateColorAP(const CFX_Color& color, PaintOperation nOperation) { in GenerateColorAP() 172 case CFX_Color::kRGB: in GenerateColorAP() 178 case CFX_Color::kGray: in GenerateColorAP() 183 case CFX_Color::kCMYK: in GenerateColorAP() 189 case CFX_Color::kTransparent: in GenerateColorAP() 197 const CFX_Color& color, in GenerateBorderAP() 198 const CFX_Color& crLeftTop, in GenerateBorderAP() 199 const CFX_Color& crRightBottom, in GenerateBorderAP() 302 const CFX_Color& crDefaultColor, in GetColorStringWithDefault() 305 CFX_Color color = CFX_Color::ParseColor(*pColor); in GetColorStringWithDefault() [all …]
|
D | cpdf_apsettings.cpp | 31 iColorType = CFX_Color::kTransparent; in GetColor() 42 iColorType = CFX_Color::kGray; in GetColor() 47 iColorType = CFX_Color::kRGB; in GetColor() 54 iColorType = CFX_Color::kCMYK; in GetColor() 79 iColorType = CFX_Color::kTransparent; in GetOriginalColor() 92 iColorType = CFX_Color::kGray; in GetOriginalColor() 95 iColorType = CFX_Color::kRGB; in GetOriginalColor() 100 iColorType = CFX_Color::kCMYK; in GetOriginalColor()
|
D | cpdf_defaultappearance.cpp | 113 iColorType = CFX_Color::kTransparent; in GetColor() 123 iColorType = CFX_Color::kGray; in GetColor() 129 iColorType = CFX_Color::kRGB; in GetColor() 137 iColorType = CFX_Color::kCMYK; in GetColor() 149 iColorType = CFX_Color::kTransparent; in GetColor() 156 iColorType = CFX_Color::kGray; in GetColor() 163 iColorType = CFX_Color::kRGB; in GetColor() 172 iColorType = CFX_Color::kCMYK; in GetColor()
|
/external/pdfium/fpdfsdk/ |
D | cpdfsdk_widget.cpp | 568 return iColorType != CFX_Color::kTransparent; in GetFillColor() 575 return iColorType != CFX_Color::kTransparent; in GetBorderColor() 585 int iColorType = CFX_Color::kTransparent; in GetTextColor() 588 return iColorType != CFX_Color::kTransparent; in GetTextColor() 924 CFX_Color CPDFSDK_Widget::GetTextPWLColor() const { 925 CFX_Color crText = CFX_Color(CFX_Color::kGray, 0); 933 crText = CFX_Color(iColorType, fc[0], fc[1], fc[2], fc[3]); 939 CFX_Color CPDFSDK_Widget::GetBorderPWLColor() const { 940 CFX_Color crBorder; 947 crBorder = CFX_Color(iColorType, fc[0], fc[1], fc[2], fc[3]); [all …]
|
D | cpdfsdk_widget.h | 145 CFX_Color GetTextPWLColor() const; 146 CFX_Color GetBorderPWLColor() const; 147 CFX_Color GetFillPWLColor() const;
|
D | fpdfannot.cpp | 545 CFX_Color color = CFX_Color::ParseColor(*pColor); in FPDFAnnot_GetColor() 547 case CFX_Color::kRGB: in FPDFAnnot_GetColor() 552 case CFX_Color::kGray: in FPDFAnnot_GetColor() 557 case CFX_Color::kCMYK: in FPDFAnnot_GetColor() 562 case CFX_Color::kTransparent: in FPDFAnnot_GetColor()
|
/external/pdfium/fpdfsdk/formfiller/ |
D | cffl_formfiller.cpp | 300 cp.sBackgroundColor = CFX_Color(color); in GetCreateParam() 302 cp.sBorderColor = CFX_Color(color); in GetCreateParam() 304 cp.sTextColor = CFX_Color(CFX_Color::kGray, 0); in GetCreateParam() 307 cp.sTextColor = CFX_Color(color); in GetCreateParam()
|