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

Side by Side Diff: xfa/fxgraphics/cfx_path.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_graphics.cpp ('k') | xfa/fxgraphics/cfx_path.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PATH_H_
8 #define XFA_FXGRAPHICS_CFX_PATH_H_
9
10 #include "core/include/fxcrt/fx_system.h"
11 #include "xfa/fxgraphics/include/cfx_graphics.h"
12
13 class CFX_PathData;
14 class CFX_PathGenerator;
15
16 class CFX_Path {
17 public:
18 CFX_Path();
19 virtual ~CFX_Path();
20
21 FX_ERR Create();
22 FX_ERR MoveTo(FX_FLOAT x, FX_FLOAT y);
23 FX_ERR LineTo(FX_FLOAT x, FX_FLOAT y);
24 FX_ERR BezierTo(FX_FLOAT ctrlX1,
25 FX_FLOAT ctrlY1,
26 FX_FLOAT ctrlX2,
27 FX_FLOAT ctrlY2,
28 FX_FLOAT toX,
29 FX_FLOAT toY);
30 FX_ERR ArcTo(FX_FLOAT left,
31 FX_FLOAT top,
32 FX_FLOAT width,
33 FX_FLOAT height,
34 FX_FLOAT startAngle,
35 FX_FLOAT sweepAngle);
36 FX_ERR Close();
37
38 FX_ERR AddLine(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2);
39 FX_ERR AddBezier(FX_FLOAT startX,
40 FX_FLOAT startY,
41 FX_FLOAT ctrlX1,
42 FX_FLOAT ctrlY1,
43 FX_FLOAT ctrlX2,
44 FX_FLOAT ctrlY2,
45 FX_FLOAT endX,
46 FX_FLOAT endY);
47 FX_ERR AddRectangle(FX_FLOAT left,
48 FX_FLOAT top,
49 FX_FLOAT width,
50 FX_FLOAT height);
51 FX_ERR AddEllipse(FX_FLOAT left,
52 FX_FLOAT top,
53 FX_FLOAT width,
54 FX_FLOAT height);
55 FX_ERR AddEllipse(const CFX_RectF& rect);
56 FX_ERR AddArc(FX_FLOAT left,
57 FX_FLOAT top,
58 FX_FLOAT width,
59 FX_FLOAT height,
60 FX_FLOAT startAngle,
61 FX_FLOAT sweepAngle);
62 FX_ERR AddPie(FX_FLOAT left,
63 FX_FLOAT top,
64 FX_FLOAT width,
65 FX_FLOAT height,
66 FX_FLOAT startAngle,
67 FX_FLOAT sweepAngle);
68 FX_ERR AddSubpath(CFX_Path* path);
69 FX_ERR Clear();
70
71 FX_BOOL IsEmpty();
72 CFX_PathData* GetPathData();
73
74 private:
75 CFX_PathGenerator* m_generator;
76 };
77
78 #endif // XFA_FXGRAPHICS_CFX_PATH_H_
OLDNEW
« no previous file with comments | « xfa/fxgraphics/cfx_graphics.cpp ('k') | xfa/fxgraphics/cfx_path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698