OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FWL_PICTUREBOX_IMP_H | 7 #ifndef _FWL_PICTUREBOX_IMP_H |
8 #define _FWL_PICTUREBOX_IMP_H | 8 #define _FWL_PICTUREBOX_IMP_H |
9 class CFWL_WidgetImp; | 9 class CFWL_WidgetImp; |
10 class CFWL_WidgetImpProperties; | 10 class CFWL_WidgetImpProperties; |
11 class CFWL_WidgetImpDelegate; | 11 class CFWL_WidgetImpDelegate; |
12 class IFWL_Widget; | 12 class IFWL_Widget; |
13 class CFWL_PictureBoxImp; | 13 class CFWL_PictureBoxImp; |
14 class CFWL_PictureBoxImpDelegate; | 14 class CFWL_PictureBoxImpDelegate; |
15 class CFWL_PictureBoxImp : public CFWL_WidgetImp { | 15 class CFWL_PictureBoxImp : public CFWL_WidgetImp { |
16 public: | 16 public: |
17 CFWL_PictureBoxImp(IFWL_Widget* pOuter = NULL); | |
18 CFWL_PictureBoxImp(const CFWL_WidgetImpProperties& properties, | 17 CFWL_PictureBoxImp(const CFWL_WidgetImpProperties& properties, |
19 IFWL_Widget* pOuter = NULL); | 18 IFWL_Widget* pOuter); |
20 ~CFWL_PictureBoxImp(); | 19 ~CFWL_PictureBoxImp(); |
21 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 20 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
22 virtual FX_DWORD GetClassID() const; | 21 virtual FX_DWORD GetClassID() const; |
23 virtual FWL_ERR Initialize(); | 22 virtual FWL_ERR Initialize(); |
24 virtual FWL_ERR Finalize(); | 23 virtual FWL_ERR Finalize(); |
25 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 24 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
26 virtual FWL_ERR Update(); | 25 virtual FWL_ERR Update(); |
27 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, | 26 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, |
28 const CFX_Matrix* pMatrix = NULL); | 27 const CFX_Matrix* pMatrix = NULL); |
29 | 28 |
(...skipping 13 matching lines...) Expand all Loading... |
43 class CFWL_PictureBoxImpDelegate : public CFWL_WidgetImpDelegate { | 42 class CFWL_PictureBoxImpDelegate : public CFWL_WidgetImpDelegate { |
44 public: | 43 public: |
45 CFWL_PictureBoxImpDelegate(CFWL_PictureBoxImp* pOwner); | 44 CFWL_PictureBoxImpDelegate(CFWL_PictureBoxImp* pOwner); |
46 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, | 45 FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, |
47 const CFX_Matrix* pMatrix = NULL) override; | 46 const CFX_Matrix* pMatrix = NULL) override; |
48 | 47 |
49 protected: | 48 protected: |
50 CFWL_PictureBoxImp* m_pOwner; | 49 CFWL_PictureBoxImp* m_pOwner; |
51 }; | 50 }; |
52 #endif | 51 #endif |
OLD | NEW |