1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/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 02:50:43 +01:00
#include <string>
#include <MyGUI_ControllerItem.h>
2015-01-10 02:50:43 +01:00
namespace MyGUI
{
class Widget;
}
namespace MWGui
{
namespace Controllers
{
/// Automatically positions a widget below the mouse cursor.
2020-02-13 21:36:56 +01:00
class ControllerFollowMouse final :
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;
};
}
}
#endif