1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Fix Android build, but there is a remaining linking issue in guiConfirmRegistration

* Also fix variable name overloading in guiConfirmRegistration
This commit is contained in:
Loic Blot 2018-03-11 17:45:58 +01:00
parent 22a891a925
commit a1c5a01142
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
4 changed files with 31 additions and 20 deletions

View file

@ -57,9 +57,13 @@ namespace gui
//! Sets whether to draw the background
virtual void setDrawBackground(bool draw);
virtual bool isDrawBackgroundEnabled() const { return true; }
//! Turns the border on or off
virtual void setDrawBorder(bool border);
virtual bool isDrawBorderEnabled() const { return Border; }
//! Enables or disables word wrap for using the edit box as multiline text editor.
virtual void setWordWrap(bool enable);
@ -129,6 +133,14 @@ namespace gui
//! 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'|'; }
virtual void setCursorBlinkTime(u32 timeMs) {}
virtual u32 getCursorBlinkTime() const { return 500; }
protected:
//! Breaks the single text line.
void breakText();