xfa_ffpath.h revision 4d3acf4ec42bf6e838f9060103aff98fbf170794
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
12class CXFA_FFLine : public CXFA_FFDraw {
13 public:
14  CXFA_FFLine(CXFA_FFPageView* pPageView, 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};
25class CXFA_FFArc : public CXFA_FFDraw {
26 public:
27  CXFA_FFArc(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
28  ~CXFA_FFArc() override;
29
30  // CXFA_FFWidget
31  void RenderWidget(CFX_Graphics* pGS,
32                    CFX_Matrix* pMatrix,
33                    uint32_t dwStatus) override;
34};
35
36class CXFA_FFRectangle : public CXFA_FFDraw {
37 public:
38  CXFA_FFRectangle(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
39  ~CXFA_FFRectangle() override;
40
41  // CXFA_FFWidget
42  void RenderWidget(CFX_Graphics* pGS,
43                    CFX_Matrix* pMatrix,
44                    uint32_t dwStatus) override;
45};
46
47#endif  // XFA_FXFA_APP_XFA_FFPATH_H_
48