| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_FWL_CORE_IFWL_WIDGETMGR_H_ | |
| 8 #define XFA_FWL_CORE_IFWL_WIDGETMGR_H_ | |
| 9 | |
| 10 #include "core/fxcrt/include/fx_system.h" | |
| 11 #include "xfa/fwl/core/fwl_error.h" | |
| 12 #include "core/fxcrt/include/fx_coordinates.h" | |
| 13 | |
| 14 class CFX_WideString; | |
| 15 class CFX_Matrix; | |
| 16 class IFWL_Widget; | |
| 17 | |
| 18 enum FWL_WGTRELATION { | |
| 19 FWL_WGTRELATION_Parent = 0, | |
| 20 FWL_WGTRELATION_Owner, | |
| 21 FWL_WGTRELATION_FirstSibling, | |
| 22 FWL_WGTRELATION_PriorSibling, | |
| 23 FWL_WGTRELATION_NextSibling, | |
| 24 FWL_WGTRELATION_LastSibling, | |
| 25 FWL_WGTRELATION_FirstChild, | |
| 26 FWL_WGTRELATION_LastChild, | |
| 27 FWL_WGTRELATION_SystemForm | |
| 28 }; | |
| 29 | |
| 30 class IFWL_WidgetMgr { | |
| 31 public: | |
| 32 virtual ~IFWL_WidgetMgr() {} | |
| 33 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; | |
| 34 virtual IFWL_Widget* GetWidget(int32_t nIndex, | |
| 35 IFWL_Widget* pParent = NULL) = 0; | |
| 36 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, | |
| 37 FWL_WGTRELATION eRelation) = 0; | |
| 38 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; | |
| 39 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; | |
| 40 virtual FWL_Error RepaintWidget(IFWL_Widget* pWidget, | |
| 41 const CFX_RectF* pRect = NULL) = 0; | |
| 42 virtual uint32_t GetCapability() = 0; | |
| 43 }; | |
| 44 | |
| 45 IFWL_WidgetMgr* FWL_GetWidgetMgr(); | |
| 46 | |
| 47 #endif // XFA_FWL_CORE_IFWL_WIDGETMGR_H_ | |
| OLD | NEW |