Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
907 B · 38 lines
C++
at master
123456789101112131415161718192021222324252627282930313233343536373839#ifndef OPENMW_LUAUI_TEXTEDIT#define OPENMW_LUAUI_TEXTEDIT
#include <vector>
#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;
const std::vector<std::string_view>& allUsedProperties() const override;
private: void textChange(MyGUI::EditBox*);
MyGUI::EditBox* mEditBox = nullptr; bool mMultiline{ false }; bool mAutoSize{ false }; };}
#endif // OPENMW_LUAUI_TEXTEDIT