| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| 9 | 9 |
| 10 #include "core/fpdfdoc/include/cpvt_wordrange.h" | 10 #include "core/fpdfdoc/include/cpvt_wordrange.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 static FX_BOOL IsBlackOrWhite(const CPWL_Color& color); | 129 static FX_BOOL IsBlackOrWhite(const CPWL_Color& color); |
| 130 static CPWL_Color GetReverseColor(const CPWL_Color& color); | 130 static CPWL_Color GetReverseColor(const CPWL_Color& color); |
| 131 | 131 |
| 132 static CFX_ByteString GetColorAppStream(const CPWL_Color& color, | 132 static CFX_ByteString GetColorAppStream(const CPWL_Color& color, |
| 133 const FX_BOOL& bFillOrStroke = TRUE); | 133 const FX_BOOL& bFillOrStroke = TRUE); |
| 134 static CFX_ByteString GetBorderAppStream(const CFX_FloatRect& rect, | 134 static CFX_ByteString GetBorderAppStream(const CFX_FloatRect& rect, |
| 135 FX_FLOAT fWidth, | 135 FX_FLOAT fWidth, |
| 136 const CPWL_Color& color, | 136 const CPWL_Color& color, |
| 137 const CPWL_Color& crLeftTop, | 137 const CPWL_Color& crLeftTop, |
| 138 const CPWL_Color& crRightBottom, | 138 const CPWL_Color& crRightBottom, |
| 139 int32_t nStyle, | 139 BorderStyle nStyle, |
| 140 const CPWL_Dash& dash); | 140 const CPWL_Dash& dash); |
| 141 static CFX_ByteString GetCircleBorderAppStream( | 141 static CFX_ByteString GetCircleBorderAppStream( |
| 142 const CFX_FloatRect& rect, | 142 const CFX_FloatRect& rect, |
| 143 FX_FLOAT fWidth, | 143 FX_FLOAT fWidth, |
| 144 const CPWL_Color& color, | 144 const CPWL_Color& color, |
| 145 const CPWL_Color& crLeftTop, | 145 const CPWL_Color& crLeftTop, |
| 146 const CPWL_Color& crRightBottom, | 146 const CPWL_Color& crRightBottom, |
| 147 int32_t nStyle, | 147 BorderStyle nStyle, |
| 148 const CPWL_Dash& dash); | 148 const CPWL_Dash& dash); |
| 149 static CFX_ByteString GetRectFillAppStream(const CFX_FloatRect& rect, | 149 static CFX_ByteString GetRectFillAppStream(const CFX_FloatRect& rect, |
| 150 const CPWL_Color& color); | 150 const CPWL_Color& color); |
| 151 static CFX_ByteString GetCircleFillAppStream(const CFX_FloatRect& rect, | 151 static CFX_ByteString GetCircleFillAppStream(const CFX_FloatRect& rect, |
| 152 const CPWL_Color& color); | 152 const CPWL_Color& color); |
| 153 | 153 |
| 154 static CFX_ByteString GetPushButtonAppStream(const CFX_FloatRect& rcBBox, | 154 static CFX_ByteString GetPushButtonAppStream(const CFX_FloatRect& rcBBox, |
| 155 IPVT_FontMap* pFontMap, | 155 IPVT_FontMap* pFontMap, |
| 156 CPDF_Stream* pIconStream, | 156 CPDF_Stream* pIconStream, |
| 157 CPDF_IconFit& IconFit, | 157 CPDF_IconFit& IconFit, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 const CFX_FloatPoint& ptLineTo, | 206 const CFX_FloatPoint& ptLineTo, |
| 207 const FX_COLORREF& color, | 207 const FX_COLORREF& color, |
| 208 FX_FLOAT fWidth); | 208 FX_FLOAT fWidth); |
| 209 static void DrawBorder(CFX_RenderDevice* pDevice, | 209 static void DrawBorder(CFX_RenderDevice* pDevice, |
| 210 CFX_Matrix* pUser2Device, | 210 CFX_Matrix* pUser2Device, |
| 211 const CFX_FloatRect& rect, | 211 const CFX_FloatRect& rect, |
| 212 FX_FLOAT fWidth, | 212 FX_FLOAT fWidth, |
| 213 const CPWL_Color& color, | 213 const CPWL_Color& color, |
| 214 const CPWL_Color& crLeftTop, | 214 const CPWL_Color& crLeftTop, |
| 215 const CPWL_Color& crRightBottom, | 215 const CPWL_Color& crRightBottom, |
| 216 int32_t nStyle, | 216 BorderStyle nStyle, |
| 217 int32_t nTransparancy); | 217 int32_t nTransparancy); |
| 218 static void DrawFillArea(CFX_RenderDevice* pDevice, | 218 static void DrawFillArea(CFX_RenderDevice* pDevice, |
| 219 CFX_Matrix* pUser2Device, | 219 CFX_Matrix* pUser2Device, |
| 220 const CFX_FloatPoint* pPts, | 220 const CFX_FloatPoint* pPts, |
| 221 int32_t nCount, | 221 int32_t nCount, |
| 222 const FX_COLORREF& color); | 222 const FX_COLORREF& color); |
| 223 static void DrawShadow(CFX_RenderDevice* pDevice, | 223 static void DrawShadow(CFX_RenderDevice* pDevice, |
| 224 CFX_Matrix* pUser2Device, | 224 CFX_Matrix* pUser2Device, |
| 225 FX_BOOL bVertical, | 225 FX_BOOL bVertical, |
| 226 FX_BOOL bHorizontal, | 226 FX_BOOL bHorizontal, |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 CFX_PathData& path, | 390 CFX_PathData& path, |
| 391 const CFX_FloatRect& crBBox, | 391 const CFX_FloatRect& crBBox, |
| 392 const PWL_PATH_TYPE type); | 392 const PWL_PATH_TYPE type); |
| 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, | 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, |
| 394 CFX_PathData& path, | 394 CFX_PathData& path, |
| 395 const CFX_FloatRect& crBBox, | 395 const CFX_FloatRect& crBBox, |
| 396 const PWL_PATH_TYPE type); | 396 const PWL_PATH_TYPE type); |
| 397 }; | 397 }; |
| 398 | 398 |
| 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| OLD | NEW |