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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 IFWL_Widget* GetParent(); | 46 IFWL_Widget* GetParent(); |
47 FWL_ERR SetParent(IFWL_Widget* pParent); | 47 FWL_ERR SetParent(IFWL_Widget* pParent); |
48 IFWL_Widget* GetOwner(); | 48 IFWL_Widget* GetOwner(); |
49 FWL_ERR SetOwner(IFWL_Widget* pOwner); | 49 FWL_ERR SetOwner(IFWL_Widget* pOwner); |
50 IFWL_Widget* GetOuter(); | 50 IFWL_Widget* GetOuter(); |
51 uint32_t GetStyles(); | 51 uint32_t GetStyles(); |
52 FWL_ERR ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); | 52 FWL_ERR ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); |
53 uint32_t GetStylesEx(); | 53 uint32_t GetStylesEx(); |
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 void 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 FWL_WidgetHit 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); |
(...skipping 19 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 |