1 // Copyright 2014 PDFium Authors. All rights reserved.
\r
2 // Use of this source code is governed by a BSD-style license that can be
\r
3 // found in the LICENSE file.
\r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
\r
7 #ifndef _FWL_ToolTip_LIGHT_H
\r
8 #define _FWL_ToolTip_LIGHT_H
\r
10 class CFWL_WidgetProperties;
\r
11 class IFWL_ToolTipDP;
\r
13 class CFWL_ToolTipDP;
\r
14 class CFWL_ToolTip : public CFWL_Widget
\r
17 static CFWL_ToolTip* Create();
\r
18 FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NULL);
\r
19 FWL_ERR GetCaption(CFX_WideString &wsCaption);
\r
20 FWL_ERR SetCaption(FX_WSTR wsCaption);
\r
21 FX_INT32 GetInitialDelay();
\r
22 FX_INT32 SetInitialDelay(FX_INT32 nDelayTime);
\r
23 FX_INT32 GetAutoPopDelay();
\r
24 FX_INT32 SetAutoPopDelay(FX_INT32 nDelayTime);
\r
25 CFX_DIBitmap* GetToolTipIcon();
\r
26 FWL_ERR SetToolTipIcon(CFX_DIBitmap* pBitmap);
\r
27 CFX_SizeF GetToolTipIconSize();
\r
28 FWL_ERR SetToolTipIconSize( CFX_SizeF fSize);
\r
29 FWL_ERR SetAnchor(const CFX_RectF &rtAnchor);
\r
33 virtual ~CFWL_ToolTip();
\r
35 class CFWL_ToolTipDP : public IFWL_ToolTipDP
\r
39 FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption);
\r
40 FX_INT32 GetInitialDelay(IFWL_Widget *pWidget);
\r
41 FX_INT32 GetAutoPopDelay(IFWL_Widget *pWidget);
\r
42 CFX_DIBitmap* GetToolTipIcon(IFWL_Widget *pWidget);
\r
43 CFX_SizeF GetToolTipIconSize(IFWL_Widget *pWidget);
\r
44 CFX_RectF GetAnchor();
\r
45 CFX_WideString m_wsCaption;
\r
46 FX_INT32 m_nInitDelayTime;
\r
47 FX_INT32 m_nAutoPopDelayTime;
\r
48 CFX_DIBitmap* m_pBitmap;
\r
49 CFX_SizeF m_fIconSize;
\r
50 CFX_RectF m_fAnchor;
\r
52 CFWL_ToolTipDP m_tooltipData;
\r