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_CFWL_WIDGETPROPERTIES_H_
8 #define XFA_FWL_CFWL_WIDGETPROPERTIES_H_
9 
10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/fx_system.h"
12 #include "core/fxcrt/unowned_ptr.h"
13 #include "xfa/fwl/fwl_widgetdef.h"
14 
15 class CFWL_Widget;
16 class IFWL_ThemeProvider;
17 
18 class CFWL_WidgetProperties {
19  public:
20   CFWL_WidgetProperties();
21   ~CFWL_WidgetProperties();
22 
23   uint32_t m_dwStyles = FWL_WGTSTYLE_Child;
24   uint32_t m_dwStyleExes = 0;
25   uint32_t m_dwStates = 0;
26   CFX_RectF m_rtWidget;
27   UnownedPtr<IFWL_ThemeProvider> m_pThemeProvider;
28   CFWL_Widget* m_pParent = nullptr;  // Raw, this class owned by node in tree.
29 };
30 
31 #endif  // XFA_FWL_CFWL_WIDGETPROPERTIES_H_
32