Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
IGUIEditBox.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2010 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_GUI_EDIT_BOX_H_INCLUDED__
6 #define __I_GUI_EDIT_BOX_H_INCLUDED__
7 
8 #include "IGUIElement.h"
9 #include "SColor.h"
10 
11 namespace irr
12 {
13 namespace gui
14 {
15  class IGUIFont;
16 
18  class IGUIEditBox : public IGUIElement
19  {
20  public:
21 
23  IGUIEditBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
24  : IGUIElement(EGUIET_EDIT_BOX, environment, parent, id, rectangle) {}
25 
27 
29  virtual void setOverrideFont(IGUIFont* font=0) = 0;
30 
32 
39  virtual void setOverrideColor(video::SColor color) = 0;
40 
42 
45  virtual void enableOverrideColor(bool enable) = 0;
46 
48 
49  virtual void setDrawBorder(bool border) = 0;
50 
52 
56  virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
57 
59 
61  virtual void setWordWrap(bool enable) = 0;
62 
64 
65  virtual bool isWordWrapEnabled() const = 0;
66 
68 
70  virtual void setMultiLine(bool enable) = 0;
71 
73 
74  virtual bool isMultiLineEnabled() const = 0;
75 
77 
78  virtual void setAutoScroll(bool enable) = 0;
79 
81 
82  virtual bool isAutoScrollEnabled() const = 0;
83 
85 
88  virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*') = 0;
89 
91  virtual bool isPasswordBox() const = 0;
92 
94 
96 
98 
100  virtual void setMax(u32 max) = 0;
101 
103  virtual u32 getMax() const = 0;
104  };
105 
106 
107 } // end namespace gui
108 } // end namespace irr
109 
110 #endif
111 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Fri Mar 21 2014 04:40:16 by Doxygen (1.8.1.2)