| 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_INCLUDE_FX_COORDINATES_H_ | 7 #ifndef CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ |
| 8 #define CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ | 8 #define CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 bool IsEmpty() const { return left >= right || bottom >= top; } | 231 bool IsEmpty() const { return left >= right || bottom >= top; } |
| 232 bool Contains(const CFX_FloatRect& other_rect) const; | 232 bool Contains(const CFX_FloatRect& other_rect) const; |
| 233 bool Contains(FX_FLOAT x, FX_FLOAT y) const; | 233 bool Contains(FX_FLOAT x, FX_FLOAT y) const; |
| 234 | 234 |
| 235 void Transform(const CFX_Matrix* pMatrix); | 235 void Transform(const CFX_Matrix* pMatrix); |
| 236 void Intersect(const CFX_FloatRect& other_rect); | 236 void Intersect(const CFX_FloatRect& other_rect); |
| 237 void Union(const CFX_FloatRect& other_rect); | 237 void Union(const CFX_FloatRect& other_rect); |
| 238 | 238 |
| 239 FX_RECT GetInnerRect() const; | 239 FX_RECT GetInnerRect() const; |
| 240 FX_RECT GetOutterRect() const; | 240 FX_RECT GetOuterRect() const; |
| 241 FX_RECT GetClosestRect() const; | 241 FX_RECT GetClosestRect() const; |
| 242 | 242 |
| 243 int Substract4(CFX_FloatRect& substract_rect, CFX_FloatRect* pRects); | 243 int Substract4(CFX_FloatRect& substract_rect, CFX_FloatRect* pRects); |
| 244 | 244 |
| 245 void InitRect(FX_FLOAT x, FX_FLOAT y) { | 245 void InitRect(FX_FLOAT x, FX_FLOAT y) { |
| 246 left = x; | 246 left = x; |
| 247 right = x; | 247 right = x; |
| 248 bottom = y; | 248 bottom = y; |
| 249 top = y; | 249 top = y; |
| 250 } | 250 } |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 public: | 685 public: |
| 686 FX_FLOAT a; | 686 FX_FLOAT a; |
| 687 FX_FLOAT b; | 687 FX_FLOAT b; |
| 688 FX_FLOAT c; | 688 FX_FLOAT c; |
| 689 FX_FLOAT d; | 689 FX_FLOAT d; |
| 690 FX_FLOAT e; | 690 FX_FLOAT e; |
| 691 FX_FLOAT f; | 691 FX_FLOAT f; |
| 692 }; | 692 }; |
| 693 | 693 |
| 694 #endif // CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ | 694 #endif // CORE_FXCRT_INCLUDE_FX_COORDINATES_H_ |
| OLD | NEW |