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