diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2021-01-13 09:05:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 09:05:09 +0100 |
commit | 4b012828213e3086f11afb3b94ce7aab85a52f55 (patch) | |
tree | e23dc7d1f72feecab374d6854185965e5ff5c718 /src/gui/intlGUIEditBox.h | |
parent | 1946835ee87bdd20c586f6bb79c422da1cad4685 (diff) | |
download | minetest-4b012828213e3086f11afb3b94ce7aab85a52f55.tar.gz minetest-4b012828213e3086f11afb3b94ce7aab85a52f55.tar.bz2 minetest-4b012828213e3086f11afb3b94ce7aab85a52f55.zip |
Factorize more guiEditBoxes code (#10789)
* Factorize more guiEditBoxes code
Diffstat (limited to 'src/gui/intlGUIEditBox.h')
-rw-r--r-- | src/gui/intlGUIEditBox.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gui/intlGUIEditBox.h b/src/gui/intlGUIEditBox.h index 2abc12d1a..007fe1c93 100644 --- a/src/gui/intlGUIEditBox.h +++ b/src/gui/intlGUIEditBox.h @@ -38,12 +38,6 @@ namespace gui //! Updates the absolute position, splits text if required virtual void updateAbsolutePosition(); - //! Writes attributes of the element. - virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; - - //! Reads attributes of the element - virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); - virtual void setCursorChar(const wchar_t cursorChar) {} virtual wchar_t getCursorChar() const { return L'|'; } @@ -57,8 +51,7 @@ namespace gui virtual void breakText(); //! sets the area of the given line virtual void setTextRect(s32 line); - //! adds a letter to the edit box - virtual void inputChar(wchar_t c); + //! calculates the current scroll position void calculateScrollPos(); |