| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef XFA_INCLUDE_FWL_LIGHTWIDGET_TOOLTIPCTRL_H_ | |
| 8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_TOOLTIPCTRL_H_ | |
| 9 | |
| 10 #include "xfa/fwl/basewidget/ifwl_tooltip.h" | |
| 11 #include "xfa/include/fwl/lightwidget/widget.h" | |
| 12 | |
| 13 class CFWL_ToolTip : public CFWL_Widget { | |
| 14 public: | |
| 15 static CFWL_ToolTip* Create(); | |
| 16 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); | |
| 17 FWL_ERR GetCaption(CFX_WideString& wsCaption); | |
| 18 FWL_ERR SetCaption(const CFX_WideStringC& wsCaption); | |
| 19 int32_t GetInitialDelay(); | |
| 20 int32_t SetInitialDelay(int32_t nDelayTime); | |
| 21 int32_t GetAutoPopDelay(); | |
| 22 int32_t SetAutoPopDelay(int32_t nDelayTime); | |
| 23 CFX_DIBitmap* GetToolTipIcon(); | |
| 24 FWL_ERR SetToolTipIcon(CFX_DIBitmap* pBitmap); | |
| 25 CFX_SizeF GetToolTipIconSize(); | |
| 26 FWL_ERR SetToolTipIconSize(CFX_SizeF fSize); | |
| 27 FWL_ERR SetAnchor(const CFX_RectF& rtAnchor); | |
| 28 FWL_ERR Show(); | |
| 29 FWL_ERR Hide(); | |
| 30 CFWL_ToolTip(); | |
| 31 virtual ~CFWL_ToolTip(); | |
| 32 | |
| 33 protected: | |
| 34 class CFWL_ToolTipDP : public IFWL_ToolTipDP { | |
| 35 public: | |
| 36 CFWL_ToolTipDP(); | |
| 37 FWL_ERR GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption); | |
| 38 int32_t GetInitialDelay(IFWL_Widget* pWidget); | |
| 39 int32_t GetAutoPopDelay(IFWL_Widget* pWidget); | |
| 40 CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget); | |
| 41 CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget); | |
| 42 CFX_RectF GetAnchor(); | |
| 43 CFX_WideString m_wsCaption; | |
| 44 int32_t m_nInitDelayTime; | |
| 45 int32_t m_nAutoPopDelayTime; | |
| 46 CFX_DIBitmap* m_pBitmap; | |
| 47 CFX_SizeF m_fIconSize; | |
| 48 CFX_RectF m_fAnchor; | |
| 49 }; | |
| 50 CFWL_ToolTipDP m_tooltipData; | |
| 51 }; | |
| 52 | |
| 53 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_TOOLTIPCTRL_H_ | |
| OLD | NEW |