Dan Sinclair | 2eddb66 | 2017-05-25 16:49:51 -0400 | [diff] [blame] | 1 | // Copyright 2017 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 | |
Dan Sinclair | 24ef633 | 2017-07-24 10:52:57 -0400 | [diff] [blame] | 7 | #ifndef XFA_FXFA_CXFA_FFLINE_H_ |
| 8 | #define XFA_FXFA_CXFA_FFLINE_H_ |
Dan Sinclair | 2eddb66 | 2017-05-25 16:49:51 -0400 | [diff] [blame] | 9 | |
Dan Sinclair | 24ef633 | 2017-07-24 10:52:57 -0400 | [diff] [blame] | 10 | #include "xfa/fxfa/cxfa_ffdraw.h" |
Dan Sinclair | 2eddb66 | 2017-05-25 16:49:51 -0400 | [diff] [blame] | 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 |
Dan Sinclair | 2b918c8 | 2017-07-13 14:47:10 -0400 | [diff] [blame] | 18 | void RenderWidget(CXFA_Graphics* pGS, |
Lei Zhang | 7c9d4c2 | 2017-08-17 13:53:52 -0700 | [diff] [blame] | 19 | const CFX_Matrix& matrix, |
Dan Sinclair | 2eddb66 | 2017-05-25 16:49:51 -0400 | [diff] [blame] | 20 | uint32_t dwStatus) override; |
| 21 | |
| 22 | private: |
| 23 | void GetRectFromHand(CFX_RectF& rect, int32_t iHand, float fLineWidth); |
| 24 | }; |
| 25 | |
Dan Sinclair | 24ef633 | 2017-07-24 10:52:57 -0400 | [diff] [blame] | 26 | #endif // XFA_FXFA_CXFA_FFLINE_H_ |