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 #ifndef XFA_FXFA_APP_XFA_FFPATH_H_ 8 #define XFA_FXFA_APP_XFA_FFPATH_H_ 9 10 #include "xfa/fxfa/app/xfa_ffdraw.h" 11 12 class CXFA_FFLine : public CXFA_FFDraw { 13 public: 14 explicit CXFA_FFLine(CXFA_WidgetAcc* pDataAcc); 15 ~CXFA_FFLine() override; 16 17 // CXFA_FFWidget 18 void RenderWidget(CFX_Graphics* pGS, 19 CFX_Matrix* pMatrix, 20 uint32_t dwStatus) override; 21 22 private: 23 void GetRectFromHand(CFX_RectF& rect, int32_t iHand, FX_FLOAT fLineWidth); 24 }; 25 26 class CXFA_FFArc : public CXFA_FFDraw { 27 public: 28 explicit CXFA_FFArc(CXFA_WidgetAcc* pDataAcc); 29 ~CXFA_FFArc() override; 30 31 // CXFA_FFWidget 32 void RenderWidget(CFX_Graphics* pGS, 33 CFX_Matrix* pMatrix, 34 uint32_t dwStatus) override; 35 }; 36 37 class CXFA_FFRectangle : public CXFA_FFDraw { 38 public: 39 explicit CXFA_FFRectangle(CXFA_WidgetAcc* pDataAcc); 40 ~CXFA_FFRectangle() override; 41 42 // CXFA_FFWidget 43 void RenderWidget(CFX_Graphics* pGS, 44 CFX_Matrix* pMatrix, 45 uint32_t dwStatus) override; 46 }; 47 48 #endif // XFA_FXFA_APP_XFA_FFPATH_H_ 49