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 XFA_INCLUDE_FWL_LIGHTWIDGET_PICTUREBOX_H_ | 7 #ifndef XFA_INCLUDE_FWL_LIGHTWIDGET_PICTUREBOX_H_ |
8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_PICTUREBOX_H_ | 8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_PICTUREBOX_H_ |
9 | 9 |
10 #include "xfa/include/fwl/basewidget/fwl_picturebox.h" | 10 #include "xfa/include/fwl/basewidget/fwl_picturebox.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 protected: | 33 protected: |
34 class CFWL_PictureBoxDP : public IFWL_PictureBoxDP { | 34 class CFWL_PictureBoxDP : public IFWL_PictureBoxDP { |
35 public: | 35 public: |
36 CFWL_PictureBoxDP() { | 36 CFWL_PictureBoxDP() { |
37 m_fRotation = 0.0f; | 37 m_fRotation = 0.0f; |
38 m_fScaleX = 1.0f; | 38 m_fScaleX = 1.0f; |
39 m_fScaleY = 1.0f; | 39 m_fScaleY = 1.0f; |
40 m_fOffSetX = 0.0f; | 40 m_fOffSetX = 0.0f; |
41 m_fOffSetY = 0.0f; | 41 m_fOffSetY = 0.0f; |
42 m_pBitmap = NULL; | 42 m_pBitmap = NULL; |
43 }; | 43 } |
44 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption); | 44 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption); |
45 virtual CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget); | 45 virtual CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget); |
46 virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget); | 46 virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget); |
47 virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget); | 47 virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget); |
48 virtual int32_t GetOpacity(IFWL_Widget* pWidget); | 48 virtual int32_t GetOpacity(IFWL_Widget* pWidget); |
49 virtual int32_t GetFlipMode(IFWL_Widget* pWidget); | 49 virtual int32_t GetFlipMode(IFWL_Widget* pWidget); |
50 virtual FWL_ERR GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix); | 50 virtual FWL_ERR GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix); |
51 CFX_DIBitmap* m_pBitmap; | 51 CFX_DIBitmap* m_pBitmap; |
52 int32_t m_iOpacity; | 52 int32_t m_iOpacity; |
53 int32_t m_iFlipMode; | 53 int32_t m_iFlipMode; |
54 FX_FLOAT m_fRotation; | 54 FX_FLOAT m_fRotation; |
55 FX_FLOAT m_fScaleX; | 55 FX_FLOAT m_fScaleX; |
56 FX_FLOAT m_fScaleY; | 56 FX_FLOAT m_fScaleY; |
57 FX_FLOAT m_fOffSetX; | 57 FX_FLOAT m_fOffSetX; |
58 FX_FLOAT m_fOffSetY; | 58 FX_FLOAT m_fOffSetY; |
59 CFX_WideString m_wsData; | 59 CFX_WideString m_wsData; |
60 }; | 60 }; |
61 CFWL_PictureBoxDP m_PictureBoxDP; | 61 CFWL_PictureBoxDP m_PictureBoxDP; |
62 }; | 62 }; |
63 | 63 |
64 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_PICTUREBOX_H_ | 64 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_PICTUREBOX_H_ |
OLD | NEW |