Loading...
Searching...
No Matches
IGUIEditBox.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_EDIT_BOX_H_INCLUDED__
#define __I_GUI_EDIT_BOX_H_INCLUDED__
#include "IGUIElement.h"
#include "SColor.h"
namespace irr
{
namespace gui
{
class IGUIFont;
class IGUIEditBox : public IGUIElement
{
public:
IGUIEditBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_EDIT_BOX, environment, parent, id, rectangle) {}
virtual void setOverrideFont(IGUIFont* font=0) = 0;
virtual IGUIFont* getOverrideFont() const = 0;
virtual IGUIFont* getActiveFont() const = 0;
virtual void setOverrideColor(video::SColor color) = 0;
virtual video::SColor getOverrideColor() const = 0;
virtual void enableOverrideColor(bool enable) = 0;
virtual bool isOverrideColorEnabled(void) const = 0;
virtual void setDrawBackground(bool draw) = 0;
virtual void setDrawBorder(bool border) = 0;
virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
virtual void setWordWrap(bool enable) = 0;
virtual bool isWordWrapEnabled() const = 0;
virtual void setMultiLine(bool enable) = 0;
virtual bool isMultiLineEnabled() const = 0;
virtual void setAutoScroll(bool enable) = 0;
virtual bool isAutoScrollEnabled() const = 0;
virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*') = 0;
virtual bool isPasswordBox() const = 0;
virtual core::dimension2du getTextDimension() = 0;
virtual void setMax(u32 max) = 0;
virtual u32 getMax() const = 0;
};
} // end namespace gui
} // end namespace irr
#endif
IGUIElement.h
SColor.h
irr::core::rect
Rectangle template.
Definition rect.h:27
irr::gui::IGUIEditBox::setDrawBackground
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background.
irr::gui::IGUIEditBox::isMultiLineEnabled
virtual bool isMultiLineEnabled() const =0
Checks if multi line editing is enabled.
irr::gui::IGUIEditBox::setMultiLine
virtual void setMultiLine(bool enable)=0
Enables or disables newlines.
irr::gui::IGUIEditBox::enableOverrideColor
virtual void enableOverrideColor(bool enable)=0
Sets if the text should use the override color or the color in the gui skin.
irr::gui::IGUIEditBox::getOverrideColor
virtual video::SColor getOverrideColor() const =0
Gets the override color.
irr::gui::IGUIEditBox::setDrawBorder
virtual void setDrawBorder(bool border)=0
Turns the border on or off.
irr::gui::IGUIEditBox::IGUIEditBox
IGUIEditBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIEditBox.h:28
irr::gui::IGUIEditBox::isAutoScrollEnabled
virtual bool isAutoScrollEnabled() const =0
Checks to see if automatic scrolling is enabled.
irr::gui::IGUIEditBox::setMax
virtual void setMax(u32 max)=0
Sets the maximum amount of characters which may be entered in the box.
irr::gui::IGUIEditBox::setPasswordBox
virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar=L' *')=0
Sets whether the edit box is a password box. Setting this to true will.
irr::gui::IGUIEditBox::setOverrideFont
virtual void setOverrideFont(IGUIFont *font=0)=0
Sets another skin independent font.
irr::gui::IGUIEditBox::getOverrideFont
virtual IGUIFont * getOverrideFont() const =0
Gets the override font (if any).
irr::gui::IGUIEditBox::isPasswordBox
virtual bool isPasswordBox() const =0
Returns true if the edit box is currently a password box.
irr::gui::IGUIEditBox::setWordWrap
virtual void setWordWrap(bool enable)=0
Enables or disables word wrap.
irr::gui::IGUIEditBox::setOverrideColor
virtual void setOverrideColor(video::SColor color)=0
Sets another color for the text.
irr::gui::IGUIEditBox::setTextAlignment
virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical)=0
Sets text justification mode.
irr::gui::IGUIEditBox::getTextDimension
virtual core::dimension2du getTextDimension()=0
Gets the size area of the text in the edit box.
irr::gui::IGUIEditBox::setAutoScroll
virtual void setAutoScroll(bool enable)=0
Enables or disables automatic scrolling with cursor position.
irr::gui::IGUIEditBox::isWordWrapEnabled
virtual bool isWordWrapEnabled() const =0
Checks if word wrap is enabled.
irr::gui::IGUIEditBox::getMax
virtual u32 getMax() const =0
Returns maximum amount of characters, previously set by setMax();.
irr::gui::IGUIEditBox::getActiveFont
virtual IGUIFont * getActiveFont() const =0
Get the font which is used right now for drawing.
irr::gui::IGUIEditBox::isOverrideColorEnabled
virtual bool isOverrideColorEnabled(void) const =0
Checks if an override color is enabled.
irr::gui::IGUIElement::draw
virtual void draw()
Draws the element and its children.
Definition IGUIElement.h:312
irr::gui::IGUIElement::IGUIElement
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
Definition IGUIElement.h:30
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.h:71
irr::gui::IGUIFont
Font interface.
Definition IGUIFont.h:40
irr::video::SColor
Class representing a 32 bit ARGB color.
Definition SColor.h:202
irr::core::dimension2du
dimension2d< u32 > dimension2du
Typedef for an unsigned integer dimension.
Definition dimension2d.h:212
irr::gui
The gui namespace contains useful classes for easy creation of a graphical user interface.
Definition EGUIAlignment.h:11
irr::gui::EGUI_ALIGNMENT
EGUI_ALIGNMENT
Definition EGUIAlignment.h:13
irr::gui::EGUIET_EDIT_BOX
@ EGUIET_EDIT_BOX
An edit box (IGUIEditBox).
Definition EGUIElementTypes.h:35
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0