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_FWL_CFWL_PICTUREBOX_H_
8 #define XFA_FWL_CFWL_PICTUREBOX_H_
9 
10 #include "xfa/fwl/cfwl_widget.h"
11 #include "xfa/fwl/cfwl_widgetproperties.h"
12 
13 class CFX_DIBitmap;
14 class CFWL_Widget;
15 
16 class CFWL_PictureBox final : public CFWL_Widget {
17  public:
18   explicit CFWL_PictureBox(const CFWL_App* pApp);
19   ~CFWL_PictureBox() override;
20 
21   // CFWL_Widget
22   FWL_Type GetClassID() const override;
23   void Update() override;
24   void DrawWidget(CXFA_Graphics* pGraphics, const CFX_Matrix& matrix) override;
25   void OnDrawWidget(CXFA_Graphics* pGraphics,
26                     const CFX_Matrix& matrix) override;
27 
28  private:
29   CFX_RectF m_rtClient;
30   CFX_RectF m_rtImage;
31   CFX_Matrix m_matrix;
32 };
33 
34 #endif  // XFA_FWL_CFWL_PICTUREBOX_H_
35