OLD | NEW |
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 CORE_FXCRT_FX_COORDINATES_H_ | 7 #ifndef CORE_FXCRT_FX_COORDINATES_H_ |
8 #define CORE_FXCRT_FX_COORDINATES_H_ | 8 #define CORE_FXCRT_FX_COORDINATES_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_basic.h" | 10 #include "core/fxcrt/fx_basic.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 | 69 |
70 BaseType x; | 70 BaseType x; |
71 BaseType y; | 71 BaseType y; |
72 }; | 72 }; |
73 typedef CFX_PSTemplate<int32_t> CFX_Point; | 73 typedef CFX_PSTemplate<int32_t> CFX_Point; |
74 typedef CFX_PSTemplate<FX_FLOAT> CFX_PointF; | 74 typedef CFX_PSTemplate<FX_FLOAT> CFX_PointF; |
75 typedef CFX_PSTemplate<int32_t> CFX_Size; | 75 typedef CFX_PSTemplate<int32_t> CFX_Size; |
76 typedef CFX_PSTemplate<FX_FLOAT> CFX_SizeF; | 76 typedef CFX_PSTemplate<FX_FLOAT> CFX_SizeF; |
77 | 77 |
78 #ifdef PDF_ENABLE_XFA | |
79 typedef CFX_ArrayTemplate<CFX_Point> CFX_Points; | |
80 typedef CFX_ArrayTemplate<CFX_PointF> CFX_PointsF; | |
81 #endif // PDF_ENABLE_XFA | |
82 | |
83 template <class BaseType> | 78 template <class BaseType> |
84 class CFX_VTemplate : public CFX_PSTemplate<BaseType> { | 79 class CFX_VTemplate : public CFX_PSTemplate<BaseType> { |
85 public: | 80 public: |
86 using CFX_PSTemplate<BaseType>::x; | 81 using CFX_PSTemplate<BaseType>::x; |
87 using CFX_PSTemplate<BaseType>::y; | 82 using CFX_PSTemplate<BaseType>::y; |
88 | 83 |
89 CFX_VTemplate() : CFX_PSTemplate<BaseType>() {} | 84 CFX_VTemplate() : CFX_PSTemplate<BaseType>() {} |
90 CFX_VTemplate(BaseType new_x, BaseType new_y) | 85 CFX_VTemplate(BaseType new_x, BaseType new_y) |
91 : CFX_PSTemplate<BaseType>(new_x, new_y) {} | 86 : CFX_PSTemplate<BaseType>(new_x, new_y) {} |
92 | 87 |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 public: | 663 public: |
669 FX_FLOAT a; | 664 FX_FLOAT a; |
670 FX_FLOAT b; | 665 FX_FLOAT b; |
671 FX_FLOAT c; | 666 FX_FLOAT c; |
672 FX_FLOAT d; | 667 FX_FLOAT d; |
673 FX_FLOAT e; | 668 FX_FLOAT e; |
674 FX_FLOAT f; | 669 FX_FLOAT f; |
675 }; | 670 }; |
676 | 671 |
677 #endif // CORE_FXCRT_FX_COORDINATES_H_ | 672 #endif // CORE_FXCRT_FX_COORDINATES_H_ |
OLD | NEW |