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

Side by Side Diff: xfa/fxgraphics/cfx_path_generator.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
« no previous file with comments | « xfa/fxgraphics/cfx_path.cpp ('k') | xfa/fxgraphics/cfx_path_generator.cpp » ('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 XFA_FXGRAPHICS_FX_PATH_GENERATOR_H_ 7 #ifndef XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_
8 #define XFA_FXGRAPHICS_FX_PATH_GENERATOR_H_ 8 #define XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_
9 9
10 #include "core/include/fxge/fx_ge.h" 10 #include "core/include/fxge/fx_ge.h"
11 11
12 class CFX_PathGenerator { 12 class CFX_PathGenerator {
13 public: 13 public:
14 CFX_PathGenerator(); 14 CFX_PathGenerator();
15 ~CFX_PathGenerator();
16
15 void Create(); 17 void Create();
16 ~CFX_PathGenerator();
17 CFX_PathData* GetPathData() const { return m_pPathData; } 18 CFX_PathData* GetPathData() const { return m_pPathData; }
19
18 void AddPathData(CFX_PathData* path_data); 20 void AddPathData(CFX_PathData* path_data);
19 void AddPathData(FX_PATHPOINT* points, int count); 21 void AddPathData(FX_PATHPOINT* points, int count);
22
20 void MoveTo(FX_FLOAT x, FX_FLOAT y); 23 void MoveTo(FX_FLOAT x, FX_FLOAT y);
21 void LineTo(FX_FLOAT x, FX_FLOAT y); 24 void LineTo(FX_FLOAT x, FX_FLOAT y);
22 void BezierTo(FX_FLOAT ctrl_x1, 25 void BezierTo(FX_FLOAT ctrl_x1,
23 FX_FLOAT ctrl_y1, 26 FX_FLOAT ctrl_y1,
24 FX_FLOAT ctrl_x2, 27 FX_FLOAT ctrl_x2,
25 FX_FLOAT ctrl_y2, 28 FX_FLOAT ctrl_y2,
26 FX_FLOAT to_x, 29 FX_FLOAT to_x,
27 FX_FLOAT to_y); 30 FX_FLOAT to_y);
28 void Close(); 31 void Close();
29 void ArcTo(FX_FLOAT x, 32 void ArcTo(FX_FLOAT x,
(...skipping 24 matching lines...) Expand all
54 FX_FLOAT y, 57 FX_FLOAT y,
55 FX_FLOAT width, 58 FX_FLOAT width,
56 FX_FLOAT height, 59 FX_FLOAT height,
57 FX_FLOAT start_angle, 60 FX_FLOAT start_angle,
58 FX_FLOAT sweep_angle); 61 FX_FLOAT sweep_angle);
59 62
60 protected: 63 protected:
61 CFX_PathData* m_pPathData; 64 CFX_PathData* m_pPathData;
62 }; 65 };
63 66
64 #endif // XFA_FXGRAPHICS_FX_PATH_GENERATOR_H_ 67 #endif // XFA_FXGRAPHICS_CFX_PATH_GENERATOR_H_
OLDNEW
« no previous file with comments | « xfa/fxgraphics/cfx_path.cpp ('k') | xfa/fxgraphics/cfx_path_generator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698