00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _CEGUIFalTextComponent_h_
00025 #define _CEGUIFalTextComponent_h_
00026
00027 #include "falagard/CEGUIFalComponentBase.h"
00028
00029
00030 namespace CEGUI
00031 {
00036 class CEGUIEXPORT TextComponent : public FalagardComponentBase
00037 {
00038 public:
00043 TextComponent();
00044
00052 const String& getText() const;
00053
00067 void setText(const String& text);
00068
00076 const String& getFont() const;
00077
00091 void setFont(const String& font);
00092
00100 VerticalTextFormatting getVerticalFormatting() const;
00101
00112 void setVerticalFormatting(VerticalTextFormatting fmt);
00113
00121 HorizontalTextFormatting getHorizontalFormatting() const;
00122
00133 void setHorizontalFormatting(HorizontalTextFormatting fmt);
00134
00145 void writeXMLToStream(OutStream& out_stream) const;
00146
00147 protected:
00148
00149 void render_impl(Window& srcWindow, Rect& destRect, float base_z, const CEGUI::ColourRect* modColours, const Rect* clipper, bool clipToDisplay) const;
00150
00151 private:
00152 String d_text;
00153 String d_font;
00154 VerticalTextFormatting d_vertFormatting;
00155 HorizontalTextFormatting d_horzFormatting;
00156 };
00157
00158 }
00159
00160
00161 #endif // end of guard _CEGUIFalTextComponent_h_