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_WIDGET_TOOLTIP_H_
8 #define MYGUI_WIDGET_TOOLTIP_H_
9 
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_Types.h"
12 
13 namespace MyGUI
14 {
15 
16 	/** Info about tootip state */
17 	struct ToolTipInfo
18 	{
19 		enum ToolTipType
20 		{
21 			Hide,
22 			Show,
23 			Move
24 		};
25 
ToolTipInfoToolTipInfo26 		ToolTipInfo(ToolTipType _type) :
27 			type(_type),
28 			index(ITEM_NONE)
29 		{
30 		}
31 
ToolTipInfoToolTipInfo32 		ToolTipInfo(ToolTipType _type, size_t _index, const IntPoint& _point) :
33 			type(_type),
34 			index(_index),
35 			point(_point)
36 		{
37 		}
38 
39 		ToolTipType type;
40 		size_t index;
41 		IntPoint point;
42 	};
43 
44 } // namespace MyGUI
45 
46 #endif //__MYGUI_WIDGET_TOOLTIP_H__
47