|
IrrlichtEngine
|
00001 // Copyright (C) 2002-2011 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 class IGUIEditBox : public IGUIElement 00019 { 00020 public: 00021 00023 IGUIEditBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle) 00024 : IGUIElement(EGUIET_EDIT_BOX, environment, parent, id, rectangle) {} 00025 00027 00029 virtual void setOverrideFont(IGUIFont* font=0) = 0; 00030 00032 00033 virtual IGUIFont* getOverrideFont() const = 0; 00034 00036 00038 virtual IGUIFont* getActiveFont() const = 0; 00039 00041 00048 virtual void setOverrideColor(video::SColor color) = 0; 00049 00051 virtual video::SColor getOverrideColor() const = 0; 00052 00054 00057 virtual void enableOverrideColor(bool enable) = 0; 00058 00060 00061 virtual bool isOverrideColorEnabled(void) const = 0; 00062 00064 virtual void setDrawBackground(bool draw) = 0; 00065 00067 00068 virtual void setDrawBorder(bool border) = 0; 00069 00071 00075 virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0; 00076 00078 00080 virtual void setWordWrap(bool enable) = 0; 00081 00083 00084 virtual bool isWordWrapEnabled() const = 0; 00085 00087 00089 virtual void setMultiLine(bool enable) = 0; 00090 00092 00093 virtual bool isMultiLineEnabled() const = 0; 00094 00096 00097 virtual void setAutoScroll(bool enable) = 0; 00098 00100 00101 virtual bool isAutoScrollEnabled() const = 0; 00102 00104 00107 virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*') = 0; 00108 00110 virtual bool isPasswordBox() const = 0; 00111 00113 00114 virtual core::dimension2du getTextDimension() = 0; 00115 00117 00119 virtual void setMax(u32 max) = 0; 00120 00122 virtual u32 getMax() const = 0; 00123 }; 00124 00125 00126 } // end namespace gui 00127 } // end namespace irr 00128 00129 #endif 00130