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_FWL_WIDGETMGRIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ |
8 #define XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ | 8 #define XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // IFWL_WidgetMgr: | 66 // IFWL_WidgetMgr: |
67 int32_t CountWidgets(IFWL_Widget* pParent = NULL) override; | 67 int32_t CountWidgets(IFWL_Widget* pParent = NULL) override; |
68 IFWL_Widget* GetWidget(int32_t nIndex, IFWL_Widget* pParent = NULL) override; | 68 IFWL_Widget* GetWidget(int32_t nIndex, IFWL_Widget* pParent = NULL) override; |
69 IFWL_Widget* GetWidget(IFWL_Widget* pWidget, | 69 IFWL_Widget* GetWidget(IFWL_Widget* pWidget, |
70 FWL_WGTRELATION eRelation) override; | 70 FWL_WGTRELATION eRelation) override; |
71 int32_t GetWidgetIndex(IFWL_Widget* pWidget) override; | 71 int32_t GetWidgetIndex(IFWL_Widget* pWidget) override; |
72 FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) override; | 72 FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) override; |
73 FWL_Error RepaintWidget(IFWL_Widget* pWidget, | 73 FWL_Error RepaintWidget(IFWL_Widget* pWidget, |
74 const CFX_RectF* pRect = NULL) override; | 74 const CFX_RectF* pRect = NULL) override; |
75 uint32_t GetCapability() override { return m_dwCapability; } | |
76 | 75 |
77 void AddWidget(IFWL_Widget* pWidget); | 76 void AddWidget(IFWL_Widget* pWidget); |
78 void InsertWidget(IFWL_Widget* pParent, | 77 void InsertWidget(IFWL_Widget* pParent, |
79 IFWL_Widget* pChild, | 78 IFWL_Widget* pChild, |
80 int32_t nIndex = -1); | 79 int32_t nIndex = -1); |
81 void RemoveWidget(IFWL_Widget* pWidget); | 80 void RemoveWidget(IFWL_Widget* pWidget); |
82 void SetOwner(IFWL_Widget* pOwner, IFWL_Widget* pOwned); | 81 void SetOwner(IFWL_Widget* pOwner, IFWL_Widget* pOwned); |
83 void SetParent(IFWL_Widget* pParent, IFWL_Widget* pChild); | 82 void SetParent(IFWL_Widget* pParent, IFWL_Widget* pChild); |
84 FX_BOOL IsChild(IFWL_Widget* pChild, IFWL_Widget* pParent); | 83 FX_BOOL IsChild(IFWL_Widget* pChild, IFWL_Widget* pParent); |
85 FWL_Error SetWidgetRect_Native(IFWL_Widget* pWidget, const CFX_RectF& rect); | 84 FWL_Error SetWidgetRect_Native(IFWL_Widget* pWidget, const CFX_RectF& rect); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 const CFX_Matrix* pMatrix); | 146 const CFX_Matrix* pMatrix); |
148 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, | 147 FX_BOOL IsNeedRepaint(IFWL_Widget* pWidget, |
149 CFX_Matrix* pMatrix, | 148 CFX_Matrix* pMatrix, |
150 const CFX_RectF& rtDirty); | 149 const CFX_RectF& rtDirty); |
151 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); | 150 FX_BOOL bUseOffscreenDirect(IFWL_Widget* pWidget); |
152 | 151 |
153 CFWL_WidgetMgr* m_pWidgetMgr; | 152 CFWL_WidgetMgr* m_pWidgetMgr; |
154 }; | 153 }; |
155 | 154 |
156 #endif // XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ | 155 #endif // XFA_FWL_CORE_FWL_WIDGETMGRIMP_H_ |
OLD | NEW |