OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_THEMEPART_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_THEMEPART_H_ |
8 #define XFA_FWL_CORE_CFWL_THEMEPART_H_ | 8 #define XFA_FWL_CORE_CFWL_THEMEPART_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
12 #include "xfa/fwl/core/ifwl_widget.h" | |
13 | 12 |
14 enum class CFWL_Part { | 13 enum class CFWL_Part { |
15 None = 0, | 14 None = 0, |
16 | 15 |
17 BackArrow, | 16 BackArrow, |
18 Background, | 17 Background, |
19 Border, | 18 Border, |
20 Caption, | 19 Caption, |
21 Check, | 20 Check, |
22 CheckBox, | 21 CheckBox, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 CFWL_PartState_Hovered = 1 << 7, | 70 CFWL_PartState_Hovered = 1 << 7, |
72 CFWL_PartState_Inactive = 1 << 8, | 71 CFWL_PartState_Inactive = 1 << 8, |
73 CFWL_PartState_Neutral = 1 << 9, | 72 CFWL_PartState_Neutral = 1 << 9, |
74 CFWL_PartState_Pressed = 1 << 10, | 73 CFWL_PartState_Pressed = 1 << 10, |
75 CFWL_PartState_ReadOnly = 1 << 11, | 74 CFWL_PartState_ReadOnly = 1 << 11, |
76 CFWL_PartState_LSelected = 1 << 12, | 75 CFWL_PartState_LSelected = 1 << 12, |
77 CFWL_PartState_RSelected = 1 << 13, | 76 CFWL_PartState_RSelected = 1 << 13, |
78 CFWL_PartState_Selected = 1 << 14 | 77 CFWL_PartState_Selected = 1 << 14 |
79 }; | 78 }; |
80 | 79 |
| 80 class IFWL_Widget; |
| 81 |
81 class CFWL_ThemePart { | 82 class CFWL_ThemePart { |
82 public: | 83 public: |
83 CFWL_ThemePart() | 84 CFWL_ThemePart() |
84 : m_pWidget(nullptr), | 85 : m_pWidget(nullptr), |
85 m_iPart(CFWL_Part::None), | 86 m_iPart(CFWL_Part::None), |
86 m_dwStates(CFWL_PartState_Normal), | 87 m_dwStates(CFWL_PartState_Normal), |
87 m_dwData(0), | 88 m_dwData(0), |
88 m_pData(nullptr) { | 89 m_pData(nullptr) { |
89 m_rtPart.Reset(); | 90 m_rtPart.Reset(); |
90 m_matrix.SetIdentity(); | 91 m_matrix.SetIdentity(); |
91 } | 92 } |
92 | 93 |
93 CFX_Matrix m_matrix; | 94 CFX_Matrix m_matrix; |
94 CFX_RectF m_rtPart; | 95 CFX_RectF m_rtPart; |
95 IFWL_Widget* m_pWidget; | 96 IFWL_Widget* m_pWidget; |
96 CFWL_Part m_iPart; | 97 CFWL_Part m_iPart; |
97 uint32_t m_dwStates; | 98 uint32_t m_dwStates; |
98 uint32_t m_dwData; | 99 uint32_t m_dwData; |
99 void* m_pData; | 100 void* m_pData; |
100 }; | 101 }; |
101 | 102 |
102 #endif // XFA_FWL_CORE_CFWL_THEMEPART_H_ | 103 #endif // XFA_FWL_CORE_CFWL_THEMEPART_H_ |
OLD | NEW |