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 "xfa/fwl/core/fwl_error.h" | 10 #include "xfa/fwl/core/fwl_error.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 FWL_ERR SetMatrix(const CFX_Matrix& matrix); | 51 FWL_ERR SetMatrix(const CFX_Matrix& matrix); |
52 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = NULL); | 52 FWL_ERR DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix = NULL); |
53 IFWL_ThemeProvider* GetThemeProvider(); | 53 IFWL_ThemeProvider* GetThemeProvider(); |
54 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); | 54 FWL_ERR SetThemeProvider(IFWL_ThemeProvider* pThemeProvider); |
55 FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider); | 55 FWL_ERR SetDataProvider(IFWL_DataProvider* pDataProvider); |
56 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); | 56 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); |
57 IFWL_NoteThread* GetOwnerThread() const; | 57 IFWL_NoteThread* GetOwnerThread() const; |
58 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); | 58 CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent); |
59 }; | 59 }; |
60 | 60 |
61 typedef CFX_MapPtrTemplate<uint32_t, uint32_t> CFX_MapAccelerators; | |
62 | |
63 FWL_ERR FWL_Accelerator_SetApp(CFX_MapAccelerators* pMapAccel); | |
64 FWL_ERR FWL_Accelerator_SetThread(CFX_MapAccelerators* pMapAccel); | |
65 FWL_ERR FWL_Accelerator_SetForm(IFWL_Form* pFrom, | |
66 CFX_MapAccelerators* pMapAccel); | |
67 FWL_ERR FWL_EnabelWidget(IFWL_Widget* widget, FX_BOOL bEnable); | |
68 | |
69 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ | 61 #endif // XFA_FWL_CORE_IFWL_WIDGET_H_ |
OLD | NEW |