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_LIGHTWIDGET_CFWL_WIDGET_H_ | 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ |
8 #define XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ | 8 #define XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ |
9 | 9 |
10 #include "xfa/fwl/core/cfwl_event.h" | 10 #include "xfa/fwl/core/cfwl_event.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 FWL_ERR GetClientRect(CFX_RectF& rtClient); | 31 FWL_ERR GetClientRect(CFX_RectF& rtClient); |
32 CFWL_Widget* GetParent(); | 32 CFWL_Widget* GetParent(); |
33 FWL_ERR SetParent(CFWL_Widget* pParent); | 33 FWL_ERR SetParent(CFWL_Widget* pParent); |
34 CFWL_Widget* GetOwner(); | 34 CFWL_Widget* GetOwner(); |
35 FWL_ERR SetOwner(CFWL_Widget* pOwner); | 35 FWL_ERR SetOwner(CFWL_Widget* pOwner); |
36 uint32_t GetStyles(); | 36 uint32_t GetStyles(); |
37 FWL_ERR ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); | 37 FWL_ERR ModifyStyles(uint32_t dwStylesAdded, uint32_t dwStylesRemoved); |
38 uint32_t GetStylesEx(); | 38 uint32_t GetStylesEx(); |
39 FWL_ERR ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); | 39 FWL_ERR ModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); |
40 uint32_t GetStates(); | 40 uint32_t GetStates(); |
41 FWL_ERR SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); | 41 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE); |
42 FWL_ERR SetPrivateData(void* module_id, | 42 FWL_ERR SetPrivateData(void* module_id, |
43 void* pData, | 43 void* pData, |
44 PD_CALLBACK_FREEDATA callback); | 44 PD_CALLBACK_FREEDATA callback); |
45 void* GetPrivateData(void* module_id); | 45 void* GetPrivateData(void* module_id); |
46 FWL_ERR Update(); | 46 FWL_ERR Update(); |
47 FWL_ERR LockUpdate(); | 47 FWL_ERR LockUpdate(); |
48 FWL_ERR UnlockUpdate(); | 48 FWL_ERR UnlockUpdate(); |
49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); | 49 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy); |
50 FWL_ERR TransformTo(CFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); | 50 FWL_ERR TransformTo(CFWL_Widget* pWidget, FX_FLOAT& fx, FX_FLOAT& fy); |
51 FWL_ERR TransformTo(CFWL_Widget* pWidget, CFX_RectF& rt); | 51 FWL_ERR TransformTo(CFWL_Widget* pWidget, CFX_RectF& rt); |
(...skipping 15 matching lines...) Expand all Loading... |
67 IFWL_Widget* m_pIface; | 67 IFWL_Widget* m_pIface; |
68 IFWL_WidgetDelegate* m_pDelegate; | 68 IFWL_WidgetDelegate* m_pDelegate; |
69 CFWL_WidgetMgr* m_pWidgetMgr; | 69 CFWL_WidgetMgr* m_pWidgetMgr; |
70 CFWL_WidgetProperties* m_pProperties; | 70 CFWL_WidgetProperties* m_pProperties; |
71 | 71 |
72 protected: | 72 protected: |
73 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); | 73 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); |
74 }; | 74 }; |
75 | 75 |
76 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ | 76 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ |
OLD | NEW |