| 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 |
| 23 IFWL_Widget* GetWidget(); | 24 IFWL_Widget* GetWidget(); |
| 24 FWL_Error GetClassName(CFX_WideString& wsClass) const; | 25 FWL_Error GetClassName(CFX_WideString& wsClass) const; |
| 25 uint32_t GetClassID() const; | 26 FWL_Type GetClassID() const; |
| 26 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; | 27 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; |
| 27 | 28 |
| 28 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); | 29 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); |
| 29 FWL_Error GetGlobalRect(CFX_RectF& rect); | 30 FWL_Error GetGlobalRect(CFX_RectF& rect); |
| 30 FWL_Error SetWidgetRect(const CFX_RectF& rect); | 31 FWL_Error SetWidgetRect(const CFX_RectF& rect); |
| 31 FWL_Error GetClientRect(CFX_RectF& rtClient); | 32 FWL_Error GetClientRect(CFX_RectF& rtClient); |
| 32 CFWL_Widget* GetParent(); | 33 CFWL_Widget* GetParent(); |
| 33 FWL_Error SetParent(CFWL_Widget* pParent); | 34 FWL_Error SetParent(CFWL_Widget* pParent); |
| 34 CFWL_Widget* GetOwner(); | 35 CFWL_Widget* GetOwner(); |
| 35 FWL_Error SetOwner(CFWL_Widget* pOwner); | 36 FWL_Error SetOwner(CFWL_Widget* pOwner); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 IFWL_Widget* m_pIface; | 70 IFWL_Widget* m_pIface; |
| 70 IFWL_WidgetDelegate* m_pDelegate; | 71 IFWL_WidgetDelegate* m_pDelegate; |
| 71 CFWL_WidgetMgr* m_pWidgetMgr; | 72 CFWL_WidgetMgr* m_pWidgetMgr; |
| 72 CFWL_WidgetProperties* m_pProperties; | 73 CFWL_WidgetProperties* m_pProperties; |
| 73 | 74 |
| 74 protected: | 75 protected: |
| 75 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL); | 76 FWL_Error Initialize(const CFWL_WidgetProperties* pProperties = NULL); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ | 79 #endif // XFA_FWL_LIGHTWIDGET_CFWL_WIDGET_H_ |
| OLD | NEW |