1 // Copyright 2014 The PDFium Authors 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 12 class CFWL_PictureBox final : public CFWL_Widget { 13 public: 14 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED; 15 ~CFWL_PictureBox() override; 16 17 // CFWL_Widget 18 FWL_Type GetClassID() const override; 19 void Update() override; 20 void DrawWidget(CFGAS_GEGraphics* pGraphics, 21 const CFX_Matrix& matrix) override; 22 void OnDrawWidget(CFGAS_GEGraphics* pGraphics, 23 const CFX_Matrix& matrix) override; 24 25 private: 26 explicit CFWL_PictureBox(CFWL_App* pApp); 27 28 CFX_RectF m_ClientRect; 29 CFX_RectF m_ImageRect; 30 CFX_Matrix m_matrix; 31 }; 32 33 #endif // XFA_FWL_CFWL_PICTUREBOX_H_ 34