Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
IGUIStaticText.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_STATIC_TEXT_H_INCLUDED__
6 #define __I_GUI_STATIC_TEXT_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 IGUIStaticText : public IGUIElement
19  {
20  public:
21 
23  IGUIStaticText(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
24  : IGUIElement(EGUIET_STATIC_TEXT, environment, parent, id, rectangle) {}
25 
27 
29  virtual void setOverrideFont(IGUIFont* font=0) = 0;
30 
32 
33  virtual IGUIFont* getOverrideFont(void) const = 0;
34 
36 
43  virtual void setOverrideColor(video::SColor color) = 0;
44 
46 
47  virtual video::SColor const& getOverrideColor(void) const = 0;
48 
50 
53  virtual void enableOverrideColor(bool enable) = 0;
54 
56 
57  virtual bool isOverrideColorEnabled(void) const = 0;
58 
60  virtual void setBackgroundColor(video::SColor color) = 0;
61 
63  virtual void setDrawBackground(bool draw) = 0;
64 
66  virtual void setDrawBorder(bool draw) = 0;
67 
69 
73  virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
74 
76 
78  virtual void setWordWrap(bool enable) = 0;
79 
81 
82  virtual bool isWordWrapEnabled(void) const = 0;
83 
85 
88  virtual s32 getTextHeight() const = 0;
89 
91 
93  virtual s32 getTextWidth(void) const = 0;
94  };
95 
96 
97 } // end namespace gui
98 } // end namespace irr
99 
100 #endif
101 

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)