Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 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 | CXFA_FFLine(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
weili | 47bcd4c | 2016-06-16 08:00:06 -0700 | [diff] [blame] | 15 | ~CXFA_FFLine() override; |
| 16 | |
| 17 | // CXFA_FFWidget |
| 18 | void RenderWidget(CFX_Graphics* pGS, |
dsinclair | 9d6ca99 | 2016-06-16 10:51:56 -0700 | [diff] [blame] | 19 | CFX_Matrix* pMatrix, |
| 20 | uint32_t dwStatus) override; |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 21 | |
| 22 | private: |
| 23 | void GetRectFromHand(CFX_RectF& rect, int32_t iHand, FX_FLOAT fLineWidth); |
| 24 | }; |
| 25 | class CXFA_FFArc : public CXFA_FFDraw { |
| 26 | public: |
| 27 | CXFA_FFArc(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
weili | 47bcd4c | 2016-06-16 08:00:06 -0700 | [diff] [blame] | 28 | ~CXFA_FFArc() override; |
| 29 | |
| 30 | // CXFA_FFWidget |
| 31 | void RenderWidget(CFX_Graphics* pGS, |
dsinclair | 9d6ca99 | 2016-06-16 10:51:56 -0700 | [diff] [blame] | 32 | CFX_Matrix* pMatrix, |
| 33 | uint32_t dwStatus) override; |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 34 | }; |
weili | 47bcd4c | 2016-06-16 08:00:06 -0700 | [diff] [blame] | 35 | |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 36 | class CXFA_FFRectangle : public CXFA_FFDraw { |
| 37 | public: |
| 38 | CXFA_FFRectangle(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); |
weili | 47bcd4c | 2016-06-16 08:00:06 -0700 | [diff] [blame] | 39 | ~CXFA_FFRectangle() override; |
| 40 | |
| 41 | // CXFA_FFWidget |
| 42 | void RenderWidget(CFX_Graphics* pGS, |
dsinclair | 9d6ca99 | 2016-06-16 10:51:56 -0700 | [diff] [blame] | 43 | CFX_Matrix* pMatrix, |
| 44 | uint32_t dwStatus) override; |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 45 | }; |
| 46 | |
| 47 | #endif // XFA_FXFA_APP_XFA_FFPATH_H_ |