blob: 71c45e323e209e800ab5c79370e9a0ff83e65757 [file] [log] [blame]
Dan Sinclair1770c022016-03-14 14:14:16 -04001// 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
12class CXFA_FFLine : public CXFA_FFDraw {
13 public:
14 CXFA_FFLine(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
weili47bcd4c2016-06-16 08:00:06 -070015 ~CXFA_FFLine() override;
16
17 // CXFA_FFWidget
18 void RenderWidget(CFX_Graphics* pGS,
dsinclair9d6ca992016-06-16 10:51:56 -070019 CFX_Matrix* pMatrix,
20 uint32_t dwStatus) override;
Dan Sinclair1770c022016-03-14 14:14:16 -040021
22 private:
23 void GetRectFromHand(CFX_RectF& rect, int32_t iHand, FX_FLOAT fLineWidth);
24};
25class CXFA_FFArc : public CXFA_FFDraw {
26 public:
27 CXFA_FFArc(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
weili47bcd4c2016-06-16 08:00:06 -070028 ~CXFA_FFArc() override;
29
30 // CXFA_FFWidget
31 void RenderWidget(CFX_Graphics* pGS,
dsinclair9d6ca992016-06-16 10:51:56 -070032 CFX_Matrix* pMatrix,
33 uint32_t dwStatus) override;
Dan Sinclair1770c022016-03-14 14:14:16 -040034};
weili47bcd4c2016-06-16 08:00:06 -070035
Dan Sinclair1770c022016-03-14 14:14:16 -040036class CXFA_FFRectangle : public CXFA_FFDraw {
37 public:
38 CXFA_FFRectangle(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
weili47bcd4c2016-06-16 08:00:06 -070039 ~CXFA_FFRectangle() override;
40
41 // CXFA_FFWidget
42 void RenderWidget(CFX_Graphics* pGS,
dsinclair9d6ca992016-06-16 10:51:56 -070043 CFX_Matrix* pMatrix,
44 uint32_t dwStatus) override;
Dan Sinclair1770c022016-03-14 14:14:16 -040045};
46
47#endif // XFA_FXFA_APP_XFA_FFPATH_H_