summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_pathdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_pathdata.h')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_pathdata.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_pathdata.h b/fpdfsdk/pdfwindow/cpwl_pathdata.h
new file mode 100644
index 0000000000..de969b66ae
--- /dev/null
+++ b/fpdfsdk/pdfwindow/cpwl_pathdata.h
@@ -0,0 +1,30 @@
+// Copyright 2017 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef FPDFSDK_PDFWINDOW_CPWL_PATHDATA_H_
+#define FPDFSDK_PDFWINDOW_CPWL_PATHDATA_H_
+
+#include "core/fxcrt/fx_coordinates.h"
+
+enum PWL_PATHDATA_TYPE {
+ PWLPT_MOVETO,
+ PWLPT_LINETO,
+ PWLPT_BEZIERTO,
+ PWLPT_UNKNOWN
+};
+
+class CPWL_PathData {
+ public:
+ CPWL_PathData();
+ CPWL_PathData(const CFX_PointF& pt, PWL_PATHDATA_TYPE tp);
+ CPWL_PathData(const CPWL_PathData&);
+ ~CPWL_PathData();
+
+ CFX_PointF point;
+ PWL_PATHDATA_TYPE type;
+};
+
+#endif // FPDFSDK_PDFWINDOW_CPWL_PATHDATA_H_