Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: xfa/include/fwl/lightwidget/picturebox.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/include/fwl/lightwidget/listbox.h ('k') | xfa/include/fwl/lightwidget/tooltipctrl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_LIGHT_H 7 #ifndef _FWL_PICTUREBOX_LIGHT_H
8 #define _FWL_PICTUREBOX_LIGHT_H 8 #define _FWL_PICTUREBOX_LIGHT_H
9 class CFWL_Widget; 9 class CFWL_Widget;
10 class CFWL_WidgetProperties; 10 class CFWL_WidgetProperties;
11 class IFWL_PictureBoxDP; 11 class IFWL_PictureBoxDP;
12 class CFWL_PictureBox; 12 class CFWL_PictureBox;
13 class CFWL_PictureBoxDP; 13 class CFWL_PictureBoxDP;
14 class CFWL_PictureBox : public CFWL_Widget 14 class CFWL_PictureBox : public CFWL_Widget
15 { 15 {
16 public: 16 public:
17 static CFWL_PictureBox* Create(); 17 static CFWL_PictureBox* Create();
18 FWL_ERR Initialize(const CFWL_WidgetProperties *pPropert ies = NULL); 18 FWL_ERR Initialize(const CFWL_WidgetProperties *pPropert ies = NULL);
19 CFX_DIBitmap* GetPicture(); 19 CFX_DIBitmap* GetPicture();
20 FWL_ERR SetPicture(CFX_DIBitmap *pBitmap); 20 FWL_ERR SetPicture(CFX_DIBitmap *pBitmap);
21 FX_FLOAT GetRotation(); 21 FX_FLOAT GetRotation();
22 FWL_ERR SetRotation(FX_FLOAT fRotation); 22 FWL_ERR SetRotation(FX_FLOAT fRotation);
23 FX_INT32» » GetFlipMode(); 23 int32_t» » GetFlipMode();
24 FWL_ERR» » » SetFlipMode(FX_INT32 iFlipMode); 24 FWL_ERR» » » SetFlipMode(int32_t iFlipMode);
25 FX_INT32» » GetOpacity(); 25 int32_t» » GetOpacity();
26 FWL_ERR» » » SetOpacity(FX_INT32 iOpacity); 26 FWL_ERR» » » SetOpacity(int32_t iOpacity);
27 FWL_ERR GetScale(FX_FLOAT &fScaleX, FX_FLOAT &fScaleY); 27 FWL_ERR GetScale(FX_FLOAT &fScaleX, FX_FLOAT &fScaleY);
28 FWL_ERR SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY); 28 FWL_ERR SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY);
29 FWL_ERR GetOffset(FX_FLOAT &fx, FX_FLOAT &fy); 29 FWL_ERR GetOffset(FX_FLOAT &fx, FX_FLOAT &fy);
30 FWL_ERR SetOffset(FX_FLOAT fx, FX_FLOAT fy); 30 FWL_ERR SetOffset(FX_FLOAT fx, FX_FLOAT fy);
31 CFWL_PictureBox(); 31 CFWL_PictureBox();
32 virtual ~CFWL_PictureBox(); 32 virtual ~CFWL_PictureBox();
33 protected: 33 protected:
34 class CFWL_PictureBoxDP : public IFWL_PictureBoxDP 34 class CFWL_PictureBoxDP : public IFWL_PictureBoxDP
35 { 35 {
36 public: 36 public:
37 CFWL_PictureBoxDP() 37 CFWL_PictureBoxDP()
38 { 38 {
39 m_fRotation = 0.0f; 39 m_fRotation = 0.0f;
40 m_fScaleX = 1.0f; 40 m_fScaleX = 1.0f;
41 m_fScaleY = 1.0f; 41 m_fScaleY = 1.0f;
42 m_fOffSetX = 0.0f; 42 m_fOffSetX = 0.0f;
43 m_fOffSetY = 0.0f; 43 m_fOffSetY = 0.0f;
44 m_pBitmap = NULL; 44 m_pBitmap = NULL;
45 }; 45 };
46 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_Wid eString &wsCaption); 46 virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_Wid eString &wsCaption);
47 virtual CFX_DIBitmap* GetPicture(IFWL_Widget *pWidget); 47 virtual CFX_DIBitmap* GetPicture(IFWL_Widget *pWidget);
48 virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget *pWidget); 48 virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget *pWidget);
49 virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget *pWidget); 49 virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget *pWidget);
50 virtual FX_INT32» » GetOpacity(IFWL_Widget *pWidget); 50 virtual int32_t»» GetOpacity(IFWL_Widget *pWidget);
51 virtual FX_INT32» » GetFlipMode(IFWL_Widget *pWidget); 51 virtual int32_t»» GetFlipMode(IFWL_Widget *pWidget);
52 virtual FWL_ERR GetMatrix(IFWL_Widget *pWidget, CFX_Matr ix &matrix); 52 virtual FWL_ERR GetMatrix(IFWL_Widget *pWidget, CFX_Matr ix &matrix);
53 CFX_DIBitmap *m_pBitmap; 53 CFX_DIBitmap *m_pBitmap;
54 FX_INT32» » m_iOpacity; 54 int32_t»» m_iOpacity;
55 FX_INT32» » m_iFlipMode; 55 int32_t»» m_iFlipMode;
56 FX_FLOAT m_fRotation; 56 FX_FLOAT m_fRotation;
57 FX_FLOAT m_fScaleX; 57 FX_FLOAT m_fScaleX;
58 FX_FLOAT m_fScaleY; 58 FX_FLOAT m_fScaleY;
59 FX_FLOAT m_fOffSetX; 59 FX_FLOAT m_fOffSetX;
60 FX_FLOAT m_fOffSetY; 60 FX_FLOAT m_fOffSetY;
61 CFX_WideString m_wsData; 61 CFX_WideString m_wsData;
62 }; 62 };
63 CFWL_PictureBoxDP m_PictureBoxDP; 63 CFWL_PictureBoxDP m_PictureBoxDP;
64 }; 64 };
65 #endif 65 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/lightwidget/listbox.h ('k') | xfa/include/fwl/lightwidget/tooltipctrl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698