blob: 11689d2559f16fc9ddeb7a93813d3b8051afa604 [file] [log] [blame]
Tom Sepez99ffdb02016-01-26 14:51:21 -08001// 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
dsinclair447b1f32016-12-08 10:06:32 -08007#ifndef XFA_FWL_CFWL_PICTUREBOX_H_
8#define XFA_FWL_CFWL_PICTUREBOX_H_
Dan Sinclairc7cd8092016-02-18 15:02:55 -05009
dsinclair447b1f32016-12-08 10:06:32 -080010#include "xfa/fwl/cfwl_widget.h"
11#include "xfa/fwl/cfwl_widgetproperties.h"
dsinclair2c489cc2016-11-23 16:17:20 -080012
dsinclair2c489cc2016-11-23 16:17:20 -080013class CFX_DIBitmap;
14class CFWL_Widget;
Dan Sinclaire73c5ce2016-02-25 13:38:37 -050015
Tom Sepez55865452018-08-27 20:18:04 +000016class CFWL_PictureBox final : public CFWL_Widget {
Tom Sepez99ffdb02016-01-26 14:51:21 -080017 public:
dsinclair1a7534a2016-11-22 15:56:11 -080018 explicit CFWL_PictureBox(const CFWL_App* pApp);
weili4ce94e12016-06-18 06:21:57 -070019 ~CFWL_PictureBox() override;
20
dsinclair2c489cc2016-11-23 16:17:20 -080021 // CFWL_Widget
22 FWL_Type GetClassID() const override;
dsinclair2c489cc2016-11-23 16:17:20 -080023 void Update() override;
Lei Zhang4b472142017-08-17 14:30:08 -070024 void DrawWidget(CXFA_Graphics* pGraphics, const CFX_Matrix& matrix) override;
Dan Sinclair2b918c82017-07-13 14:47:10 -040025 void OnDrawWidget(CXFA_Graphics* pGraphics,
Lei Zhang4b472142017-08-17 14:30:08 -070026 const CFX_Matrix& matrix) override;
dsinclair2c489cc2016-11-23 16:17:20 -080027
28 private:
29 CFX_RectF m_rtClient;
30 CFX_RectF m_rtImage;
31 CFX_Matrix m_matrix;
Tom Sepez99ffdb02016-01-26 14:51:21 -080032};
Dan Sinclairc7cd8092016-02-18 15:02:55 -050033
dsinclair447b1f32016-12-08 10:06:32 -080034#endif // XFA_FWL_CFWL_PICTUREBOX_H_