Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / include / fwl / lightwidget / tooltipctrl.h
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
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FWL_ToolTip_LIGHT_H\r
8 #define _FWL_ToolTip_LIGHT_H\r
9 class CFWL_Widget;\r
10 class CFWL_WidgetProperties;\r
11 class IFWL_ToolTipDP;\r
12 class CFWL_ToolTip;\r
13 class CFWL_ToolTipDP;\r
14 class CFWL_ToolTip : public CFWL_Widget\r
15 {\r
16 public:\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     int32_t             GetInitialDelay();\r
22     int32_t             SetInitialDelay(int32_t nDelayTime);\r
23     int32_t             GetAutoPopDelay();\r
24     int32_t             SetAutoPopDelay(int32_t 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
30     FWL_ERR             Show();\r
31     FWL_ERR             Hide();\r
32     CFWL_ToolTip();\r
33     virtual ~CFWL_ToolTip();\r
34 protected:\r
35     class CFWL_ToolTipDP : public IFWL_ToolTipDP\r
36     {\r
37     public:\r
38         CFWL_ToolTipDP();\r
39         FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption);\r
40         int32_t         GetInitialDelay(IFWL_Widget *pWidget);\r
41         int32_t         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         int32_t         m_nInitDelayTime;\r
47         int32_t         m_nAutoPopDelayTime;\r
48         CFX_DIBitmap*   m_pBitmap;\r
49         CFX_SizeF               m_fIconSize;\r
50         CFX_RectF               m_fAnchor;\r
51     };\r
52     CFWL_ToolTipDP m_tooltipData;\r
53 };\r
54 #endif\r