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" |
11 #include "xfa/fwl/core/fwl_error.h" | 11 #include "xfa/fwl/core/fwl_error.h" |
12 #include "xfa/fwl/core/ifwl_picturebox.h" | 12 #include "xfa/fwl/core/ifwl_picturebox.h" |
13 | 13 |
14 class CFWL_PictureBox : public CFWL_Widget { | 14 class CFWL_PictureBox : public CFWL_Widget { |
15 public: | 15 public: |
16 CFWL_PictureBox(); | 16 CFWL_PictureBox(const IFWL_App*); |
17 ~CFWL_PictureBox() override; | 17 ~CFWL_PictureBox() override; |
18 | 18 |
19 IFWL_PictureBox* GetWidget() override; | 19 IFWL_PictureBox* GetWidget() override; |
20 const IFWL_PictureBox* GetWidget() const override; | 20 const IFWL_PictureBox* GetWidget() const override; |
21 | 21 |
22 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = nullptr); | 22 void Initialize(const CFWL_WidgetProperties* pProperties); |
| 23 |
23 CFX_DIBitmap* GetPicture(); | 24 CFX_DIBitmap* GetPicture(); |
24 FWL_Error SetPicture(CFX_DIBitmap* pBitmap); | 25 FWL_Error SetPicture(CFX_DIBitmap* pBitmap); |
25 FX_FLOAT GetRotation(); | 26 FX_FLOAT GetRotation(); |
26 FWL_Error SetRotation(FX_FLOAT fRotation); | 27 FWL_Error SetRotation(FX_FLOAT fRotation); |
27 int32_t GetFlipMode(); | 28 int32_t GetFlipMode(); |
28 FWL_Error SetFlipMode(int32_t iFlipMode); | 29 FWL_Error SetFlipMode(int32_t iFlipMode); |
29 int32_t GetOpacity(); | 30 int32_t GetOpacity(); |
30 FWL_Error SetOpacity(int32_t iOpacity); | 31 FWL_Error SetOpacity(int32_t iOpacity); |
31 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY); | 32 FWL_Error GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY); |
32 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); | 33 FWL_Error SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); |
(...skipping 25 matching lines...) Expand all Loading... |
58 FX_FLOAT m_fScaleY; | 59 FX_FLOAT m_fScaleY; |
59 FX_FLOAT m_fOffSetX; | 60 FX_FLOAT m_fOffSetX; |
60 FX_FLOAT m_fOffSetY; | 61 FX_FLOAT m_fOffSetY; |
61 CFX_WideString m_wsData; | 62 CFX_WideString m_wsData; |
62 }; | 63 }; |
63 | 64 |
64 CFWL_PictureBoxDP m_PictureBoxDP; | 65 CFWL_PictureBoxDP m_PictureBoxDP; |
65 }; | 66 }; |
66 | 67 |
67 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_ | 68 #endif // XFA_FWL_CORE_CFWL_PICTUREBOX_H_ |
OLD | NEW |