| 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_CFWL_WIDGETMGR_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
| 8 #define XFA_FWL_CORE_CFWL_WIDGETMGR_H_ | 8 #define XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void OnDrawWidget(CFWL_Widget* pWidget, | 35 void OnDrawWidget(CFWL_Widget* pWidget, |
| 36 CFX_Graphics* pGraphics, | 36 CFX_Graphics* pGraphics, |
| 37 const CFX_Matrix* pMatrix) override; | 37 const CFX_Matrix* pMatrix) override; |
| 38 | 38 |
| 39 CFWL_Widget* GetParentWidget(CFWL_Widget* pWidget) const; | 39 CFWL_Widget* GetParentWidget(CFWL_Widget* pWidget) const; |
| 40 CFWL_Widget* GetOwnerWidget(CFWL_Widget* pWidget) const; | 40 CFWL_Widget* GetOwnerWidget(CFWL_Widget* pWidget) const; |
| 41 CFWL_Widget* GetNextSiblingWidget(CFWL_Widget* pWidget) const; | 41 CFWL_Widget* GetNextSiblingWidget(CFWL_Widget* pWidget) const; |
| 42 CFWL_Widget* GetFirstChildWidget(CFWL_Widget* pWidget) const; | 42 CFWL_Widget* GetFirstChildWidget(CFWL_Widget* pWidget) const; |
| 43 CFWL_Widget* GetSystemFormWidget(CFWL_Widget* pWidget) const; | 43 CFWL_Widget* GetSystemFormWidget(CFWL_Widget* pWidget) const; |
| 44 | 44 |
| 45 void RepaintWidget(CFWL_Widget* pWidget, const CFX_RectF* pRect = nullptr); | 45 void RepaintWidget(CFWL_Widget* pWidget, const CFX_RectF* pRect); |
| 46 | 46 |
| 47 void InsertWidget(CFWL_Widget* pParent, | 47 void InsertWidget(CFWL_Widget* pParent, CFWL_Widget* pChild); |
| 48 CFWL_Widget* pChild, | |
| 49 int32_t nIndex = -1); | |
| 50 void RemoveWidget(CFWL_Widget* pWidget); | 48 void RemoveWidget(CFWL_Widget* pWidget); |
| 51 void SetOwner(CFWL_Widget* pOwner, CFWL_Widget* pOwned); | 49 void SetOwner(CFWL_Widget* pOwner, CFWL_Widget* pOwned); |
| 52 void SetParent(CFWL_Widget* pParent, CFWL_Widget* pChild); | 50 void SetParent(CFWL_Widget* pParent, CFWL_Widget* pChild); |
| 53 | 51 |
| 54 void SetWidgetRect_Native(CFWL_Widget* pWidget, const CFX_RectF& rect); | 52 void SetWidgetRect_Native(CFWL_Widget* pWidget, const CFX_RectF& rect); |
| 55 | 53 |
| 56 CFWL_Widget* GetWidgetAtPoint(CFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); | 54 CFWL_Widget* GetWidgetAtPoint(CFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); |
| 57 | 55 |
| 58 void NotifySizeChanged(CFWL_Widget* pForm, FX_FLOAT fx, FX_FLOAT fy); | 56 void NotifySizeChanged(CFWL_Widget* pForm, FX_FLOAT fx, FX_FLOAT fy); |
| 59 | 57 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 90 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
| 93 bool bOutsideChanged; | 91 bool bOutsideChanged; |
| 94 #endif | 92 #endif |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 CFWL_Widget* GetFirstSiblingWidget(CFWL_Widget* pWidget) const; | 95 CFWL_Widget* GetFirstSiblingWidget(CFWL_Widget* pWidget) const; |
| 98 CFWL_Widget* GetPriorSiblingWidget(CFWL_Widget* pWidget) const; | 96 CFWL_Widget* GetPriorSiblingWidget(CFWL_Widget* pWidget) const; |
| 99 CFWL_Widget* GetLastChildWidget(CFWL_Widget* pWidget) const; | 97 CFWL_Widget* GetLastChildWidget(CFWL_Widget* pWidget) const; |
| 100 Item* GetWidgetMgrItem(CFWL_Widget* pWidget) const; | 98 Item* GetWidgetMgrItem(CFWL_Widget* pWidget) const; |
| 101 | 99 |
| 102 void SetWidgetIndex(CFWL_Widget* pWidget, int32_t nIndex); | 100 void AppendWidget(CFWL_Widget* pWidget); |
| 103 | 101 |
| 104 int32_t CountRadioButtonGroup(CFWL_Widget* pFirst) const; | 102 int32_t CountRadioButtonGroup(CFWL_Widget* pFirst) const; |
| 105 CFWL_Widget* GetRadioButtonGroupHeader(CFWL_Widget* pRadioButton) const; | 103 CFWL_Widget* GetRadioButtonGroupHeader(CFWL_Widget* pRadioButton) const; |
| 106 | 104 |
| 107 void ResetRedrawCounts(CFWL_Widget* pWidget); | 105 void ResetRedrawCounts(CFWL_Widget* pWidget); |
| 108 | 106 |
| 109 void DrawChild(CFWL_Widget* pParent, | 107 void DrawChild(CFWL_Widget* pParent, |
| 110 const CFX_RectF& rtClip, | 108 const CFX_RectF& rtClip, |
| 111 CFX_Graphics* pGraphics, | 109 CFX_Graphics* pGraphics, |
| 112 const CFX_Matrix* pMatrix); | 110 const CFX_Matrix* pMatrix); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 126 | 124 |
| 127 uint32_t m_dwCapability; | 125 uint32_t m_dwCapability; |
| 128 std::map<CFWL_Widget*, std::unique_ptr<Item>> m_mapWidgetItem; | 126 std::map<CFWL_Widget*, std::unique_ptr<Item>> m_mapWidgetItem; |
| 129 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; | 127 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; |
| 130 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 128 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
| 131 CFX_RectF m_rtScreen; | 129 CFX_RectF m_rtScreen; |
| 132 #endif | 130 #endif |
| 133 }; | 131 }; |
| 134 | 132 |
| 135 #endif // XFA_FWL_CORE_CFWL_WIDGETMGR_H_ | 133 #endif // XFA_FWL_CORE_CFWL_WIDGETMGR_H_ |
| OLD | NEW |