Irrlicht 3D Engine
IGUIEditBox.h
Go to the documentation of this file.
00001 // Copyright (C) 2002-2012 Nikolaus Gebhardt
00002 // This file is part of the "Irrlicht Engine".
00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
00004 
00005 #ifndef __I_GUI_EDIT_BOX_H_INCLUDED__
00006 #define __I_GUI_EDIT_BOX_H_INCLUDED__
00007 
00008 #include "IGUIElement.h"
00009 #include "SColor.h"
00010 
00011 namespace irr
00012 {
00013 namespace gui
00014 {
00015     class IGUIFont;
00016 
00018 
00023     class IGUIEditBox : public IGUIElement
00024     {
00025     public:
00026 
00028         IGUIEditBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
00029             : IGUIElement(EGUIET_EDIT_BOX, environment, parent, id, rectangle) {}
00030 
00032 
00034         virtual void setOverrideFont(IGUIFont* font=0) = 0;
00035 
00037 
00038         virtual IGUIFont* getOverrideFont() const = 0;
00039 
00041 
00043         virtual IGUIFont* getActiveFont() const = 0;
00044 
00046 
00053         virtual void setOverrideColor(video::SColor color) = 0;
00054 
00056         virtual video::SColor getOverrideColor() const = 0;
00057 
00059 
00062         virtual void enableOverrideColor(bool enable) = 0;
00063 
00065 
00066         virtual bool isOverrideColorEnabled(void) const = 0;
00067 
00069         virtual void setDrawBackground(bool draw) = 0;
00070 
00072 
00073         virtual void setDrawBorder(bool border) = 0;
00074 
00076 
00080         virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
00081 
00083 
00085         virtual void setWordWrap(bool enable) = 0;
00086 
00088 
00089         virtual bool isWordWrapEnabled() const = 0;
00090 
00092 
00094         virtual void setMultiLine(bool enable) = 0;
00095 
00097 
00098         virtual bool isMultiLineEnabled() const = 0;
00099 
00101 
00102         virtual void setAutoScroll(bool enable) = 0;
00103 
00105 
00106         virtual bool isAutoScrollEnabled() const = 0;
00107 
00109 
00112         virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*') = 0;
00113 
00115         virtual bool isPasswordBox() const = 0;
00116 
00118 
00119         virtual core::dimension2du getTextDimension() = 0;
00120 
00122 
00124         virtual void setMax(u32 max) = 0;
00125 
00127         virtual u32 getMax() const = 0;
00128     };
00129 
00130 
00131 } // end namespace gui
00132 } // end namespace irr
00133 
00134 #endif
00135