| 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" |
| 11 #include "xfa/fwl/lightwidget/cfwl_widgetproperties.h" | 11 #include "xfa/fwl/lightwidget/cfwl_widgetproperties.h" |
| 12 #include "xfa/fwl/core/ifwl_widget.h" | 12 #include "xfa/fwl/core/ifwl_widget.h" |
| 13 | 13 |
| 14 class CFWL_Event; | 14 class CFWL_Event; |
| 15 class CFWL_Message; | 15 class CFWL_Message; |
| 16 class CFWL_Widget; | 16 class CFWL_Widget; |
| 17 class CFWL_WidgetDelegate; | 17 class CFWL_WidgetDelegate; |
| 18 class CFWL_WidgetMgr; | 18 class CFWL_WidgetMgr; |
| 19 | 19 |
| 20 class CFWL_Widget { | 20 class CFWL_Widget { |
| 21 public: | 21 public: |
| 22 virtual ~CFWL_Widget(); | 22 virtual ~CFWL_Widget(); |
| 23 IFWL_Widget* GetWidget(); | 23 IFWL_Widget* GetWidget(); |
| 24 FWL_ERR GetClassName(CFX_WideString& wsClass) const; | 24 FWL_ERR GetClassName(CFX_WideString& wsClass) const; |
| 25 uint32_t GetClassID() const; | 25 FWL_Type GetClassID() const; |
| 26 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; | 26 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; |
| 27 | 27 |
| 28 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 28 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
| 29 FWL_ERR GetGlobalRect(CFX_RectF& rect); | 29 FWL_ERR GetGlobalRect(CFX_RectF& rect); |
| 30 FWL_ERR SetWidgetRect(const CFX_RectF& rect); | 30 FWL_ERR SetWidgetRect(const CFX_RectF& rect); |
| 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); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |