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