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_IFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_ |
8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void CalcTextRect(const CFX_WideString& wsText, | 159 void CalcTextRect(const CFX_WideString& wsText, |
160 IFWL_ThemeProvider* pTheme, | 160 IFWL_ThemeProvider* pTheme, |
161 uint32_t dwTTOStyles, | 161 uint32_t dwTTOStyles, |
162 int32_t iTTOAlign, | 162 int32_t iTTOAlign, |
163 CFX_RectF& rect); | 163 CFX_RectF& rect); |
164 void SetGrab(bool bSet); | 164 void SetGrab(bool bSet); |
165 void GetPopupPos(FX_FLOAT fMinHeight, | 165 void GetPopupPos(FX_FLOAT fMinHeight, |
166 FX_FLOAT fMaxHeight, | 166 FX_FLOAT fMaxHeight, |
167 const CFX_RectF& rtAnchor, | 167 const CFX_RectF& rtAnchor, |
168 CFX_RectF& rtPopup); | 168 CFX_RectF& rtPopup); |
169 void RegisterEventTarget(IFWL_Widget* pEventSource = nullptr, | 169 void RegisterEventTarget(IFWL_Widget* pEventSource); |
170 uint32_t dwFilter = FWL_EVENT_ALL_MASK); | |
171 void UnregisterEventTarget(); | 170 void UnregisterEventTarget(); |
172 void DispatchKeyEvent(CFWL_MsgKey* pNote); | 171 void DispatchKeyEvent(CFWL_MsgKey* pNote); |
173 void DispatchEvent(CFWL_Event* pEvent); | 172 void DispatchEvent(CFWL_Event* pEvent); |
174 void DrawBorder(CFX_Graphics* pGraphics, | 173 void DrawBorder(CFX_Graphics* pGraphics, |
175 CFWL_Part iPartBorder, | 174 CFWL_Part iPartBorder, |
176 IFWL_ThemeProvider* pTheme, | 175 IFWL_ThemeProvider* pTheme, |
177 const CFX_Matrix* pMatrix = nullptr); | 176 const CFX_Matrix* pMatrix = nullptr); |
178 void DrawEdge(CFX_Graphics* pGraphics, | 177 void DrawEdge(CFX_Graphics* pGraphics, |
179 CFWL_Part iPartEdge, | 178 CFWL_Part iPartEdge, |
180 IFWL_ThemeProvider* pTheme, | 179 IFWL_ThemeProvider* pTheme, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void NotifyDriver(); | 215 void NotifyDriver(); |
217 bool IsParent(IFWL_Widget* pParent); | 216 bool IsParent(IFWL_Widget* pParent); |
218 | 217 |
219 void* m_pLayoutItem; | 218 void* m_pLayoutItem; |
220 CFWL_Widget* m_pAssociate; | 219 CFWL_Widget* m_pAssociate; |
221 uint32_t m_nEventKey; | 220 uint32_t m_nEventKey; |
222 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 221 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
223 }; | 222 }; |
224 | 223 |
225 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 224 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
OLD | NEW |