MyGUI: MyGUI_ToolTipManager.h Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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
14namespace MyGUI
15{
16
17 class MYGUI_EXPORT ToolTipManager :
18 public IUnlinkWidget
19 {
20 MYGUI_SINGLETON_DECLARATION(ToolTipManager);
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) override;
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_IUnlinkWidget.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Singleton.h
MYGUI_SINGLETON_DECLARATION
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Definition MyGUI_Singleton.h:111
MyGUI::IUnlinkWidget
Definition MyGUI_IUnlinkWidget.h:17
MyGUI::ToolTipManager
Definition MyGUI_ToolTipManager.h:19
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:37
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::types::TPoint< int >