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

Side by Side Diff: xfa/fxgraphics/cfx_pattern.h

Issue 1810563002: Move xfa/include/fxgraphics/fx_graphics.h to xfa/fxgraphics. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months 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
OLDNEW
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FXGRAPHICS_CFX_PATTERN_H_
8 #define XFA_FXGRAPHICS_CFX_PATTERN_H_
9
10 #include "core/include/fxcrt/fx_coordinates.h"
11 #include "core/include/fxcrt/fx_system.h"
12 #include "xfa/fxgraphics/include/cfx_graphics.h"
13
14 class CFX_DIBitmap;
15 class CFX_Matrix;
16
17 enum { FX_PATTERN_None = 0, FX_PATTERN_Bitmap, FX_PATTERN_Hatch };
Tom Sepez 2016/03/16 17:08:52 Anon enum? Is this the value used for |int32_t m_
dsinclair 2016/03/16 19:21:07 I removed the enum. The CFX_DIBitmap override is n
18
19 class CFX_Pattern {
20 public:
21 CFX_Pattern();
22 virtual ~CFX_Pattern();
23
24 FX_ERR Create(CFX_DIBitmap* bitmap,
25 const FX_FLOAT xStep,
26 const FX_FLOAT yStep,
27 CFX_Matrix* matrix = NULL);
28 FX_ERR Create(FX_HatchStyle hatchStyle,
29 const FX_ARGB foreArgb,
30 const FX_ARGB backArgb,
31 CFX_Matrix* matrix = NULL);
32
33 private:
34 friend class CFX_Graphics;
35
36 int32_t m_type;
Tom Sepez 2016/03/16 17:08:52 can this be const if the ctor took the type as an
dsinclair 2016/03/16 19:21:07 Ack.
37 CFX_Matrix m_matrix;
38 union {
39 struct {
40 CFX_RectF rect;
41 FX_FLOAT xStep;
42 FX_FLOAT yStep;
43 FX_BOOL isColored;
44 } m_rectInfo;
45 struct {
46 CFX_DIBitmap* bitmap;
47 FX_FLOAT x1Step;
48 FX_FLOAT y1Step;
49 } m_bitmapInfo;
50 struct {
51 FX_HatchStyle hatchStyle;
52 FX_ARGB foreArgb;
53 FX_ARGB backArgb;
54 } m_hatchInfo;
55 };
56 };
57
58 #endif // XFA_FXGRAPHICS_CFX_PATTERN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698