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_IFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_WIDGET_H_ |
8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ | 8 #define XFA_FWL_CORE_IFWL_WIDGET_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 FWL_ERR ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); | 54 FWL_ERR ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); |
55 uint32_t GetStates(); | 55 uint32_t GetStates(); |
56 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); | 56 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); |
57 FWL_ERR SetPrivateData(void* module_id, | 57 FWL_ERR SetPrivateData(void* module_id, |
58 void* pData, | 58 void* pData, |
59 PD_CALLBACK_FREEDATA callback); | 59 PD_CALLBACK_FREEDATA callback); |
60 void* GetPrivateData(void* module_id); | 60 void* GetPrivateData(void* module_id); |
61 FWL_ERR Update(); | 61 FWL_ERR Update(); |
62 FWL_ERR LockUpdate(); | 62 FWL_ERR LockUpdate(); |
63 FWL_ERR UnlockUpdate(); | 63 FWL_ERR UnlockUpdate(); |
64 uint32_t HitTest(FX_FLOAT fx, FX_FLOAT fy); | 64 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); |
65 FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); | 65 FWL_ERR TransformTo(IFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); |
66 FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); | 66 FWL_ERR TransformTo(IFWL_Widget* pWidget, CFX_RectF& rt); |
67 FWL_ERR GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); | 67 FWL_ERR GetMatrix(CFX_Matrix& matrix, FX_BOOL bGlobal = FALSE); |
68 FWL_ERR SetMatrix(const CFX_Matrix& matrix); | 68 FWL_ERR SetMatrix(const CFX_Matrix& matrix); |
69 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = NULL); | 69 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = NULL); |
70 IFWL_ThemeProvider* GetThemeProvider(); | 70 IFWL_ThemeProvider* GetThemeProvider(); |
71 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 71 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
72 FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider); | 72 FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider); |
73 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); | 73 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); |
74 IFWL_App* GetOwnerApp() const; | 74 IFWL_App* GetOwnerApp() const; |
(...skipping 11 matching lines...) Expand all Loading... |
86 | 86 |
87 protected: | 87 protected: |
88 // Takes ownership of |pImpl|. | 88 // Takes ownership of |pImpl|. |
89 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } | 89 void SetImpl(CFWL_WidgetImp* pImpl) { m_pImpl.reset(pImpl); } |
90 | 90 |
91 private: | 91 private: |
92 std::unique_ptr<CFWL_WidgetImp> m_pImpl; | 92 std::unique_ptr<CFWL_WidgetImp> m_pImpl; |
93 }; | 93 }; |
94 | 94 |
95 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 95 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
OLD | NEW |