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/Color.hpp>
00032 #include <SFML/Graphics/Drawable.hpp>
00033 #include <string>
00034
00035
00039 class SFML_API sfString : public sfDrawable
00040 {
00041 public :
00042
00055 sfString(const std::string& Str = "", const std::string& FontName = "", const sfColor& Col = sfColor::White, float X = 0.f, float Y = 0.f, float Rot = 0.f, float Si = 32.f);
00056
00064 static void PreloadFont(const std::string& FontName, float CharSize);
00065
00073 void GetSize(float& Width, float& Height) const;
00074
00076
00078 std::string Text;
00079 std::string Font;
00080 sfColor Color;
00081 float Left;
00082 float Top;
00083 float Rotation;
00084 float Size;
00085
00086 protected :
00087
00092 virtual void Render(sfRenderWindow& Window);
00093 };
00094
00095
00096 #endif // SFML_STRING_HPP