Loading...
Searching...
No Matches
Text.h
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
float sfText_getLetterSpacing(const sfText *text)
Get the size of the letter spacing factor.
sfTransform sfText_getInverseTransform(const sfText *text)
Get the inverse of the combined transform of a text.
const char * sfText_getString(const sfText *text)
Get the string of a text (returns an ANSI string)
void sfText_setOutlineColor(sfText *text, sfColor color)
Set the outline color of the text.
const sfUint32 * sfText_getUnicodeString(const sfText *text)
Get the string of a text (returns a unicode string)
void sfText_setCharacterSize(sfText *text, unsigned int size)
Set the character size of a text.
void sfText_setPosition(sfText *text, sfVector2f position)
Set the position of a text.
sfFloatRect sfText_getLocalBounds(const sfText *text)
Get the local bounding rectangle of a text.
float sfText_getOutlineThickness(const sfText *text)
Get the outline thickness of a text.
void sfText_setLineSpacing(sfText *text, float spacingFactor)
Set the line spacing factor.
unsigned int sfText_getCharacterSize(const sfText *text)
Get the size of the characters of a text.
void sfText_setString(sfText *text, const char *string)
Set the string of a text (from an ANSI string)
sfColor sfText_getOutlineColor(const sfText *text)
Get the outline color of a text.
float sfText_getLineSpacing(const sfText *text)
Get the size of the line spacing factor.
sfVector2f sfText_findCharacterPos(const sfText *text, size_t index)
Return the position of the index-th character in a text.
void sfText_setOrigin(sfText *text, sfVector2f origin)
Set the local origin of a text.
void sfText_setLetterSpacing(sfText *text, float spacingFactor)
Set the letter spacing factor.
void sfText_setFillColor(sfText *text, sfColor color)
Set the fill color of a text.
sfFloatRect sfText_getGlobalBounds(const sfText *text)
Get the global bounding rectangle of a text.
void sfText_setOutlineThickness(sfText *text, float thickness)
Set the thickness of the text's outline.
sfTransform sfText_getTransform(const sfText *text)
Get the combined transform of a text.
void sfText_setUnicodeString(sfText *text, const sfUint32 *string)
Set the string of a text (from a unicode string)
sfFloatRect and sfIntRect are utility classes for manipulating rectangles.
Definition Rect.h:41