OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_WIDGETPROPERTIES_H_ | |
8 #define XFA_FWL_LIGHTWIDGET_CFWL_WIDGETPROPERTIES_H_ | |
9 | |
10 #include "core/fxcrt/include/fx_coordinates.h" | |
11 #include "core/fxcrt/include/fx_string.h" | |
12 #include "core/fxcrt/include/fx_system.h" | |
13 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" | |
14 | |
15 class CFWL_Widget; | |
16 class IFWL_DataProvider; | |
17 | |
18 class CFWL_WidgetProperties { | |
19 public: | |
20 CFWL_WidgetProperties() { | |
21 m_ctmOnParent.SetIdentity(); | |
Tom Sepez
2016/03/29 16:45:31
nit: The default ctor for CFX_Matrix already does
dsinclair
2016/03/29 19:22:24
Done.
| |
22 m_rtWidget.Set(0, 0, 0, 0); | |
Tom Sepez
2016/03/29 16:45:31
Pity the default ctor doesn't do this ...
dsinclair
2016/03/29 19:22:24
CFX_RectF is an instantiation of a CFX_Remplate<FX
| |
23 m_dwStyles = FWL_WGTSTYLE_Child; | |
Tom Sepez
2016/03/29 16:45:31
nit: initializer list
dsinclair
2016/03/29 19:22:24
Done.
| |
24 m_dwStyleExes = 0; | |
25 m_dwStates = 0; | |
26 m_pParent = NULL; | |
Tom Sepez
2016/03/29 16:45:31
nit: nullptr
dsinclair
2016/03/29 19:22:24
Done.
| |
27 m_pOwner = NULL; | |
28 } | |
29 | |
30 CFWL_WidgetImpProperties MakeWidgetImpProperties( | |
31 IFWL_DataProvider* pDataProvider) const; | |
32 | |
33 CFX_WideString m_wsWindowclass; | |
34 CFX_Matrix m_ctmOnParent; | |
35 CFX_RectF m_rtWidget; | |
36 uint32_t m_dwStyles; | |
37 uint32_t m_dwStyleExes; | |
38 uint32_t m_dwStates; | |
39 CFWL_Widget* m_pParent; | |
40 CFWL_Widget* m_pOwner; | |
41 }; | |
42 | |
43 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGETPROPERTIES_H_ | |
OLD | NEW |