| 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_INCLUDE_FXCRT_FX_COORDINATES_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ |
| 8 #define CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" | 10 #include "core/include/fxcrt/fx_basic.h" |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 rc1.width == rc2.width && rc1.height == rc2.height; | 530 rc1.width == rc2.width && rc1.height == rc2.height; |
| 531 } | 531 } |
| 532 friend bool operator!=(const FXT_RECT& rc1, const FXT_RECT& rc2) { | 532 friend bool operator!=(const FXT_RECT& rc1, const FXT_RECT& rc2) { |
| 533 return !(rc1 == rc2); | 533 return !(rc1 == rc2); |
| 534 } | 534 } |
| 535 baseType left, top; | 535 baseType left, top; |
| 536 baseType width, height; | 536 baseType width, height; |
| 537 }; | 537 }; |
| 538 typedef CFX_RTemplate<int32_t> CFX_Rect; | 538 typedef CFX_RTemplate<int32_t> CFX_Rect; |
| 539 typedef CFX_RTemplate<FX_FLOAT> CFX_RectF; | 539 typedef CFX_RTemplate<FX_FLOAT> CFX_RectF; |
| 540 typedef CFX_RTemplate<int32_t>* FX_LPRECT; | |
| 541 typedef CFX_RTemplate<FX_FLOAT>* FX_LPRECTF; | |
| 542 typedef CFX_RTemplate<int32_t> const* FX_LPCRECT; | |
| 543 typedef CFX_RTemplate<FX_FLOAT> const* FX_LPCRECTF; | |
| 544 typedef CFX_ArrayTemplate<CFX_RectF> CFX_RectFArray; | 540 typedef CFX_ArrayTemplate<CFX_RectF> CFX_RectFArray; |
| 545 | 541 |
| 546 class CFX_Matrix { | 542 class CFX_Matrix { |
| 547 public: | 543 public: |
| 548 CFX_Matrix() { SetIdentity(); } | 544 CFX_Matrix() { SetIdentity(); } |
| 549 | 545 |
| 550 CFX_Matrix(FX_FLOAT a1, | 546 CFX_Matrix(FX_FLOAT a1, |
| 551 FX_FLOAT b1, | 547 FX_FLOAT b1, |
| 552 FX_FLOAT c1, | 548 FX_FLOAT c1, |
| 553 FX_FLOAT d1, | 549 FX_FLOAT d1, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 public: | 662 public: |
| 667 FX_FLOAT a; | 663 FX_FLOAT a; |
| 668 FX_FLOAT b; | 664 FX_FLOAT b; |
| 669 FX_FLOAT c; | 665 FX_FLOAT c; |
| 670 FX_FLOAT d; | 666 FX_FLOAT d; |
| 671 FX_FLOAT e; | 667 FX_FLOAT e; |
| 672 FX_FLOAT f; | 668 FX_FLOAT f; |
| 673 }; | 669 }; |
| 674 | 670 |
| 675 #endif // CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ | 671 #endif // CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ |
| OLD | NEW |