1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #define FFL_BASE_USERUNIT 1.0f / 72.0f 8 9 template<class T> T FFL_MIN (const T & i, const T & j) { return ((i < j) ? i : j); } 10 template<class T> T FFL_MAX (const T & i, const T & j) { return ((i > j) ? i : j); } 11 12 class CFFL_Utils 13 { 14 public: 15 static CPDF_Rect MaxRect(const CPDF_Rect & rect1,const CPDF_Rect & rect2); 16 static CPDF_Rect InflateRect(const CPDF_Rect & crRect, const FX_FLOAT & fSize); 17 static CPDF_Rect DeflateRect(const CPDF_Rect & crRect, const FX_FLOAT & fSize); 18 static FX_BOOL TraceObject(CPDF_Object* pObj); 19 }; 20 21