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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 class CFWL_Widget; | 57 class CFWL_Widget; |
58 class CFWL_WidgetProperties; | 58 class CFWL_WidgetProperties; |
59 class CFWL_WidgetMgr; | 59 class CFWL_WidgetMgr; |
60 class IFWL_App; | 60 class IFWL_App; |
61 class IFWL_ThemeProvider; | 61 class IFWL_ThemeProvider; |
62 class IFWL_Widget; | 62 class IFWL_Widget; |
63 enum class FWL_Type; | 63 enum class FWL_Type; |
64 | 64 |
65 class IFWL_Widget : public IFWL_WidgetDelegate { | 65 class IFWL_Widget : public IFWL_WidgetDelegate { |
66 public: | 66 public: |
67 class DataProvider { | 67 class DataProvider {}; |
68 public: | |
69 virtual void GetCaption(IFWL_Widget* pWidget, | |
70 CFX_WideString& wsCaption) = 0; | |
71 }; | |
72 | 68 |
73 ~IFWL_Widget() override; | 69 ~IFWL_Widget() override; |
74 | 70 |
75 virtual FWL_Type GetClassID() const = 0; | 71 virtual FWL_Type GetClassID() const = 0; |
76 virtual bool IsInstance(const CFX_WideStringC& wsClass) const; | 72 virtual bool IsInstance(const CFX_WideStringC& wsClass) const; |
77 virtual void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false); | 73 virtual void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false); |
78 virtual void GetClientRect(CFX_RectF& rect); | 74 virtual void GetClientRect(CFX_RectF& rect); |
79 virtual void ModifyStylesEx(uint32_t dwStylesExAdded, | 75 virtual void ModifyStylesEx(uint32_t dwStylesExAdded, |
80 uint32_t dwStylesExRemoved); | 76 uint32_t dwStylesExRemoved); |
81 virtual void SetStates(uint32_t dwStates, bool bSet = true); | 77 virtual void SetStates(uint32_t dwStates, bool bSet = true); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 void NotifyDriver(); | 211 void NotifyDriver(); |
216 bool IsParent(IFWL_Widget* pParent); | 212 bool IsParent(IFWL_Widget* pParent); |
217 | 213 |
218 void* m_pLayoutItem; | 214 void* m_pLayoutItem; |
219 CFWL_Widget* m_pAssociate; | 215 CFWL_Widget* m_pAssociate; |
220 uint32_t m_nEventKey; | 216 uint32_t m_nEventKey; |
221 IFWL_WidgetDelegate* m_pDelegate; // Not owned. | 217 IFWL_WidgetDelegate* m_pDelegate; // Not owned. |
222 }; | 218 }; |
223 | 219 |
224 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 220 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
OLD | NEW |