mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-31 18:15:01 +00:00
35 lines
806 B
C++
35 lines
806 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)
|
|
|
|
public:
|
|
bool isTextInput() override { return mEditBox->getEditStatic(); }
|
|
|
|
protected:
|
|
void initialize() override;
|
|
void deinitialize() override;
|
|
void updateProperties() override;
|
|
void updateCoord() override;
|
|
void updateChildren() override;
|
|
MyGUI::IntSize calculateSize() const override;
|
|
|
|
private:
|
|
void textChange(MyGUI::EditBox*);
|
|
|
|
MyGUI::EditBox* mEditBox = nullptr;
|
|
bool mMultiline{ false };
|
|
bool mAutoSize{ false };
|
|
};
|
|
}
|
|
|
|
#endif // OPENMW_LUAUI_TEXTEDIT
|