String.h

Go to the documentation of this file.
00001 
00002 //
00003 // SFML - Simple and Fast Multimedia Library
00004 // Copyright (C) 2007 Laurent Gomila (laurent.gom@gmail.com)
00005 //
00006 // This software is provided 'as-is', without any express or implied warranty.
00007 // In no event will the authors be held liable for any damages arising from the use of this software.
00008 //
00009 // Permission is granted to anyone to use this software for any purpose,
00010 // including commercial applications, and to alter it and redistribute it freely,
00011 // subject to the following restrictions:
00012 //
00013 // 1. The origin of this software must not be misrepresented;
00014 //    you must not claim that you wrote the original software.
00015 //    If you use this software in a product, an acknowledgment
00016 //    in the product documentation would be appreciated but is not required.
00017 //
00018 // 2. Altered source versions must be plainly marked as such,
00019 //    and must not be misrepresented as being the original software.
00020 //
00021 // 3. This notice may not be removed or altered from any source distribution.
00022 //
00024 
00025 #ifndef SFML_STRING_H
00026 #define SFML_STRING_H
00027 
00029 // Headers
00031 #include <SFML/Config.h>
00032 #include <SFML/Graphics/BlendMode.h>
00033 #include <SFML/Graphics/Color.h>
00034 #include <SFML/Graphics/Rect.h>
00035 
00036 
00040 typedef struct sfString sfString;
00041 
00042 
00049 CSFML_API sfString* sfString_Create();
00050 
00057 CSFML_API void sfString_Destroy(sfString* String);
00058 
00066 CSFML_API void sfString_SetLeft(sfString* String, float Left);
00067 
00075 CSFML_API void sfString_SetTop(sfString* String, float Top);
00076 
00085 CSFML_API void sfString_SetPosition(sfString* String, float Left, float Top);
00086 
00094 CSFML_API void sfString_SetScaleX(sfString* String, float Scale);
00095 
00103 CSFML_API void sfString_SetScaleY(sfString* String, float Scale);
00104 
00113 CSFML_API void sfString_SetScale(sfString* String, float ScaleX, float ScaleY);
00114 
00122 CSFML_API void sfString_SetRotation(sfString* String, float Rotation);
00123 
00133 CSFML_API void sfString_SetRotationCenter(sfString* String, float X, float Y);
00134 
00142 CSFML_API void sfString_SetColor(sfString* String, sfColor Color);
00143 
00151 CSFML_API void sfString_SetBlendMode(sfString* String, sfBlendMode Mode);
00152 
00161 CSFML_API float sfString_GetLeft(sfString* String);
00162 
00171 CSFML_API float sfString_GetTop(sfString* String);
00172 
00181 CSFML_API float sfString_GetScaleX(sfString* String);
00182 
00191 CSFML_API float sfString_GetScaleY(sfString* String);
00192 
00201 CSFML_API float sfString_GetRotation(sfString* String);
00202 
00211 CSFML_API sfColor sfString_GetColor(sfString* String);
00212 
00221 CSFML_API sfBlendMode sfString_GetBlendMode(sfString* String);
00222 
00231 CSFML_API void sfString_Move(sfString* String, float OffsetX, float OffsetY);
00232 
00241 CSFML_API void sfString_Scale(sfString* String, float FactorX, float FactorY);
00242 
00250 CSFML_API void sfString_Rotate(sfString* String, float Angle);
00251 
00260 CSFML_API void sfString_PreloadFont(const char* Font, float Size, const wchar_t* Charset);
00261 
00269 CSFML_API void sfString_SetText(sfString* String, const char* Text);
00270 
00278 CSFML_API void sfString_SetUnicodeText(sfString* String, const wchar_t* Text);
00279 
00287 CSFML_API void sfString_SetFont(sfString* String, const char* Font);
00288 
00296 CSFML_API void sfString_SetSize(sfString* String, float Size);
00297 
00306 CSFML_API const wchar_t* sfString_GetUnicodeText(sfString* String);
00307 
00316 CSFML_API const char* sfString_GetText(sfString* String);
00317 
00326 CSFML_API const char* sfString_GetFont(sfString* String);
00327 
00336 CSFML_API float sfString_GetSize(sfString* String);
00337 
00346 CSFML_API sfFloatRect sfString_GetRect(sfString* String);
00347 
00348 
00349 #endif // SFML_STRING_H