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 _FXCRT_COORDINATES_ | 7 #ifndef _FXCRT_COORDINATES_ |
8 #define _FXCRT_COORDINATES_ | 8 #define _FXCRT_COORDINATES_ |
9 template<class baseType> class CFX_PSVTemplate; | 9 template<class baseType> class CFX_PSVTemplate; |
10 template<class baseType> class CFX_VTemplate; | 10 template<class baseType> class CFX_VTemplate; |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
530 struct FX_RECT { | 530 struct FX_RECT { |
531 | 531 |
532 int left; | 532 int left; |
533 | 533 |
534 int top; | 534 int top; |
535 | 535 |
536 int right; | 536 int right; |
537 | 537 |
538 int bottom; | 538 int bottom; |
539 | 539 |
540 FX_RECT() {} | 540 FX_RECT() { left = 0; top = 0; right = 0; bottom = 0; } |
Tom Sepez
2015/02/10 23:17:04
nit: prefer initializer list syntax, e.g.
FX_RECT
| |
541 | 541 |
542 FX_RECT(int left1, int top1, int right1, int bottom1) | 542 FX_RECT(int left1, int top1, int right1, int bottom1) |
543 { | 543 { |
544 left = left1; | 544 left = left1; |
545 top = top1; | 545 top = top1; |
546 right = right1; | 546 right = right1; |
547 bottom = bottom1; | 547 bottom = bottom1; |
548 } | 548 } |
549 | 549 |
550 int Width() const | 550 int Width() const |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
893 public: | 893 public: |
894 FX_FLOAT a; | 894 FX_FLOAT a; |
895 FX_FLOAT b; | 895 FX_FLOAT b; |
896 FX_FLOAT c; | 896 FX_FLOAT c; |
897 FX_FLOAT d; | 897 FX_FLOAT d; |
898 FX_FLOAT e; | 898 FX_FLOAT e; |
899 FX_FLOAT f; | 899 FX_FLOAT f; |
900 }; | 900 }; |
901 #define CFX_AffineMatrix CFX_Matrix | 901 #define CFX_AffineMatrix CFX_Matrix |
902 #endif | 902 #endif |
OLD | NEW |