You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
749 B

13 years ago
#ifndef UIWINDOW_H
#define UIWINDOW_H
#include <global.h>
13 years ago
#include <ui/uicontainer.h>
13 years ago
class UIWindow;
typedef std::shared_ptr<UIWindow> UIWindowPtr;
13 years ago
class UIWindow : public UIContainer
{
public:
UIWindow() :
13 years ago
UIContainer(UI::Window),
m_moving(false) { }
static UIWindowPtr create() { return UIWindowPtr(new UIWindow); }
13 years ago
void onInputEvent(const InputEvent& event);
13 years ago
void setTitle(const std::string& title) { m_title = title; }
13 years ago
std::string getTitle() const { return m_title; }
13 years ago
virtual const char *getLuaTypeName() const { return "UIWindow"; }
13 years ago
virtual bool isFocusable() const { return true; }
13 years ago
private:
std::string m_title;
13 years ago
bool m_moving;
Point m_movingReference;
13 years ago
};
#endif // UIWINDOW_H