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_H | 7 #ifndef _FWL_TOOLTIP_H |
8 #define _FWL_TOOLTIP_H | 8 #define _FWL_TOOLTIP_H |
9 class CFWL_WidgetImpProperties; | 9 class CFWL_WidgetImpProperties; |
10 class IFWL_Form; | 10 class IFWL_Form; |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, | 25 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, |
26 CFX_WideString& wsCaption) = 0; | 26 CFX_WideString& wsCaption) = 0; |
27 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0; | 27 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0; |
28 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0; | 28 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0; |
29 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0; | 29 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0; |
30 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0; | 30 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0; |
31 }; | 31 }; |
32 class IFWL_ToolTip : public IFWL_Form { | 32 class IFWL_ToolTip : public IFWL_Form { |
33 public: | 33 public: |
34 static IFWL_ToolTip* Create(); | 34 static IFWL_ToolTip* Create(); |
35 FWL_ERR Initialize(IFWL_Widget* pOuter = NULL); | |
36 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, | 35 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, |
37 IFWL_Widget* pOuter = NULL); | 36 IFWL_Widget* pOuter); |
38 FWL_ERR SetAnchor(const CFX_RectF& rtAnchor); | 37 FWL_ERR SetAnchor(const CFX_RectF& rtAnchor); |
39 FWL_ERR Show(); | 38 FWL_ERR Show(); |
40 FWL_ERR Hide(); | 39 FWL_ERR Hide(); |
41 | 40 |
42 protected: | 41 protected: |
43 IFWL_ToolTip(); | 42 IFWL_ToolTip(); |
44 }; | 43 }; |
45 #endif | 44 #endif |
OLD | NEW |