Don't show Android edit dialog when tapping read-only field (#7337)
[oweals/minetest.git] / src / gui / intlGUIEditBox.h
index aa35e2e71d119128a794c5edb913f42f972373aa..3aa4f00b406806c0af6f29844cbba4cb70562e90 100644 (file)
@@ -7,7 +7,7 @@
 #include "IrrCompileConfig.h"
 //#ifdef _IRR_COMPILE_WITH_GUI_
 
-#include "IGUIEditBox.h"
+#include <IGUIEditBox.h>
 #include "irrArray.h"
 #include "IOSOperator.h"
 #include "IGUIScrollBar.h"
@@ -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();