1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 04:49:54 +00:00
openmw-tes3mp/apps/openmw/mwgui/controllers.hpp

30 lines
593 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.
2020-02-13 20:36:56 +00:00
class ControllerFollowMouse final :
public MyGUI::ControllerItem
{
MYGUI_RTTI_DERIVED( ControllerFollowMouse )
private:
2020-02-13 20:36:56 +00:00
bool addTime(MyGUI::Widget* _widget, float _time) final;
void prepareItem(MyGUI::Widget* _widget) final;
};
}
}
#endif