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
|
|
|
|
2020-10-22 21:57:53 +00:00
|
|
|
namespace MWGui::Controllers
|
2013-07-05 17:17:00 +00:00
|
|
|
{
|
2014-08-01 15:14:35 +00:00
|
|
|
/// Automatically positions a widget below the mouse cursor.
|
2020-10-22 21:57:53 +00:00
|
|
|
class ControllerFollowMouse final : public MyGUI::ControllerItem
|
2014-08-01 15:14:35 +00:00
|
|
|
{
|
|
|
|
MYGUI_RTTI_DERIVED( ControllerFollowMouse )
|
|
|
|
|
|
|
|
private:
|
2020-10-22 21:57:53 +00:00
|
|
|
bool addTime(MyGUI::Widget* _widget, float _time) override;
|
|
|
|
void prepareItem(MyGUI::Widget* _widget) override;
|
2014-08-01 15:14:35 +00:00
|
|
|
};
|
2013-07-05 17:17:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|