00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _CEGUIFalTextComponent_h_
00029 #define _CEGUIFalTextComponent_h_
00030
00031 #include "falagard/CEGUIFalComponentBase.h"
00032
00033
00034 namespace CEGUI
00035 {
00040 class CEGUIEXPORT TextComponent : public FalagardComponentBase
00041 {
00042 public:
00047 TextComponent();
00048
00056 const String& getText() const;
00057
00071 void setText(const String& text);
00072
00080 const String& getFont() const;
00081
00095 void setFont(const String& font);
00096
00104 VerticalTextFormatting getVerticalFormatting() const;
00105
00116 void setVerticalFormatting(VerticalTextFormatting fmt);
00117
00125 HorizontalTextFormatting getHorizontalFormatting() const;
00126
00137 void setHorizontalFormatting(HorizontalTextFormatting fmt);
00138
00150 void writeXMLToStream(XMLSerializer& xml_stream) const;
00151
00160 bool isTextFetchedFromProperty() const;
00161
00170 const String& getTextPropertySource() const;
00171
00183 void setTextPropertySource(const String& property);
00184
00193 bool isFontFetchedFromProperty() const;
00194
00203 const String& getFontPropertySource() const;
00204
00216 void setFontPropertySource(const String& property);
00217
00218 protected:
00219
00220 void render_impl(Window& srcWindow, Rect& destRect, float base_z, const CEGUI::ColourRect* modColours, const Rect* clipper, bool clipToDisplay) const;
00221
00222 private:
00223 String d_text;
00224 String d_font;
00225 VerticalTextFormatting d_vertFormatting;
00226 HorizontalTextFormatting d_horzFormatting;
00227 String d_textPropertyName;
00228 String d_fontPropertyName;
00229 };
00230
00231 }
00232
00233
00234 #endif // end of guard _CEGUIFalTextComponent_h_