IrrlichtEngine
IGUIStaticText.h
Go to the documentation of this file.
00001 // Copyright (C) 2002-2011 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 
00038                 virtual IGUIFont* getActiveFont() const = 0;
00039 
00041 
00048                 virtual void setOverrideColor(video::SColor color) = 0;
00049 
00051 
00052                 virtual video::SColor getOverrideColor(void) const = 0;
00053 
00055 
00058                 virtual void enableOverrideColor(bool enable) = 0;
00059 
00061 
00062                 virtual bool isOverrideColorEnabled(void) const = 0;
00063 
00065                 virtual void setBackgroundColor(video::SColor color) = 0;
00066 
00068                 virtual void setDrawBackground(bool draw) = 0;
00069 
00071 
00072                 virtual video::SColor getBackgroundColor() const = 0;
00073 
00075 
00076                 virtual bool isDrawBackgroundEnabled() const = 0;
00077 
00079                 virtual void setDrawBorder(bool draw) = 0;
00080 
00082 
00083                 virtual bool isDrawBorderEnabled() const = 0;
00084 
00086 
00090                 virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
00091 
00093 
00095                 virtual void setWordWrap(bool enable) = 0;
00096 
00098 
00099                 virtual bool isWordWrapEnabled(void) const = 0;
00100 
00102 
00105                 virtual s32 getTextHeight() const = 0;
00106 
00108 
00110                 virtual s32 getTextWidth(void) const = 0;
00111 
00113                 virtual void setTextRestrainedInside(bool restrainedInside) = 0;
00114 
00116                 virtual bool isTextRestrainedInside() const = 0;
00117 
00119 
00124                 virtual void setRightToLeft(bool rtl) = 0;
00125 
00127                 virtual bool isRightToLeft() const = 0;
00128         };
00129 
00130 
00131 } // end namespace gui
00132 } // end namespace irr
00133 
00134 #endif
00135