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

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

35 lines
806 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)
public:
bool isTextInput() override { return mEditBox->getEditStatic(); }
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() const override;
private:
void textChange(MyGUI::EditBox*);
2022-05-14 10:27:30 +00:00
MyGUI::EditBox* mEditBox = nullptr;
2022-07-02 20:03:30 +00:00
bool mMultiline{ false };
bool mAutoSize{ false };
2021-11-18 15:19:54 +00:00
};
}
#endif // OPENMW_LUAUI_TEXTEDIT