You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
593 B
C++
30 lines
593 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 final :
|
|
public MyGUI::ControllerItem
|
|
{
|
|
MYGUI_RTTI_DERIVED( ControllerFollowMouse )
|
|
|
|
private:
|
|
bool addTime(MyGUI::Widget* _widget, float _time) final;
|
|
void prepareItem(MyGUI::Widget* _widget) final;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|