diff options
author | sfan5 <sfan5@live.de> | 2021-03-19 18:44:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 18:44:32 +0100 |
commit | 96d4df995c1baf364217699cd43e5ab71918c9d8 (patch) | |
tree | 531fef95d5886805191e74d0a1bf418e146e1f61 /src/gui/intlGUIEditBox.h | |
parent | 285ba74723695c4b51192dac0e1e17c5d8f880db (diff) | |
download | minetest-96d4df995c1baf364217699cd43e5ab71918c9d8.tar.gz minetest-96d4df995c1baf364217699cd43e5ab71918c9d8.tar.bz2 minetest-96d4df995c1baf364217699cd43e5ab71918c9d8.zip |
Drop old text input workarounds (#11089)
* Drop unused intlGUIEditBox
* Drop unnecessary Linux text input workarounds
Diffstat (limited to 'src/gui/intlGUIEditBox.h')
-rw-r--r-- | src/gui/intlGUIEditBox.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/gui/intlGUIEditBox.h b/src/gui/intlGUIEditBox.h deleted file mode 100644 index 007fe1c93..000000000 --- a/src/gui/intlGUIEditBox.h +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (C) 2002-2013 Nikolaus Gebhardt -// This file is part of the "Irrlicht Engine". -// For conditions of distribution and use, see copyright notice in irrlicht.h - -#pragma once - -#include "IrrCompileConfig.h" -//#ifdef _IRR_COMPILE_WITH_GUI_ - -#include "guiEditBox.h" -#include "irrArray.h" -#include "IOSOperator.h" - -namespace irr -{ -namespace gui -{ - class intlGUIEditBox : public GUIEditBox - { - public: - - //! constructor - intlGUIEditBox(const wchar_t* text, bool border, IGUIEnvironment* environment, - IGUIElement* parent, s32 id, const core::rect<s32>& rectangle, - bool writable = true, bool has_vscrollbar = false); - - //! destructor - virtual ~intlGUIEditBox() {} - - //! Sets whether to draw the background - virtual void setDrawBackground(bool draw); - - virtual bool isDrawBackgroundEnabled() const { return true; } - - //! draws the element and its children - virtual void draw(); - - //! Updates the absolute position, splits text if required - virtual void updateAbsolutePosition(); - - 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. - virtual void breakText(); - //! sets the area of the given line - virtual void setTextRect(s32 line); - - //! calculates the current scroll position - void calculateScrollPos(); - - s32 getCursorPos(s32 x, s32 y); - - //! Create a vertical scrollbar - void createVScrollBar(); - }; - - -} // end namespace gui -} // end namespace irr - -//#endif // _IRR_COMPILE_WITH_GUI_ |