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 XFA_FWL_CORE_IFWL_TOOLTIP_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_TOOLTIP_H_ |
8 #define XFA_FWL_CORE_IFWL_TOOLTIP_H_ | 8 #define XFA_FWL_CORE_IFWL_TOOLTIP_H_ |
9 | 9 |
10 #include "xfa/fwl/core/ifwl_form.h" | 10 #include "xfa/fwl/core/ifwl_form.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 class IFWL_ToolTip : public IFWL_Form { | 35 class IFWL_ToolTip : public IFWL_Form { |
36 public: | 36 public: |
37 IFWL_ToolTip(const IFWL_App* app, | 37 IFWL_ToolTip(const IFWL_App* app, |
38 std::unique_ptr<CFWL_WidgetProperties> properties, | 38 std::unique_ptr<CFWL_WidgetProperties> properties, |
39 IFWL_Widget* pOuter); | 39 IFWL_Widget* pOuter); |
40 ~IFWL_ToolTip() override; | 40 ~IFWL_ToolTip() override; |
41 | 41 |
42 // IFWL_Widget | 42 // IFWL_Widget |
43 FWL_Type GetClassID() const override; | 43 FWL_Type GetClassID() const override; |
44 FWL_Error GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 44 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; |
45 FWL_Error Update() override; | 45 void Update() override; |
46 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 46 void DrawWidget(CFX_Graphics* pGraphics, |
47 const CFX_Matrix* pMatrix = nullptr) override; | 47 const CFX_Matrix* pMatrix = nullptr) override; |
48 void SetStates(uint32_t dwStates, bool bSet) override; | 48 void SetStates(uint32_t dwStates, bool bSet) override; |
49 FWL_Error GetClientRect(CFX_RectF& rect) override; | 49 void GetClientRect(CFX_RectF& rect) override; |
50 void OnDrawWidget(CFX_Graphics* pGraphics, | 50 void OnDrawWidget(CFX_Graphics* pGraphics, |
51 const CFX_Matrix* pMatrix) override; | 51 const CFX_Matrix* pMatrix) override; |
52 | 52 |
53 void SetAnchor(const CFX_RectF& rtAnchor); | 53 void SetAnchor(const CFX_RectF& rtAnchor); |
54 void Show(); | 54 void Show(); |
55 void Hide(); | 55 void Hide(); |
56 | 56 |
57 protected: | 57 protected: |
58 class Timer : public IFWL_Timer { | 58 class Timer : public IFWL_Timer { |
59 public: | 59 public: |
(...skipping 27 matching lines...) Expand all Loading... |
87 private: | 87 private: |
88 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); | 88 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); |
89 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 89 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
90 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 90 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
91 void OnMouseMove(CFWL_MsgMouse* pMsg); | 91 void OnMouseMove(CFWL_MsgMouse* pMsg); |
92 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 92 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
93 void OnKeyDown(CFWL_MsgKey* pMsg); | 93 void OnKeyDown(CFWL_MsgKey* pMsg); |
94 }; | 94 }; |
95 | 95 |
96 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ | 96 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ |
OLD | NEW |