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_WIDGETMGR_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_WIDGETMGR_H_ |
8 #define XFA_FWL_CORE_IFWL_WIDGETMGR_H_ | 8 #define XFA_FWL_CORE_IFWL_WIDGETMGR_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 FWL_WGTRELATION_PriorSibling, | 22 FWL_WGTRELATION_PriorSibling, |
23 FWL_WGTRELATION_NextSibling, | 23 FWL_WGTRELATION_NextSibling, |
24 FWL_WGTRELATION_LastSibling, | 24 FWL_WGTRELATION_LastSibling, |
25 FWL_WGTRELATION_FirstChild, | 25 FWL_WGTRELATION_FirstChild, |
26 FWL_WGTRELATION_LastChild, | 26 FWL_WGTRELATION_LastChild, |
27 FWL_WGTRELATION_SystemForm | 27 FWL_WGTRELATION_SystemForm |
28 }; | 28 }; |
29 | 29 |
30 class IFWL_WidgetMgr { | 30 class IFWL_WidgetMgr { |
31 public: | 31 public: |
| 32 static IFWL_WidgetMgr* GetInstance(); |
| 33 |
32 virtual ~IFWL_WidgetMgr() {} | 34 virtual ~IFWL_WidgetMgr() {} |
33 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; | 35 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; |
34 virtual IFWL_Widget* GetWidget(int32_t nIndex, | 36 virtual IFWL_Widget* GetWidget(int32_t nIndex, |
35 IFWL_Widget* pParent = NULL) = 0; | 37 IFWL_Widget* pParent = NULL) = 0; |
36 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, | 38 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, |
37 FWL_WGTRELATION eRelation) = 0; | 39 FWL_WGTRELATION eRelation) = 0; |
38 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; | 40 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; |
39 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; | 41 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; |
40 virtual FWL_Error RepaintWidget(IFWL_Widget* pWidget, | 42 virtual FWL_Error RepaintWidget(IFWL_Widget* pWidget, |
41 const CFX_RectF* pRect = NULL) = 0; | 43 const CFX_RectF* pRect = NULL) = 0; |
42 virtual uint32_t GetCapability() = 0; | |
43 }; | 44 }; |
44 | 45 |
45 IFWL_WidgetMgr* FWL_GetWidgetMgr(); | |
46 | |
47 #endif // XFA_FWL_CORE_IFWL_WIDGETMGR_H_ | 46 #endif // XFA_FWL_CORE_IFWL_WIDGETMGR_H_ |
OLD | NEW |