2013-07-05 17:17:00 +00:00
|
|
|
#ifndef MWGUI_CONTROLLERS_H
|
|
|
|
#define MWGUI_CONTROLLERS_H
|
|
|
|
|
2015-01-10 01:50:43 +00:00
|
|
|
#include <string>
|
2013-07-05 17:17:00 +00:00
|
|
|
#include <MyGUI_ControllerItem.h>
|
|
|
|
|
2015-01-10 01:50:43 +00:00
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class Widget;
|
|
|
|
}
|
2013-07-05 17:17:00 +00:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
namespace Controllers
|
|
|
|
{
|
2014-08-01 15:14:35 +00:00
|
|
|
/// Automatically positions a widget below the mouse cursor.
|
|
|
|
class ControllerFollowMouse :
|
|
|
|
public MyGUI::ControllerItem
|
|
|
|
{
|
|
|
|
MYGUI_RTTI_DERIVED( ControllerFollowMouse )
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool addTime(MyGUI::Widget* _widget, float _time);
|
|
|
|
void prepareItem(MyGUI::Widget* _widget);
|
|
|
|
};
|
2013-07-05 17:17:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|