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_FWL_CORE_CFWL_PICTUREBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_PICTUREBOX_H_ |
8 #define XFA_FWL_CORE_CFWL_PICTUREBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_PICTUREBOX_H_ |
9 | 9 |
10 #include "xfa/fwl/core/cfwl_widget.h" | 10 #include "xfa/fwl/core/cfwl_widget.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 int32_t GetFlipMode(); | 25 int32_t GetFlipMode(); |
26 FWL_Error SetFlipMode(int32_t iFlipMode); | 26 FWL_Error SetFlipMode(int32_t iFlipMode); |
27 int32_t GetOpacity(); | 27 int32_t GetOpacity(); |
28 FWL_Error SetOpacity(int32_t iOpacity); | 28 FWL_Error SetOpacity(int32_t iOpacity); |
29 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY); | 29 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY); |
30 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); | 30 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); |
31 FWL_Error GetOffset(FX_FLOAT& fx, FX_FLOAT& fy); | 31 FWL_Error GetOffset(FX_FLOAT& fx, FX_FLOAT& fy); |
32 FWL_Error SetOffset(FX_FLOAT fx, FX_FLOAT fy); | 32 FWL_Error SetOffset(FX_FLOAT fx, FX_FLOAT fy); |
33 | 33 |
34 // IFWL_DataProvider | 34 // IFWL_DataProvider |
35 FWL_Error GetCaption(IFWL_Widget* pWidget, | 35 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override; |
36 CFX_WideString& wsCaption) override; | |
37 | 36 |
38 // IFWL_PictureBoxDP | 37 // IFWL_PictureBoxDP |
39 CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) override; | 38 CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget) override; |
40 CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) override; | 39 CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget) override; |
41 CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) override; | 40 CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget) override; |
42 int32_t GetOpacity(IFWL_Widget* pWidget) override; | 41 int32_t GetOpacity(IFWL_Widget* pWidget) override; |
43 int32_t GetFlipMode(IFWL_Widget* pWidget) override; | 42 int32_t GetFlipMode(IFWL_Widget* pWidget) override; |
44 FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override; | 43 FWL_Error GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override; |
45 | 44 |
46 private: | 45 private: |
47 CFX_DIBitmap* m_pBitmap; | 46 CFX_DIBitmap* m_pBitmap; |
48 int32_t m_iOpacity; | 47 int32_t m_iOpacity; |
49 int32_t m_iFlipMode; | 48 int32_t m_iFlipMode; |
50 FX_FLOAT m_fRotation; | 49 FX_FLOAT m_fRotation; |
51 FX_FLOAT m_fScaleX; | 50 FX_FLOAT m_fScaleX; |
52 FX_FLOAT m_fScaleY; | 51 FX_FLOAT m_fScaleY; |
53 FX_FLOAT m_fOffSetX; | 52 FX_FLOAT m_fOffSetX; |
54 FX_FLOAT m_fOffSetY; | 53 FX_FLOAT m_fOffSetY; |
55 CFX_WideString m_wsData; | 54 CFX_WideString m_wsData; |
56 }; | 55 }; |
57 | 56 |
58 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_ | 57 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_ |
OLD | NEW |