Tom Sepez | 99ffdb0 | 2016-01-26 14:51:21 -0800 | [diff] [blame] | 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 | |
dsinclair | 447b1f3 | 2016-12-08 10:06:32 -0800 | [diff] [blame] | 7 | #ifndef XFA_FWL_CFWL_PICTUREBOX_H_ |
| 8 | #define XFA_FWL_CFWL_PICTUREBOX_H_ |
Dan Sinclair | c7cd809 | 2016-02-18 15:02:55 -0500 | [diff] [blame] | 9 | |
dsinclair | 447b1f3 | 2016-12-08 10:06:32 -0800 | [diff] [blame] | 10 | #include "xfa/fwl/cfwl_widget.h" |
| 11 | #include "xfa/fwl/cfwl_widgetproperties.h" |
dsinclair | 2c489cc | 2016-11-23 16:17:20 -0800 | [diff] [blame] | 12 | |
dsinclair | 2c489cc | 2016-11-23 16:17:20 -0800 | [diff] [blame] | 13 | class CFX_DIBitmap; |
| 14 | class CFWL_Widget; |
Dan Sinclair | e73c5ce | 2016-02-25 13:38:37 -0500 | [diff] [blame] | 15 | |
Tom Sepez | 5586545 | 2018-08-27 20:18:04 +0000 | [diff] [blame] | 16 | class CFWL_PictureBox final : public CFWL_Widget { |
Tom Sepez | 99ffdb0 | 2016-01-26 14:51:21 -0800 | [diff] [blame] | 17 | public: |
dsinclair | 1a7534a | 2016-11-22 15:56:11 -0800 | [diff] [blame] | 18 | explicit CFWL_PictureBox(const CFWL_App* pApp); |
weili | 4ce94e1 | 2016-06-18 06:21:57 -0700 | [diff] [blame] | 19 | ~CFWL_PictureBox() override; |
| 20 | |
dsinclair | 2c489cc | 2016-11-23 16:17:20 -0800 | [diff] [blame] | 21 | // CFWL_Widget |
| 22 | FWL_Type GetClassID() const override; |
dsinclair | 2c489cc | 2016-11-23 16:17:20 -0800 | [diff] [blame] | 23 | void Update() override; |
Lei Zhang | 4b47214 | 2017-08-17 14:30:08 -0700 | [diff] [blame] | 24 | void DrawWidget(CXFA_Graphics* pGraphics, const CFX_Matrix& matrix) override; |
Dan Sinclair | 2b918c8 | 2017-07-13 14:47:10 -0400 | [diff] [blame] | 25 | void OnDrawWidget(CXFA_Graphics* pGraphics, |
Lei Zhang | 4b47214 | 2017-08-17 14:30:08 -0700 | [diff] [blame] | 26 | const CFX_Matrix& matrix) override; |
dsinclair | 2c489cc | 2016-11-23 16:17:20 -0800 | [diff] [blame] | 27 | |
| 28 | private: |
| 29 | CFX_RectF m_rtClient; |
| 30 | CFX_RectF m_rtImage; |
| 31 | CFX_Matrix m_matrix; |
Tom Sepez | 99ffdb0 | 2016-01-26 14:51:21 -0800 | [diff] [blame] | 32 | }; |
Dan Sinclair | c7cd809 | 2016-02-18 15:02:55 -0500 | [diff] [blame] | 33 | |
dsinclair | 447b1f3 | 2016-12-08 10:06:32 -0800 | [diff] [blame] | 34 | #endif // XFA_FWL_CFWL_PICTUREBOX_H_ |