1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00
OpenMW/apps/openmw/mwgui/controllers.hpp
2019-05-17 10:49:00 +04:00

30 lines
575 B
C++

#ifndef MWGUI_CONTROLLERS_H
#define MWGUI_CONTROLLERS_H
#include <string>
#include <MyGUI_ControllerItem.h>
namespace MyGUI
{
class Widget;
}
namespace MWGui
{
namespace Controllers
{
/// 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);
};
}
}
#endif