1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/lua_ui/text.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
553 B
C++
Raw Normal View History

2021-11-18 15:19:54 +00:00
#ifndef OPENMW_LUAUI_TEXT
#define OPENMW_LUAUI_TEXT
#include <MyGUI_EditBox.h>
2021-11-18 15:19:54 +00:00
#include "widget.hpp"
namespace LuaUi
{
class LuaText : public MyGUI::EditBox, public WidgetExtension
2021-11-18 15:19:54 +00:00
{
MYGUI_RTTI_DERIVED(LuaText)
public:
2021-11-19 15:21:17 +00:00
LuaText();
void initialize() override;
void updateProperties() override;
2022-01-28 09:31:45 +00:00
void setCaption(const MyGUI::UString& caption) override;
2021-11-18 15:19:54 +00:00
private:
bool mAutoSized;
protected:
MyGUI::IntSize calculateSize() const override;
2021-11-18 15:19:54 +00:00
};
}
#endif // OPENMW_LUAUI_TEXT