Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_Utils.h

Issue 1513363002: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Signature.h ('k') | fpdfsdk/include/pdfwindow/PWL_Wnd.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INCLUDE_PDFWINDOW_PWL_UTILS_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_
9 9
10 #include "PWL_Wnd.h" 10 #include "PWL_Wnd.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const CFX_WideString& sText, 186 const CFX_WideString& sText,
187 int32_t nAlignmentH, 187 int32_t nAlignmentH,
188 int32_t nAlignmentV, 188 int32_t nAlignmentV,
189 FX_FLOAT fFontSize, 189 FX_FLOAT fFontSize,
190 FX_BOOL bMultiLine, 190 FX_BOOL bMultiLine,
191 FX_BOOL bAutoReturn, 191 FX_BOOL bAutoReturn,
192 const CPWL_Color& crText); 192 const CPWL_Color& crText);
193 static CFX_ByteString GetDropButtonAppStream(const CPDF_Rect& rcBBox); 193 static CFX_ByteString GetDropButtonAppStream(const CPDF_Rect& rcBBox);
194 194
195 static void DrawFillRect(CFX_RenderDevice* pDevice, 195 static void DrawFillRect(CFX_RenderDevice* pDevice,
196 CPDF_Matrix* pUser2Device, 196 CFX_Matrix* pUser2Device,
197 const CPDF_Rect& rect, 197 const CPDF_Rect& rect,
198 const CPWL_Color& color, 198 const CPWL_Color& color,
199 int32_t nTransparancy); 199 int32_t nTransparancy);
200 static void DrawFillRect(CFX_RenderDevice* pDevice, 200 static void DrawFillRect(CFX_RenderDevice* pDevice,
201 CPDF_Matrix* pUser2Device, 201 CFX_Matrix* pUser2Device,
202 const CPDF_Rect& rect, 202 const CPDF_Rect& rect,
203 const FX_COLORREF& color); 203 const FX_COLORREF& color);
204 static void DrawStrokeRect(CFX_RenderDevice* pDevice, 204 static void DrawStrokeRect(CFX_RenderDevice* pDevice,
205 CPDF_Matrix* pUser2Device, 205 CFX_Matrix* pUser2Device,
206 const CPDF_Rect& rect, 206 const CPDF_Rect& rect,
207 const FX_COLORREF& color, 207 const FX_COLORREF& color,
208 FX_FLOAT fWidth); 208 FX_FLOAT fWidth);
209 static void DrawStrokeLine(CFX_RenderDevice* pDevice, 209 static void DrawStrokeLine(CFX_RenderDevice* pDevice,
210 CPDF_Matrix* pUser2Device, 210 CFX_Matrix* pUser2Device,
211 const CPDF_Point& ptMoveTo, 211 const CPDF_Point& ptMoveTo,
212 const CPDF_Point& ptLineTo, 212 const CPDF_Point& ptLineTo,
213 const FX_COLORREF& color, 213 const FX_COLORREF& color,
214 FX_FLOAT fWidth); 214 FX_FLOAT fWidth);
215 static void DrawBorder(CFX_RenderDevice* pDevice, 215 static void DrawBorder(CFX_RenderDevice* pDevice,
216 CPDF_Matrix* pUser2Device, 216 CFX_Matrix* pUser2Device,
217 const CPDF_Rect& rect, 217 const CPDF_Rect& rect,
218 FX_FLOAT fWidth, 218 FX_FLOAT fWidth,
219 const CPWL_Color& color, 219 const CPWL_Color& color,
220 const CPWL_Color& crLeftTop, 220 const CPWL_Color& crLeftTop,
221 const CPWL_Color& crRightBottom, 221 const CPWL_Color& crRightBottom,
222 int32_t nStyle, 222 int32_t nStyle,
223 const CPWL_Dash& dash, 223 const CPWL_Dash& dash,
224 int32_t nTransparancy); 224 int32_t nTransparancy);
225 static void DrawFillArea(CFX_RenderDevice* pDevice, 225 static void DrawFillArea(CFX_RenderDevice* pDevice,
226 CPDF_Matrix* pUser2Device, 226 CFX_Matrix* pUser2Device,
227 const CPDF_Point* pPts, 227 const CPDF_Point* pPts,
228 int32_t nCount, 228 int32_t nCount,
229 const FX_COLORREF& color); 229 const FX_COLORREF& color);
230 static void DrawShadow(CFX_RenderDevice* pDevice, 230 static void DrawShadow(CFX_RenderDevice* pDevice,
231 CPDF_Matrix* pUser2Device, 231 CFX_Matrix* pUser2Device,
232 FX_BOOL bVertical, 232 FX_BOOL bVertical,
233 FX_BOOL bHorizontal, 233 FX_BOOL bHorizontal,
234 CPDF_Rect rect, 234 CPDF_Rect rect,
235 int32_t nTransparancy, 235 int32_t nTransparancy,
236 int32_t nStartGray, 236 int32_t nStartGray,
237 int32_t nEndGray); 237 int32_t nEndGray);
238 static void DrawEditSpellCheck(CFX_RenderDevice* pDevice, 238 static void DrawEditSpellCheck(CFX_RenderDevice* pDevice,
239 CPDF_Matrix* pUser2Device, 239 CFX_Matrix* pUser2Device,
240 IFX_Edit* pEdit, 240 IFX_Edit* pEdit,
241 const CPDF_Rect& rcClip, 241 const CPDF_Rect& rcClip,
242 const CPDF_Point& ptOffset, 242 const CPDF_Point& ptOffset,
243 const CPVT_WordRange* pRange, 243 const CPVT_WordRange* pRange,
244 IPWL_SpellCheck* pSpellCheck); 244 IPWL_SpellCheck* pSpellCheck);
245 245
246 public: 246 public:
247 static void ConvertCMYK2RGB(FX_FLOAT dC, 247 static void ConvertCMYK2RGB(FX_FLOAT dC,
248 FX_FLOAT dM, 248 FX_FLOAT dM,
249 FX_FLOAT dY, 249 FX_FLOAT dY,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 FX_FLOAT& green, 285 FX_FLOAT& green,
286 FX_FLOAT& blue); 286 FX_FLOAT& blue);
287 287
288 public: 288 public:
289 static CFX_ByteString GetIconAppStream( 289 static CFX_ByteString GetIconAppStream(
290 int32_t nType, 290 int32_t nType,
291 const CPDF_Rect& rect, 291 const CPDF_Rect& rect,
292 const CPWL_Color& crFill, 292 const CPWL_Color& crFill,
293 const CPWL_Color& crStroke = PWL_DEFAULT_BLACKCOLOR); 293 const CPWL_Color& crStroke = PWL_DEFAULT_BLACKCOLOR);
294 static void DrawIconAppStream(CFX_RenderDevice* pDevice, 294 static void DrawIconAppStream(CFX_RenderDevice* pDevice,
295 CPDF_Matrix* pUser2Device, 295 CFX_Matrix* pUser2Device,
296 int32_t nType, 296 int32_t nType,
297 const CPDF_Rect& rect, 297 const CPDF_Rect& rect,
298 const CPWL_Color& crFill, 298 const CPWL_Color& crFill,
299 const CPWL_Color& crStroke, 299 const CPWL_Color& crStroke,
300 const int32_t nTransparancy); 300 const int32_t nTransparancy);
301 301
302 private: 302 private:
303 static CFX_ByteString GetAppStreamFromArray(const CPWL_PathData* pPathData, 303 static CFX_ByteString GetAppStreamFromArray(const CPWL_PathData* pPathData,
304 int32_t nCount); 304 int32_t nCount);
305 static void GetPathDataFromArray(CFX_PathData& path, 305 static void GetPathDataFromArray(CFX_PathData& path,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 CFX_PathData& path, 404 CFX_PathData& path,
405 const CPDF_Rect& crBBox, 405 const CPDF_Rect& crBBox,
406 const PWL_PATH_TYPE type); 406 const PWL_PATH_TYPE type);
407 static void GetGraphics_Foxit(CFX_ByteString& sPathData, 407 static void GetGraphics_Foxit(CFX_ByteString& sPathData,
408 CFX_PathData& path, 408 CFX_PathData& path,
409 const CPDF_Rect& crBBox, 409 const CPDF_Rect& crBBox,
410 const PWL_PATH_TYPE type); 410 const PWL_PATH_TYPE type);
411 }; 411 };
412 412
413 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ 413 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Signature.h ('k') | fpdfsdk/include/pdfwindow/PWL_Wnd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698