X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgui%2FintlGUIEditBox.h;h=9d643495e5b7c4704d2dcd429d534eca21391001;hb=8e9e76a5076db0042773c6b925698f018a208b29;hp=aa35e2e71d119128a794c5edb913f42f972373aa;hpb=20a85d76d94c9c5c7fbe198c3d0e1fbee97a485f;p=dragonfireclient.git diff --git a/src/gui/intlGUIEditBox.h b/src/gui/intlGUIEditBox.h index aa35e2e71..9d643495e 100644 --- a/src/gui/intlGUIEditBox.h +++ b/src/gui/intlGUIEditBox.h @@ -7,10 +7,10 @@ #include "IrrCompileConfig.h" //#ifdef _IRR_COMPILE_WITH_GUI_ -#include "IGUIEditBox.h" +#include #include "irrArray.h" #include "IOSOperator.h" -#include "IGUIScrollBar.h" +#include "guiScrollBar.h" namespace irr { @@ -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(); @@ -186,7 +198,7 @@ namespace gui core::rect CurrentTextRect = core::rect(0,0,1,1); core::rect FrameRect; // temporary values u32 m_scrollbar_width; - IGUIScrollBar *m_vscrollbar; + GUIScrollBar *m_vscrollbar; bool m_writable; };