Home
last modified time | relevance | path

Searched refs:CFX_Color (Results 1 – 24 of 24) sorted by relevance

/external/pdfium/core/fxge/
Dcfx_color.cpp13 static_assert(CFX_Color::kTransparent < CFX_Color::kGray,
15 static_assert(CFX_Color::kGray < CFX_Color::kRGB,
17 static_assert(CFX_Color::kRGB < CFX_Color::kCMYK,
26 CFX_Color ConvertCMYK2GRAY(float dC, float dM, float dY, float dK) { in ConvertCMYK2GRAY()
28 return CFX_Color(CFX_Color::kGray); in ConvertCMYK2GRAY()
29 return CFX_Color( in ConvertCMYK2GRAY()
30 CFX_Color::kGray, in ConvertCMYK2GRAY()
34 CFX_Color ConvertGRAY2CMYK(float dGray) { in ConvertGRAY2CMYK()
36 return CFX_Color(CFX_Color::kCMYK); in ConvertGRAY2CMYK()
37 return CFX_Color(CFX_Color::kCMYK, 0.0f, 0.0f, 0.0f, 1.0f - dGray); in ConvertGRAY2CMYK()
[all …]
Dcfx_color.h12 struct CFX_Color { struct
16 explicit CFX_Color(FX_COLORREF ref) in CFX_Color() function
17 : CFX_Color(FXARGB_R(ref), FXARGB_G(ref), FXARGB_B(ref)) {} in CFX_Color()
19 CFX_Color(int32_t type = CFX_Color::kTransparent,
30 CFX_Color(int32_t r, int32_t g, int32_t b) in CFX_Color() function
31 : nColorType(CFX_Color::kRGB), in CFX_Color()
37 CFX_Color(const CFX_Color&) = default;
39 CFX_Color operator/(float fColorDivide) const;
40 CFX_Color operator-(float fColorSub) const;
42 CFX_Color ConvertColorType(int32_t nConvertColorType) const;
[all …]
Dcfx_renderdevice.h28 struct CFX_Color;
179 const CFX_Color& color,
196 const CFX_Color& color,
197 const CFX_Color& crLeftTop,
198 const CFX_Color& crRightBottom,
Dcfx_renderdevice.cpp1139 const CFX_Color& color, in DrawFillRect()
1179 const CFX_Color& color, in DrawBorder()
1180 const CFX_Color& crLeftTop, in DrawBorder()
1181 const CFX_Color& crRightBottom, in DrawBorder()
/external/pdfium/core/fpdfdoc/
Dcpdf_color_utils.cpp15 CFX_Color CFXColorFromArray(const CPDF_Array& array) { in CFXColorFromArray()
16 CFX_Color rt; in CFXColorFromArray()
19 rt = CFX_Color(CFX_Color::kGray, array.GetNumberAt(0)); in CFXColorFromArray()
22 rt = CFX_Color(CFX_Color::kRGB, array.GetNumberAt(0), in CFXColorFromArray()
26 rt = CFX_Color(CFX_Color::kCMYK, array.GetNumberAt(0), in CFXColorFromArray()
34 CFX_Color CFXColorFromString(const ByteString& str) { in CFXColorFromString()
37 Optional<CFX_Color::Type> color_type = appearance.GetColor(values); in CFXColorFromString()
38 if (!color_type || *color_type == CFX_Color::kTransparent) in CFXColorFromString()
39 return CFX_Color(CFX_Color::kTransparent); in CFXColorFromString()
40 if (*color_type == CFX_Color::kGray) in CFXColorFromString()
[all …]
Dcpdf_defaultappearance.cpp71 Optional<CFX_Color::Type> CPDF_DefaultAppearance::GetColor(float fc[4]) { in GetColor()
81 return {CFX_Color::kGray}; in GetColor()
87 return {CFX_Color::kRGB}; in GetColor()
94 return {CFX_Color::kCMYK}; in GetColor()
100 std::pair<Optional<CFX_Color::Type>, FX_ARGB>
103 Optional<CFX_Color::Type> type = GetColor(values); in GetColor()
107 if (*type == CFX_Color::kGray) { in GetColor()
111 if (*type == CFX_Color::kRGB) { in GetColor()
117 if (*type == CFX_Color::kCMYK) { in GetColor()
Dcpvt_generateap.cpp179 ByteString GenerateColorAP(const CFX_Color& color, PaintOperation nOperation) { in GenerateColorAP()
182 case CFX_Color::kRGB: in GenerateColorAP()
188 case CFX_Color::kGray: in GenerateColorAP()
193 case CFX_Color::kCMYK: in GenerateColorAP()
199 case CFX_Color::kTransparent: in GenerateColorAP()
207 const CFX_Color& color, in GenerateBorderAP()
208 const CFX_Color& crLeftTop, in GenerateBorderAP()
209 const CFX_Color& crRightBottom, in GenerateBorderAP()
312 const CFX_Color& crDefaultColor, in GetColorStringWithDefault()
315 CFX_Color color = fpdfdoc::CFXColorFromArray(*pColor); in GetColorStringWithDefault()
[all …]
Dcpdf_apsettings.cpp32 iColorType = CFX_Color::kTransparent; in GetColor()
43 iColorType = CFX_Color::kGray; in GetColor()
48 iColorType = CFX_Color::kRGB; in GetColor()
55 iColorType = CFX_Color::kCMYK; in GetColor()
80 iColorType = CFX_Color::kTransparent; in GetOriginalColor()
93 iColorType = CFX_Color::kGray; in GetOriginalColor()
96 iColorType = CFX_Color::kRGB; in GetOriginalColor()
101 iColorType = CFX_Color::kCMYK; in GetOriginalColor()
Dcpdf_color_utils.h20 CFX_Color CFXColorFromArray(const CPDF_Array& array);
21 CFX_Color CFXColorFromString(const fxcrt::ByteString& str);
Dcpdf_defaultappearance.h27 Optional<CFX_Color::Type> GetColor(float fc[4]);
28 std::pair<Optional<CFX_Color::Type>, FX_ARGB> GetColor();
/external/pdfium/fxjs/
Dcjs_color.cpp54 const CFX_Color& color) { in ConvertPWLColorToArray()
57 case CFX_Color::kTransparent: in ConvertPWLColorToArray()
61 case CFX_Color::kGray: in ConvertPWLColorToArray()
66 case CFX_Color::kRGB: in ConvertPWLColorToArray()
73 case CFX_Color::kCMYK: in ConvertPWLColorToArray()
86 CFX_Color CJS_Color::ConvertArrayToPWLColor(CJS_Runtime* pRuntime, in ConvertArrayToPWLColor()
90 return CFX_Color(); in ConvertArrayToPWLColor()
95 return CFX_Color(CFX_Color::kTransparent); in ConvertArrayToPWLColor()
103 return CFX_Color(CFX_Color::kGray, d1); in ConvertArrayToPWLColor()
116 return CFX_Color(CFX_Color::kRGB, d1, d2, d3); in ConvertArrayToPWLColor()
[all …]
Dcjs_color.h20 const CFX_Color& color);
21 static CFX_Color ConvertArrayToPWLColor(CJS_Runtime* pRuntime,
90 CJS_Result GetPropertyHelper(CJS_Runtime* pRuntime, CFX_Color* val);
93 CFX_Color* val);
95 CFX_Color m_crTransparent;
96 CFX_Color m_crBlack;
97 CFX_Color m_crWhite;
98 CFX_Color m_crRed;
99 CFX_Color m_crGreen;
100 CFX_Color m_crBlue;
[all …]
Dcjs_field.cpp1301 CFX_Color color; in get_fill_color()
1302 if (iColorType == CFX_Color::kTransparent) { in get_fill_color()
1303 color = CFX_Color(CFX_Color::kTransparent); in get_fill_color()
1304 } else if (iColorType == CFX_Color::kGray) { in get_fill_color()
1305 color = CFX_Color(CFX_Color::kGray, in get_fill_color()
1307 } else if (iColorType == CFX_Color::kRGB) { in get_fill_color()
1309 CFX_Color(CFX_Color::kRGB, pFormControl->GetOriginalBackgroundColor(0), in get_fill_color()
1312 } else if (iColorType == CFX_Color::kCMYK) { in get_fill_color()
1314 CFX_Color(CFX_Color::kCMYK, pFormControl->GetOriginalBackgroundColor(0), in get_fill_color()
1834 CFX_Color color; in get_stroke_color()
[all …]
Dcjs_delaydata.h29 CFX_Color color;
Dcjs_publicmethods.cpp675 CFX_Color crProp = CJS_Color::ConvertArrayToPWLColor( in AFNumber_Format()
677 CFX_Color crColor = in AFNumber_Format()
/external/pdfium/fpdfsdk/
Dcpdfsdk_appstream.cpp106 ByteString GetColorAppStream(const CFX_Color& color, in GetColorAppStream()
111 case CFX_Color::kRGB: in GetColorAppStream()
117 case CFX_Color::kGray: in GetColorAppStream()
123 case CFX_Color::kCMYK: in GetColorAppStream()
339 const CFX_Color& crText) { in GetAppStream_Check()
350 const CFX_Color& crText) { in GetAppStream_Circle()
361 const CFX_Color& crText) { in GetAppStream_Cross()
372 const CFX_Color& crText) { in GetAppStream_Diamond()
384 const CFX_Color& crText) { in GetAppStream_Square()
395 const CFX_Color& crText) { in GetAppStream_Star()
[all …]
Dcpdfsdk_widget.cpp399 if (iColorType == CFX_Color::kTransparent) in GetFillColor()
408 if (iColorType == CFX_Color::kTransparent) in GetBorderColor()
417 Optional<CFX_Color::Type> iColorType; in GetTextColor()
423 if (iColorType.value() == CFX_Color::kTransparent) in GetTextColor()
753 CFX_Color CPDFSDK_Widget::GetTextPWLColor() const { in GetTextPWLColor()
754 CFX_Color crText = CFX_Color(CFX_Color::kGray, 0); in GetTextPWLColor()
760 Optional<CFX_Color::Type> iColorType = da.GetColor(fc); in GetTextPWLColor()
762 crText = CFX_Color(*iColorType, fc[0], fc[1], fc[2], fc[3]); in GetTextPWLColor()
767 CFX_Color CPDFSDK_Widget::GetBorderPWLColor() const { in GetBorderPWLColor()
768 CFX_Color crBorder; in GetBorderPWLColor()
[all …]
Dcpdfsdk_widget.h133 CFX_Color GetTextPWLColor() const;
134 CFX_Color GetBorderPWLColor() const;
135 CFX_Color GetFillPWLColor() const;
Dfpdf_annot.cpp607 CFX_Color color = fpdfdoc::CFXColorFromArray(*pColor); in FPDFAnnot_GetColor()
609 case CFX_Color::kRGB: in FPDFAnnot_GetColor()
614 case CFX_Color::kGray: in FPDFAnnot_GetColor()
619 case CFX_Color::kCMYK: in FPDFAnnot_GetColor()
624 case CFX_Color::kTransparent: in FPDFAnnot_GetColor()
/external/pdfium/fpdfsdk/pwl/
Dcpwl_wnd.h89 #define PWL_DEFAULT_BLACKCOLOR CFX_Color(CFX_Color::kGray, 0)
90 #define PWL_DEFAULT_WHITECOLOR CFX_Color(CFX_Color::kGray, 1)
122 CFX_Color sBackgroundColor; // optional
125 CFX_Color sBorderColor; // optional
126 CFX_Color sTextColor; // optional
197 CFX_Color GetBackgroundColor() const;
198 void SetBackgroundColor(const CFX_Color& color);
199 CFX_Color GetBorderColor() const;
200 CFX_Color GetTextColor() const;
201 void SetTextColor(const CFX_Color& color);
[all …]
Dcpwl_wnd.cpp436 CFX_Color CPWL_Wnd::GetBackgroundColor() const { in GetBackgroundColor()
440 void CPWL_Wnd::SetBackgroundColor(const CFX_Color& color) { in SetBackgroundColor()
444 CFX_Color CPWL_Wnd::GetTextColor() const { in GetTextColor()
465 CFX_Color CPWL_Wnd::GetBorderColor() const { in GetBorderColor()
466 return HasFlag(PWS_BORDER) ? m_CreationParams.sBorderColor : CFX_Color(); in GetBorderColor()
660 CFX_Color CPWL_Wnd::GetBorderLeftTopColor(BorderStyle nBorderStyle) const { in GetBorderLeftTopColor()
663 return CFX_Color(CFX_Color::kGray, 1); in GetBorderLeftTopColor()
665 return CFX_Color(CFX_Color::kGray, 0.5f); in GetBorderLeftTopColor()
667 return CFX_Color(); in GetBorderLeftTopColor()
671 CFX_Color CPWL_Wnd::GetBorderRightBottomColor(BorderStyle nBorderStyle) const { in GetBorderRightBottomColor()
[all …]
Dcpwl_combo_box.cpp307 bcp.sBackgroundColor = CFX_Color(CFX_Color::kRGB, 220.0f / 255.0f, in CreateButton()
335 if (cp.sBorderColor.nColorType == CFX_Color::kTransparent) in CreateListBox()
338 if (cp.sBackgroundColor.nColorType == CFX_Color::kTransparent) in CreateListBox()
Dcpwl_scroll_bar.cpp27 #define PWL_DEFAULT_HEAVYGRAYCOLOR CFX_Color(CFX_Color::kGray, 0.50)
/external/pdfium/fpdfsdk/formfiller/
Dcffl_formfiller.cpp299 cp.sBackgroundColor = CFX_Color(color.value()); in GetCreateParam()
302 cp.sBorderColor = CFX_Color(color.value()); in GetCreateParam()
304 cp.sTextColor = CFX_Color(CFX_Color::kGray, 0); in GetCreateParam()
308 cp.sTextColor = CFX_Color(color.value()); in GetCreateParam()