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 19 matching lines...) Expand all Loading... |
30 class IFWL_WidgetMgr { | 30 class IFWL_WidgetMgr { |
31 public: | 31 public: |
32 virtual ~IFWL_WidgetMgr() {} | 32 virtual ~IFWL_WidgetMgr() {} |
33 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; | 33 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; |
34 virtual IFWL_Widget* GetWidget(int32_t nIndex, | 34 virtual IFWL_Widget* GetWidget(int32_t nIndex, |
35 IFWL_Widget* pParent = NULL) = 0; | 35 IFWL_Widget* pParent = NULL) = 0; |
36 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, | 36 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, |
37 FWL_WGTRELATION eRelation) = 0; | 37 FWL_WGTRELATION eRelation) = 0; |
38 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; | 38 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; |
39 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; | 39 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; |
40 virtual FWL_ERR RepaintWidget(IFWL_Widget* pWidget, | 40 virtual FWL_Error RepaintWidget(IFWL_Widget* pWidget, |
41 const CFX_RectF* pRect = NULL) = 0; | 41 const CFX_RectF* pRect = NULL) = 0; |
42 virtual uint32_t GetCapability() = 0; | 42 virtual uint32_t GetCapability() = 0; |
43 }; | 43 }; |
44 | 44 |
45 IFWL_WidgetMgr* FWL_GetWidgetMgr(); | 45 IFWL_WidgetMgr* FWL_GetWidgetMgr(); |
46 | 46 |
47 #endif // XFA_FWL_CORE_IFWL_WIDGETMGR_H_ | 47 #endif // XFA_FWL_CORE_IFWL_WIDGETMGR_H_ |
OLD | NEW |