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_WIDGETIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 8 #define XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); | 65 virtual FWL_Error GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); |
66 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix); | 66 virtual FWL_Error SetMatrix(const CFX_Matrix& matrix); |
67 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 67 virtual FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
68 const CFX_Matrix* pMatrix = nullptr); | 68 const CFX_Matrix* pMatrix = nullptr); |
69 virtual IFWL_ThemeProvider* GetThemeProvider(); | 69 virtual IFWL_ThemeProvider* GetThemeProvider(); |
70 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 70 virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
71 virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider); | 71 virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider); |
72 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); | 72 virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); |
73 virtual IFWL_App* GetOwnerApp() const; | 73 virtual IFWL_App* GetOwnerApp() const; |
74 | 74 |
75 FWL_Error SetOwnerApp(CFWL_AppImp* pOwnerApp); | 75 FWL_Error SetOwnerApp(IFWL_App* pOwnerApp); |
76 IFWL_Widget* GetInterface() const; | 76 IFWL_Widget* GetInterface() const; |
77 void SetInterface(IFWL_Widget* pInterface); | 77 void SetInterface(IFWL_Widget* pInterface); |
78 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); | 78 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); |
79 uint32_t GetEventKey() const; | 79 uint32_t GetEventKey() const; |
80 void SetEventKey(uint32_t key); | 80 void SetEventKey(uint32_t key); |
81 void* GetLayoutItem() const; | 81 void* GetLayoutItem() const; |
82 void SetLayoutItem(void* pItem); | 82 void SetLayoutItem(void* pItem); |
83 void* GetAssociateWidget() const; | 83 void* GetAssociateWidget() const; |
84 void SetAssociateWidget(void* pAssociate); | 84 void SetAssociateWidget(void* pAssociate); |
85 | 85 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 const CFX_Matrix* pMatrix = nullptr); | 150 const CFX_Matrix* pMatrix = nullptr); |
151 void DrawEdge(CFX_Graphics* pGraphics, | 151 void DrawEdge(CFX_Graphics* pGraphics, |
152 CFWL_Part iPartEdge, | 152 CFWL_Part iPartEdge, |
153 IFWL_ThemeProvider* pTheme, | 153 IFWL_ThemeProvider* pTheme, |
154 const CFX_Matrix* pMatrix = nullptr); | 154 const CFX_Matrix* pMatrix = nullptr); |
155 void NotifyDriver(); | 155 void NotifyDriver(); |
156 | 156 |
157 FX_BOOL IsParent(IFWL_Widget* pParent); | 157 FX_BOOL IsParent(IFWL_Widget* pParent); |
158 | 158 |
159 CFWL_WidgetMgr* const m_pWidgetMgr; | 159 CFWL_WidgetMgr* const m_pWidgetMgr; |
160 CFWL_AppImp* m_pOwnerApp; | 160 IFWL_App* m_pOwnerApp; |
161 std::unique_ptr<CFWL_WidgetImpProperties> m_pProperties; | 161 std::unique_ptr<CFWL_WidgetImpProperties> m_pProperties; |
162 IFWL_WidgetDelegate* m_pDelegate; | 162 IFWL_WidgetDelegate* m_pDelegate; |
163 IFWL_WidgetDelegate* m_pCurDelegate; | 163 IFWL_WidgetDelegate* m_pCurDelegate; |
164 IFWL_Widget* m_pOuter; | 164 IFWL_Widget* m_pOuter; |
165 IFWL_Widget* m_pInterface; | 165 IFWL_Widget* m_pInterface; |
166 void* m_pLayoutItem; | 166 void* m_pLayoutItem; |
167 void* m_pAssociate; | 167 void* m_pAssociate; |
168 int32_t m_iLock; | 168 int32_t m_iLock; |
169 uint32_t m_nEventKey; | 169 uint32_t m_nEventKey; |
170 }; | 170 }; |
171 | 171 |
172 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate { | 172 class CFWL_WidgetImpDelegate : public IFWL_WidgetDelegate { |
173 public: | 173 public: |
174 CFWL_WidgetImpDelegate(); | 174 CFWL_WidgetImpDelegate(); |
175 ~CFWL_WidgetImpDelegate() override {} | 175 ~CFWL_WidgetImpDelegate() override {} |
176 void OnProcessMessage(CFWL_Message* pMessage) override; | 176 void OnProcessMessage(CFWL_Message* pMessage) override; |
177 void OnProcessEvent(CFWL_Event* pEvent) override; | 177 void OnProcessEvent(CFWL_Event* pEvent) override; |
178 void OnDrawWidget(CFX_Graphics* pGraphics, | 178 void OnDrawWidget(CFX_Graphics* pGraphics, |
179 const CFX_Matrix* pMatrix = nullptr) override; | 179 const CFX_Matrix* pMatrix = nullptr) override; |
180 }; | 180 }; |
181 | 181 |
182 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ | 182 #endif // XFA_FWL_CORE_FWL_WIDGETIMP_H_ |
OLD | NEW |