 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_GUI_EDIT_BOX_H_INCLUDED__
6 #define __I_GUI_EDIT_BOX_H_INCLUDED__
112 virtual void setPasswordBox(
bool passwordBox,
wchar_t passwordChar = L
'*') = 0;
virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical)=0
Sets text justification mode.
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background.
virtual void setMultiLine(bool enable)=0
Enables or disables newlines.
virtual void setMax(u32 max)=0
Sets the maximum amount of characters which may be entered in the box.
virtual void enableOverrideColor(bool enable)=0
Sets if the text should use the override color or the color in the gui skin.
virtual bool isPasswordBox() const =0
Returns true if the edit box is currently a password box.
virtual void setDrawBorder(bool border)=0
Turns the border on or off.
IGUIEditBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual IGUIFont * getActiveFont() const =0
Get the font which is used right now for drawing.
virtual bool isMultiLineEnabled() const =0
Checks if multi line editing is enabled.
signed int s32
32 bit signed variable.
virtual video::SColor getOverrideColor() const =0
Gets the override color.
virtual void setOverrideFont(IGUIFont *font=0)=0
Sets another skin independent font.
virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar=L' *')=0
Sets whether the edit box is a password box. Setting this to true will.
virtual bool isWordWrapEnabled() const =0
Checks if word wrap is enabled.
virtual core::dimension2du getTextDimension()=0
Gets the size area of the text in the edit box.
virtual u32 getMax() const =0
Returns maximum amount of characters, previously set by setMax();.
@ EGUIET_EDIT_BOX
An edit box (IGUIEditBox)
virtual void setOverrideColor(video::SColor color)=0
Sets another color for the text.
Single line edit box for editing simple text.
Everything in the Irrlicht Engine can be found in this namespace.
virtual void draw()
Draws the element and its children.
unsigned int u32
32 bit unsigned variable.
virtual bool isAutoScrollEnabled() const =0
Checks to see if automatic scrolling is enabled.
GUI Environment. Used as factory and manager of all other GUI elements.
virtual bool isOverrideColorEnabled(void) const =0
Checks if an override color is enabled.
virtual IGUIFont * getOverrideFont() const =0
Gets the override font (if any)
Class representing a 32 bit ARGB color.
Base class of all GUI elements.
virtual void setWordWrap(bool enable)=0
Enables or disables word wrap.
virtual void setAutoScroll(bool enable)=0
Enables or disables automatic scrolling with cursor position.