MyGUI: MyGUI_ToolTipManager.h Source File

MyGUI 3.2.2

MyGUI_ToolTipManager.h
Go to the documentation of this file.
1 /*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7 #ifndef MYGUI_TOOL_TIP_MANAGER_H_
8 #define MYGUI_TOOL_TIP_MANAGER_H_
9
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_IUnlinkWidget.h"
12 #include "MyGUI_Singleton.h"
13
14 namespace MyGUI
15 {
16
17 class MYGUI_EXPORT ToolTipManager :
18 public Singleton<ToolTipManager>,
19 public IUnlinkWidget
20 {
21 public:
22 ToolTipManager();
23
24 void initialise();
25 void shutdown();
26
27 void setDelayVisible(float _value);
28 float getDelayVisible() const;
29
30 /*internal:*/
31 void _unlinkWidget(Widget* _widget);
32
33 private:
34 void notifyEventFrameStart(float _time);
35
36 void hideToolTip(Widget* _widget);
37 void showToolTip(Widget* _widget, size_t _index, const IntPoint& _point);
38 void moveToolTip(Widget* _widget, size_t _index, const IntPoint& _point);
39
40 bool isNeedToolTip(Widget* _widget);
41 size_t getToolTipIndex(Widget* _widget) const;
42
43 private:
44 float mDelayVisible;
45 Widget* mOldFocusWidget;
46 IntPoint mOldMousePoint;
47 bool mToolTipVisible;
48 float mCurrentTime;
49 size_t mOldIndex;
50 bool mNeedToolTip;
51
52 bool mIsInitialise;
53 };
54
55 } // namespace MyGUI
56
57 #endif // MYGUI_TOOL_TIP_MANAGER_H_
MyGUI::Widget
Widget properties. Skin childs. Widget widget description should be here.
Definition: MyGUI_Widget.h:29
MyGUI::types::TPoint< int >
MyGUI::ToolTipManager
Definition: MyGUI_ToolTipManager.h:17
MyGUI_Prerequest.h
MyGUI_Singleton.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:103
MyGUI_IUnlinkWidget.h
MyGUI::IUnlinkWidget
Definition: MyGUI_IUnlinkWidget.h:16
MyGUI::Singleton
Definition: MyGUI_Singleton.h:20
MyGUI
Definition: MyGUI_ActionController.h:14