blob: fc13096d490b8354560c80127fc6269fc0fb9dd4 [file] [log] [blame]
Dan Sinclair2eddb662017-05-25 16:49:51 -04001// 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 Sinclair24ef6332017-07-24 10:52:57 -04007#ifndef XFA_FXFA_CXFA_FFLINE_H_
8#define XFA_FXFA_CXFA_FFLINE_H_
Dan Sinclair2eddb662017-05-25 16:49:51 -04009
Dan Sinclair24ef6332017-07-24 10:52:57 -040010#include "xfa/fxfa/cxfa_ffdraw.h"
Dan Sinclair2eddb662017-05-25 16:49:51 -040011
12class CXFA_FFLine : public CXFA_FFDraw {
13 public:
14 explicit CXFA_FFLine(CXFA_WidgetAcc* pDataAcc);
15 ~CXFA_FFLine() override;
16
17 // CXFA_FFWidget
Dan Sinclair2b918c82017-07-13 14:47:10 -040018 void RenderWidget(CXFA_Graphics* pGS,
Lei Zhang7c9d4c22017-08-17 13:53:52 -070019 const CFX_Matrix& matrix,
Dan Sinclair2eddb662017-05-25 16:49:51 -040020 uint32_t dwStatus) override;
21
22 private:
23 void GetRectFromHand(CFX_RectF& rect, int32_t iHand, float fLineWidth);
24};
25
Dan Sinclair24ef6332017-07-24 10:52:57 -040026#endif // XFA_FXFA_CXFA_FFLINE_H_