MyGUI  3.2.1
MyGUI_WidgetToolTip.h
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #ifndef __MYGUI_WIDGET_TOOLTIP_H__
00008 #define __MYGUI_WIDGET_TOOLTIP_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 #include "MyGUI_Types.h"
00012 
00013 namespace MyGUI
00014 {
00015 
00017     struct ToolTipInfo
00018     {
00019         enum ToolTipType
00020         {
00021             Hide,
00022             Show,
00023             Move
00024         };
00025 
00026         ToolTipInfo(ToolTipType _type) :
00027             type(_type),
00028             index(ITEM_NONE)
00029         {
00030         }
00031 
00032         ToolTipInfo(ToolTipType _type, size_t _index, const IntPoint& _point) :
00033             type(_type),
00034             index(_index),
00035             point(_point)
00036         {
00037         }
00038 
00039         ToolTipType type;
00040         size_t index;
00041         IntPoint point;
00042     };
00043 
00044 } // namespace MyGUI
00045 
00046 #endif //__MYGUI_WIDGET_TOOLTIP_H__