1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:19:56 +00:00
openmw-tes3mp/apps/openmw/mwgui/controllers.hpp

30 lines
575 B
C++
Raw Normal View History

#ifndef MWGUI_CONTROLLERS_H
#define MWGUI_CONTROLLERS_H
2015-01-10 01:50:43 +00:00
#include <string>
#include <MyGUI_ControllerItem.h>
2015-01-10 01:50:43 +00:00
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