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