| 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 _FWL_WIDGETMGR_H | 7 #ifndef _FWL_WIDGETMGR_H |
| 8 #define _FWL_WIDGETMGR_H | 8 #define _FWL_WIDGETMGR_H |
| 9 class IFWL_Widget; | 9 class IFWL_Widget; |
| 10 class IFWL_WidgetMgr; | 10 class IFWL_WidgetMgr; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class IFWL_WidgetMgr { | 23 class IFWL_WidgetMgr { |
| 24 public: | 24 public: |
| 25 virtual ~IFWL_WidgetMgr() {} | 25 virtual ~IFWL_WidgetMgr() {} |
| 26 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; | 26 virtual int32_t CountWidgets(IFWL_Widget* pParent = NULL) = 0; |
| 27 virtual IFWL_Widget* GetWidget(int32_t nIndex, | 27 virtual IFWL_Widget* GetWidget(int32_t nIndex, |
| 28 IFWL_Widget* pParent = NULL) = 0; | 28 IFWL_Widget* pParent = NULL) = 0; |
| 29 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, | 29 virtual IFWL_Widget* GetWidget(IFWL_Widget* pWidget, |
| 30 FWL_WGTRELATION eRelation) = 0; | 30 FWL_WGTRELATION eRelation) = 0; |
| 31 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; | 31 virtual int32_t GetWidgetIndex(IFWL_Widget* pWidget) = 0; |
| 32 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; | 32 virtual FX_BOOL SetWidgetIndex(IFWL_Widget* pWidget, int32_t nIndex) = 0; |
| 33 virtual FX_BOOL IsWidget(void* pObj) = 0; | |
| 34 virtual FWL_ERR RepaintWidget(IFWL_Widget* pWidget, | 33 virtual FWL_ERR RepaintWidget(IFWL_Widget* pWidget, |
| 35 const CFX_RectF* pRect = NULL) = 0; | 34 const CFX_RectF* pRect = NULL) = 0; |
| 36 virtual FX_DWORD GetCapability() = 0; | 35 virtual FX_DWORD GetCapability() = 0; |
| 37 }; | 36 }; |
| 38 IFWL_WidgetMgr* FWL_GetWidgetMgr(); | 37 IFWL_WidgetMgr* FWL_GetWidgetMgr(); |
| 39 FX_BOOL FWL_WidgetIsChild(IFWL_Widget* parent, IFWL_Widget* find); | 38 FX_BOOL FWL_WidgetIsChild(IFWL_Widget* parent, IFWL_Widget* find); |
| 40 #define FWL_WGTMGR_DisableThread 0x00000001 | 39 #define FWL_WGTMGR_DisableThread 0x00000001 |
| 41 #define FWL_WGTMGR_DisableForm 0x00000002 | 40 #define FWL_WGTMGR_DisableForm 0x00000002 |
| 42 class IFWL_WidgetMgrDelegate { | 41 class IFWL_WidgetMgrDelegate { |
| 43 public: | 42 public: |
| 44 virtual ~IFWL_WidgetMgrDelegate() {} | 43 virtual ~IFWL_WidgetMgrDelegate() {} |
| 45 virtual FWL_ERR OnSetCapability( | 44 virtual FWL_ERR OnSetCapability( |
| 46 FX_DWORD dwCapability = FWL_WGTMGR_DisableThread) = 0; | 45 FX_DWORD dwCapability = FWL_WGTMGR_DisableThread) = 0; |
| 47 virtual int32_t OnProcessMessageToForm(CFWL_Message* pMessage) = 0; | 46 virtual int32_t OnProcessMessageToForm(CFWL_Message* pMessage) = 0; |
| 48 virtual FWL_ERR OnDrawWidget(IFWL_Widget* pWidget, | 47 virtual FWL_ERR OnDrawWidget(IFWL_Widget* pWidget, |
| 49 CFX_Graphics* pGraphics, | 48 CFX_Graphics* pGraphics, |
| 50 const CFX_Matrix* pMatrix = NULL) = 0; | 49 const CFX_Matrix* pMatrix = NULL) = 0; |
| 51 }; | 50 }; |
| 52 FWL_ERR FWL_WidgetMgrSnapshot(IFWL_Widget* pWidget, | 51 FWL_ERR FWL_WidgetMgrSnapshot(IFWL_Widget* pWidget, |
| 53 const CFX_WideString* saveFile, | 52 const CFX_WideString* saveFile, |
| 54 const CFX_Matrix* pMatrix = NULL); | 53 const CFX_Matrix* pMatrix = NULL); |
| 55 #endif | 54 #endif |
| OLD | NEW |