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.
openmw/components/lua_ui/textedit.hpp

32 lines
757 B
C++

#ifndef OPENMW_LUAUI_TEXTEDIT
#define OPENMW_LUAUI_TEXTEDIT
#include <MyGUI_EditBox.h>
#include "widget.hpp"
namespace LuaUi
{
class LuaTextEdit : public MyGUI::Widget, public WidgetExtension
{
MYGUI_RTTI_DERIVED(LuaTextEdit)
protected:
void initialize() override;
void deinitialize() override;
void updateProperties() override;
void updateCoord() override;
void updateChildren() override;
MyGUI::IntSize calculateSize() override;
private:
void textChange(MyGUI::EditBox*);
MyGUI::EditBox* mEditBox = nullptr;
bool mMultiline{false};
bool mAutoSize{false};
};
}
#endif // OPENMW_LUAUI_TEXTEDIT