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_ToolTip_LIGHT_H | 7 #ifndef _FWL_ToolTip_LIGHT_H |
8 #define _FWL_ToolTip_LIGHT_H | 8 #define _FWL_ToolTip_LIGHT_H |
9 class CFWL_Widget; | 9 class CFWL_Widget; |
10 class CFWL_WidgetProperties; | 10 class CFWL_WidgetProperties; |
11 class IFWL_ToolTipDP; | 11 class IFWL_ToolTipDP; |
12 class CFWL_ToolTip; | 12 class CFWL_ToolTip; |
13 class CFWL_ToolTipDP; | 13 class CFWL_ToolTipDP; |
14 class CFWL_ToolTip : public CFWL_Widget | 14 class CFWL_ToolTip : public CFWL_Widget |
15 { | 15 { |
16 public: | 16 public: |
17 static CFWL_ToolTip* Create(); | 17 static CFWL_ToolTip* Create(); |
18 FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NULL); | 18 FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NULL); |
19 FWL_ERR GetCaption(CFX_WideString &wsCaption); | 19 FWL_ERR GetCaption(CFX_WideString &wsCaption); |
20 FWL_ERR SetCaption(FX_WSTR wsCaption); | 20 FWL_ERR SetCaption(FX_WSTR wsCaption); |
21 FX_INT32» » GetInitialDelay(); | 21 int32_t» » GetInitialDelay(); |
22 FX_INT32» » SetInitialDelay(FX_INT32 nDelayTime); | 22 int32_t» » SetInitialDelay(int32_t nDelayTime); |
23 FX_INT32» » GetAutoPopDelay(); | 23 int32_t» » GetAutoPopDelay(); |
24 FX_INT32» » SetAutoPopDelay(FX_INT32 nDelayTime); | 24 int32_t» » SetAutoPopDelay(int32_t nDelayTime); |
25 CFX_DIBitmap* GetToolTipIcon(); | 25 CFX_DIBitmap* GetToolTipIcon(); |
26 FWL_ERR SetToolTipIcon(CFX_DIBitmap* pBitmap); | 26 FWL_ERR SetToolTipIcon(CFX_DIBitmap* pBitmap); |
27 CFX_SizeF GetToolTipIconSize(); | 27 CFX_SizeF GetToolTipIconSize(); |
28 FWL_ERR SetToolTipIconSize( CFX_SizeF fSize); | 28 FWL_ERR SetToolTipIconSize( CFX_SizeF fSize); |
29 FWL_ERR SetAnchor(const CFX_RectF &rtAnchor); | 29 FWL_ERR SetAnchor(const CFX_RectF &rtAnchor); |
30 FWL_ERR Show(); | 30 FWL_ERR Show(); |
31 FWL_ERR Hide(); | 31 FWL_ERR Hide(); |
32 CFWL_ToolTip(); | 32 CFWL_ToolTip(); |
33 virtual ~CFWL_ToolTip(); | 33 virtual ~CFWL_ToolTip(); |
34 protected: | 34 protected: |
35 class CFWL_ToolTipDP : public IFWL_ToolTipDP | 35 class CFWL_ToolTipDP : public IFWL_ToolTipDP |
36 { | 36 { |
37 public: | 37 public: |
38 CFWL_ToolTipDP(); | 38 CFWL_ToolTipDP(); |
39 FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption); | 39 FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption); |
40 FX_INT32» » GetInitialDelay(IFWL_Widget *pWidget); | 40 int32_t» » GetInitialDelay(IFWL_Widget *pWidget); |
41 FX_INT32» » GetAutoPopDelay(IFWL_Widget *pWidget); | 41 int32_t» » GetAutoPopDelay(IFWL_Widget *pWidget); |
42 CFX_DIBitmap* GetToolTipIcon(IFWL_Widget *pWidget); | 42 CFX_DIBitmap* GetToolTipIcon(IFWL_Widget *pWidget); |
43 CFX_SizeF GetToolTipIconSize(IFWL_Widget *pWidget); | 43 CFX_SizeF GetToolTipIconSize(IFWL_Widget *pWidget); |
44 CFX_RectF GetAnchor(); | 44 CFX_RectF GetAnchor(); |
45 CFX_WideString m_wsCaption; | 45 CFX_WideString m_wsCaption; |
46 FX_INT32» » m_nInitDelayTime; | 46 int32_t»» m_nInitDelayTime; |
47 FX_INT32» » m_nAutoPopDelayTime; | 47 int32_t»» m_nAutoPopDelayTime; |
48 CFX_DIBitmap* m_pBitmap; | 48 CFX_DIBitmap* m_pBitmap; |
49 CFX_SizeF m_fIconSize; | 49 CFX_SizeF m_fIconSize; |
50 CFX_RectF m_fAnchor; | 50 CFX_RectF m_fAnchor; |
51 }; | 51 }; |
52 CFWL_ToolTipDP m_tooltipData; | 52 CFWL_ToolTipDP m_tooltipData; |
53 }; | 53 }; |
54 #endif | 54 #endif |
OLD | NEW |