00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025 #ifndef SFML_STRING_HPP
00026 #define SFML_STRING_HPP
00027
00029
00031 #include <SFML/Graphics/Drawable.hpp>
00032 #include <SFML/Graphics/Rect.hpp>
00033 #include <string>
00034
00035
00039 class SFML_API sfString : public sfDrawable
00040 {
00041 public :
00042
00051 sfString(const std::string& Text = "", const std::string& Font = "", float Size = 32.f);
00052
00060 static void PreloadFont(const std::string& Font, float Size);
00061
00068 void SetText(const std::string& Text);
00069
00076 void SetFont(const std::string& Font);
00077
00084 void SetSize(float Size);
00085
00092 const std::string& GetText() const;
00093
00100 const std::string& GetFont() const;
00101
00108 float GetSize() const;
00109
00116 sfFloatRect GetRect() const;
00117
00118 protected :
00119
00124 virtual void Render(sfRenderWindow& Window);
00125
00126 private :
00127
00129
00131 std::string myText;
00132 std::string myFont;
00133 float mySize;
00134 };
00135
00136
00137 #endif // SFML_STRING_HPP