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_CFWL_WIDGETMGR_H_ | 7 #ifndef XFA_FWL_CFWL_WIDGETMGR_H_ |
8 #define XFA_FWL_CFWL_WIDGETMGR_H_ | 8 #define XFA_FWL_CFWL_WIDGETMGR_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); | 45 void RepaintWidget(CFWL_Widget* pWidget, const CFX_RectF& pRect); |
46 | 46 |
47 void InsertWidget(CFWL_Widget* pParent, CFWL_Widget* pChild); | 47 void InsertWidget(CFWL_Widget* pParent, CFWL_Widget* pChild); |
48 void RemoveWidget(CFWL_Widget* pWidget); | 48 void RemoveWidget(CFWL_Widget* pWidget); |
49 void SetOwner(CFWL_Widget* pOwner, CFWL_Widget* pOwned); | 49 void SetOwner(CFWL_Widget* pOwner, CFWL_Widget* pOwned); |
50 void SetParent(CFWL_Widget* pParent, CFWL_Widget* pChild); | 50 void SetParent(CFWL_Widget* pParent, CFWL_Widget* pChild); |
51 | 51 |
52 void SetWidgetRect_Native(CFWL_Widget* pWidget, const CFX_RectF& rect); | |
53 | |
54 CFWL_Widget* GetWidgetAtPoint(CFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); | 52 CFWL_Widget* GetWidgetAtPoint(CFWL_Widget* pParent, FX_FLOAT fx, FX_FLOAT fy); |
55 | 53 |
56 void NotifySizeChanged(CFWL_Widget* pForm, FX_FLOAT fx, FX_FLOAT fy); | |
57 | |
58 CFWL_Widget* NextTab(CFWL_Widget* parent, CFWL_Widget* focus, bool& bFind); | 54 CFWL_Widget* NextTab(CFWL_Widget* parent, CFWL_Widget* focus, bool& bFind); |
59 | 55 |
60 void GetSameGroupRadioButton(CFWL_Widget* pRadioButton, | 56 void GetSameGroupRadioButton(CFWL_Widget* pRadioButton, |
61 CFX_ArrayTemplate<CFWL_Widget*>& group) const; | 57 CFX_ArrayTemplate<CFWL_Widget*>& group) const; |
62 CFWL_Widget* GetDefaultButton(CFWL_Widget* pParent) const; | 58 CFWL_Widget* GetDefaultButton(CFWL_Widget* pParent) const; |
63 void AddRedrawCounts(CFWL_Widget* pWidget); | 59 void AddRedrawCounts(CFWL_Widget* pWidget); |
64 | 60 |
65 bool IsFormDisabled() const { | 61 bool IsFormDisabled() const { |
66 return !!(m_dwCapability & FWL_WGTMGR_DisableForm); | 62 return !!(m_dwCapability & FWL_WGTMGR_DisableForm); |
67 } | 63 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 100 |
105 void ResetRedrawCounts(CFWL_Widget* pWidget); | 101 void ResetRedrawCounts(CFWL_Widget* pWidget); |
106 | 102 |
107 void DrawChild(CFWL_Widget* pParent, | 103 void DrawChild(CFWL_Widget* pParent, |
108 const CFX_RectF& rtClip, | 104 const CFX_RectF& rtClip, |
109 CFX_Graphics* pGraphics, | 105 CFX_Graphics* pGraphics, |
110 const CFX_Matrix* pMatrix); | 106 const CFX_Matrix* pMatrix); |
111 CFX_Graphics* DrawWidgetBefore(CFWL_Widget* pWidget, | 107 CFX_Graphics* DrawWidgetBefore(CFWL_Widget* pWidget, |
112 CFX_Graphics* pGraphics, | 108 CFX_Graphics* pGraphics, |
113 const CFX_Matrix* pMatrix); | 109 const CFX_Matrix* pMatrix); |
114 void DrawWidgetAfter(CFWL_Widget* pWidget, | |
115 CFX_Graphics* pGraphics, | |
116 CFX_RectF& rtClip, | |
117 const CFX_Matrix* pMatrix); | |
118 bool IsNeedRepaint(CFWL_Widget* pWidget, | 110 bool IsNeedRepaint(CFWL_Widget* pWidget, |
119 CFX_Matrix* pMatrix, | 111 CFX_Matrix* pMatrix, |
120 const CFX_RectF& rtDirty); | 112 const CFX_RectF& rtDirty); |
121 bool UseOffscreenDirect(CFWL_Widget* pWidget) const; | |
122 | 113 |
123 bool IsAbleNative(CFWL_Widget* pWidget) const; | 114 bool IsAbleNative(CFWL_Widget* pWidget) const; |
124 | 115 |
125 uint32_t m_dwCapability; | 116 uint32_t m_dwCapability; |
126 std::map<CFWL_Widget*, std::unique_ptr<Item>> m_mapWidgetItem; | 117 std::map<CFWL_Widget*, std::unique_ptr<Item>> m_mapWidgetItem; |
127 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; | 118 CXFA_FWLAdapterWidgetMgr* const m_pAdapter; |
128 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) | 119 #if (_FX_OS_ == _FX_WIN32_DESKTOP_) || (_FX_OS_ == _FX_WIN64_) |
129 CFX_RectF m_rtScreen; | 120 CFX_RectF m_rtScreen; |
130 #endif | 121 #endif |
131 }; | 122 }; |
132 | 123 |
133 #endif // XFA_FWL_CFWL_WIDGETMGR_H_ | 124 #endif // XFA_FWL_CFWL_WIDGETMGR_H_ |
OLD | NEW |