495 #endif // SFML_TEXT_H CSFML_GRAPHICS_API sfTransform sfText_getInverseTransform(const sfText *text)
Get the inverse of the combined transform of a text.
#define CSFML_GRAPHICS_API
CSFML_GRAPHICS_API void sfText_setCharacterSize(sfText *text, unsigned int size)
Set the character size of a text.
CSFML_GRAPHICS_API void sfText_setUnicodeString(sfText *text, const sfUint32 *string)
Set the string of a text (from a unicode string)
CSFML_GRAPHICS_API void sfText_setOutlineThickness(sfText *text, float thickness)
Set the thickness of the text's outline.
CSFML_GRAPHICS_API sfText * sfText_create(void)
Create a new text.
CSFML_GRAPHICS_API sfColor sfText_getFillColor(const sfText *text)
Get the fill color of a text.
CSFML_GRAPHICS_API void sfText_move(sfText *text, sfVector2f offset)
Move a text by a given offset.
CSFML_GRAPHICS_API sfVector2f sfText_getOrigin(const sfText *text)
Get the local origin of a text.
CSFML_GRAPHICS_API float sfText_getRotation(const sfText *text)
Get the orientation of a text.
CSFML_GRAPHICS_API sfColor sfText_getOutlineColor(const sfText *text)
Get the outline color of a text.
CSFML_GRAPHICS_API sfFloatRect sfText_getLocalBounds(const sfText *text)
Get the local bounding rectangle of a text.
CSFML_GRAPHICS_API sfVector2f sfText_getScale(const sfText *text)
Get the current scale of a text.
CSFML_GRAPHICS_API void sfText_setOutlineColor(sfText *text, sfColor color)
Set the outline color of the text.
CSFML_GRAPHICS_API void sfText_setPosition(sfText *text, sfVector2f position)
Set the position of a text.
CSFML_GRAPHICS_API unsigned int sfText_getCharacterSize(const sfText *text)
Get the size of the characters of a text.
CSFML_GRAPHICS_API void sfText_setFillColor(sfText *text, sfColor color)
Set the fill color of a text.
CSFML_GRAPHICS_API const sfUint32 * sfText_getUnicodeString(const sfText *text)
Get the string of a text (returns a unicode string)
sfFloatRect and sfIntRect are utility classes for manipulating rectangles.
Utility class for manpulating RGBA colors.
CSFML_GRAPHICS_API void sfText_scale(sfText *text, sfVector2f factors)
Scale a text.
CSFML_GRAPHICS_API void sfText_setColor(sfText *text, sfColor color)
Set the fill color of a text.
CSFML_GRAPHICS_API sfTransform sfText_getTransform(const sfText *text)
Get the combined transform of a text.
CSFML_GRAPHICS_API void sfText_setString(sfText *text, const char *string)
Set the string of a text (from an ANSI string)
CSFML_GRAPHICS_API const char * sfText_getString(const sfText *text)
Get the string of a text (returns an ANSI string)
CSFML_GRAPHICS_API void sfText_setRotation(sfText *text, float angle)
Set the orientation of a text.
CSFML_GRAPHICS_API sfColor sfText_getColor(const sfText *text)
Get the fill color of a text.
CSFML_GRAPHICS_API void sfText_destroy(sfText *text)
Destroy an existing text.
CSFML_GRAPHICS_API void sfText_rotate(sfText *text, float angle)
Rotate a text.
CSFML_GRAPHICS_API sfUint32 sfText_getStyle(const sfText *text)
Get the style of a text.
CSFML_GRAPHICS_API sfVector2f sfText_findCharacterPos(const sfText *text, size_t index)
Return the position of the index-th character in a text.
CSFML_GRAPHICS_API void sfText_setOrigin(sfText *text, sfVector2f origin)
Set the local origin of a text.
2-component vector of floats
Strike through characters.
CSFML_GRAPHICS_API sfFloatRect sfText_getGlobalBounds(const sfText *text)
Get the global bounding rectangle of a text.
CSFML_GRAPHICS_API void sfText_setStyle(sfText *text, sfUint32 style)
Set the style of a text.
CSFML_GRAPHICS_API sfVector2f sfText_getPosition(const sfText *text)
Get the position of a text.
CSFML_GRAPHICS_API sfText * sfText_copy(const sfText *text)
Copy an existing text.
CSFML_GRAPHICS_API void sfText_setScale(sfText *text, sfVector2f scale)
Set the scale factors of a text.
CSFML_GRAPHICS_API float sfText_getOutlineThickness(const sfText *text)
Get the outline thickness of a text.
Regular characters, no style.
CSFML_GRAPHICS_API const sfFont * sfText_getFont(const sfText *text)
Get the font used by a text.
CSFML_GRAPHICS_API void sfText_setFont(sfText *text, const sfFont *font)
Set the font of a text.