1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-05 15:55:45 +00:00
OpenMW/components/lua_ui/textedit.hpp

32 lines
749 B
C++
Raw Normal View History

2021-11-18 15:19:54 +00:00
#ifndef OPENMW_LUAUI_TEXTEDIT
#define OPENMW_LUAUI_TEXTEDIT
#include <MyGUI_EditBox.h>
#include "widget.hpp"
namespace LuaUi
{
2022-05-14 10:27:30 +00:00
class LuaTextEdit : public MyGUI::Widget, public WidgetExtension
2021-11-18 15:19:54 +00:00
{
MYGUI_RTTI_DERIVED(LuaTextEdit)
protected:
void initialize() override;
void deinitialize() override;
void updateProperties() override;
2022-05-14 10:27:30 +00:00
void updateCoord() override;
void updateChildren() override;
MyGUI::IntSize calculateSize() override;
private:
void textChange(MyGUI::EditBox*);
2022-05-14 10:27:30 +00:00
MyGUI::EditBox* mEditBox = nullptr;
2022-07-02 19:25:51 +00:00
bool mMultiline{0};
bool mAutoSize{0};
2021-11-18 15:19:54 +00:00
};
}
#endif // OPENMW_LUAUI_TEXTEDIT