| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 }; | 408 }; |
| 409 struct FX_SMALL_RECT { | 409 struct FX_SMALL_RECT { |
| 410 int16_t Left; | 410 int16_t Left; |
| 411 | 411 |
| 412 int16_t Top; | 412 int16_t Top; |
| 413 | 413 |
| 414 int16_t Right; | 414 int16_t Right; |
| 415 | 415 |
| 416 int16_t Bottom; | 416 int16_t Bottom; |
| 417 }; | 417 }; |
| 418 | |
| 419 class CFX_FloatPoint { | |
| 420 public: | |
| 421 CFX_FloatPoint(FX_FLOAT xx, FX_FLOAT yy) : x(xx), y(xx) {} | |
| 422 | |
| 423 FX_FLOAT x; | |
| 424 FX_FLOAT y; | |
| 425 }; | |
| 426 | |
| 427 class CFX_FloatRect { | 418 class CFX_FloatRect { |
| 428 public: | 419 public: |
| 429 CFX_FloatRect() { left = right = bottom = top = 0; } | 420 CFX_FloatRect() { left = right = bottom = top = 0; } |
| 430 | 421 |
| 431 CFX_FloatRect(FX_FLOAT left1, | 422 CFX_FloatRect(FX_FLOAT left1, |
| 432 FX_FLOAT bottom1, | 423 FX_FLOAT bottom1, |
| 433 FX_FLOAT right1, | 424 FX_FLOAT right1, |
| 434 FX_FLOAT top1) { | 425 FX_FLOAT top1) { |
| 435 left = left1; | 426 left = left1; |
| 436 bottom = bottom1; | 427 bottom = bottom1; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 public: | 657 public: |
| 667 FX_FLOAT a; | 658 FX_FLOAT a; |
| 668 FX_FLOAT b; | 659 FX_FLOAT b; |
| 669 FX_FLOAT c; | 660 FX_FLOAT c; |
| 670 FX_FLOAT d; | 661 FX_FLOAT d; |
| 671 FX_FLOAT e; | 662 FX_FLOAT e; |
| 672 FX_FLOAT f; | 663 FX_FLOAT f; |
| 673 }; | 664 }; |
| 674 | 665 |
| 675 #endif // CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ | 666 #endif // CORE_INCLUDE_FXCRT_FX_COORDINATES_H_ |
| OLD | NEW |