Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials

IGUIStaticText.h

Go to the documentation of this file.
00001 // Copyright (C) 2002-2010 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_STATIC_TEXT_H_INCLUDED__
00006 #define __I_GUI_STATIC_TEXT_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 IGUIStaticText : public IGUIElement
00019         {
00020         public:
00021 
00023                 IGUIStaticText(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
00024                         : IGUIElement(EGUIET_STATIC_TEXT, environment, parent, id, rectangle) {}
00025 
00027 
00029                 virtual void setOverrideFont(IGUIFont* font=0) = 0;
00030 
00032 
00033                 virtual IGUIFont* getOverrideFont(void) const = 0;
00034 
00036 
00043                 virtual void setOverrideColor(video::SColor color) = 0;
00044 
00046 
00047                 virtual video::SColor const& getOverrideColor(void) const = 0;
00048 
00050 
00053                 virtual void enableOverrideColor(bool enable) = 0;
00054 
00056 
00057                 virtual bool isOverrideColorEnabled(void) const = 0;
00058 
00060                 virtual void setBackgroundColor(video::SColor color) = 0;
00061 
00063                 virtual void setDrawBackground(bool draw) = 0;
00064 
00066                 virtual void setDrawBorder(bool draw) = 0;
00067 
00069 
00073                 virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
00074 
00076 
00078                 virtual void setWordWrap(bool enable) = 0;
00079 
00081 
00082                 virtual bool isWordWrapEnabled(void) const = 0;
00083 
00085 
00088                 virtual s32 getTextHeight() const = 0;
00089 
00091 
00093                 virtual s32 getTextWidth(void) const = 0;
00094         };
00095 
00096 
00097 } // end namespace gui
00098 } // end namespace irr
00099 
00100 #endif
00101 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Sun Oct 24 12:41:56 2010 by Doxygen (1.6.2)