| 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_WIDGET_LIGHT_H | 7 #ifndef _FWL_WIDGET_LIGHT_H |
| 8 #define _FWL_WIDGET_LIGHT_H | 8 #define _FWL_WIDGET_LIGHT_H |
| 9 class CFWL_WidgetMgr; | 9 class CFWL_WidgetMgr; |
| 10 class CFWL_Message; | 10 class CFWL_Message; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 FWL_ERR GetProperties(CFWL_WidgetProperties &properties)
; | 76 FWL_ERR GetProperties(CFWL_WidgetProperties &properties)
; |
| 77 FWL_ERR SetProperties(const CFWL_WidgetProperties &prope
rties); | 77 FWL_ERR SetProperties(const CFWL_WidgetProperties &prope
rties); |
| 78 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); | 78 IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate); |
| 79 FWL_ERR Repaint(const CFX_RectF *pRect = NULL); | 79 FWL_ERR Repaint(const CFX_RectF *pRect = NULL); |
| 80 FWL_ERR SetFocus(FX_BOOL bFocus); | 80 FWL_ERR SetFocus(FX_BOOL bFocus); |
| 81 FWL_ERR SetGrab(FX_BOOL bSet); | 81 FWL_ERR SetGrab(FX_BOOL bSet); |
| 82 CFWL_Widget(); | 82 CFWL_Widget(); |
| 83 virtual ~CFWL_Widget(); | 83 virtual ~CFWL_Widget(); |
| 84 void RegisterEventTarget(CFWL_Widget *pEventSource = NULL, FX
_DWORD dwFilter = FWL_EVENT_ALL_MASK); | 84 void RegisterEventTarget(CFWL_Widget *pEventSource = NULL, FX
_DWORD dwFilter = FWL_EVENT_ALL_MASK); |
| 85 void DispatchEvent(CFWL_Event *pEvent); | 85 void DispatchEvent(CFWL_Event *pEvent); |
| 86 CFX_SizeF» CalcTextSize(const CFX_WideString &wsText, FX_BOOL bMultiLine =
FALSE, FX_INT32 iLineWidth = -1); | 86 CFX_SizeF» CalcTextSize(const CFX_WideString &wsText, FX_BOOL bMultiLine =
FALSE, int32_t iLineWidth = -1); |
| 87 IFWL_Widget *m_pImp; | 87 IFWL_Widget *m_pImp; |
| 88 IFWL_WidgetDelegate *m_pDelegate; | 88 IFWL_WidgetDelegate *m_pDelegate; |
| 89 CFWL_WidgetMgr *m_pWidgetMgr; | 89 CFWL_WidgetMgr *m_pWidgetMgr; |
| 90 CFWL_WidgetProperties *m_pProperties; | 90 CFWL_WidgetProperties *m_pProperties; |
| 91 }; | 91 }; |
| 92 class CFWL_WidgetDelegate | 92 class CFWL_WidgetDelegate |
| 93 { | 93 { |
| 94 public: | 94 public: |
| 95 CFWL_WidgetDelegate(); | 95 CFWL_WidgetDelegate(); |
| 96 virtual ~CFWL_WidgetDelegate(); | 96 virtual ~CFWL_WidgetDelegate(); |
| 97 virtual FX_INT32» OnProcessMessage(CFWL_Message *pMessage); | 97 virtual int32_t» OnProcessMessage(CFWL_Message *pMessage); |
| 98 virtual FWL_ERR OnProcessEvent(CFWL_Event *pEvent); | 98 virtual FWL_ERR OnProcessEvent(CFWL_Event *pEvent); |
| 99 virtual FWL_ERR OnDrawWidget(CFX_Graphics *pGraphics, const CFX_
Matrix *pMatrix = NULL); | 99 virtual FWL_ERR OnDrawWidget(CFX_Graphics *pGraphics, const CFX_
Matrix *pMatrix = NULL); |
| 100 }; | 100 }; |
| 101 #endif | 101 #endif |
| OLD | NEW |