31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/Color.h>
33 #include <SFML/Graphics/Rect.h>
34 #include <SFML/Graphics/Types.h>
35 #include <SFML/Graphics/Transform.h>
36 #include <SFML/System/Vector2.h>
47 sfTextItalic = 1 << 1,
48 sfTextUnderlined = 1 << 2,
49 sfTextStrikeThrough = 1 << 3
59 CSFML_GRAPHICS_API sfText* sfText_create(
void);
69 CSFML_GRAPHICS_API sfText* sfText_copy(
const sfText* text);
77 CSFML_GRAPHICS_API
void sfText_destroy(sfText* text);
90 CSFML_GRAPHICS_API
void sfText_setPosition(sfText* text,
sfVector2f position);
103 CSFML_GRAPHICS_API
void sfText_setRotation(sfText* text,
float angle);
116 CSFML_GRAPHICS_API
void sfText_setScale(sfText* text,
sfVector2f scale);
132 CSFML_GRAPHICS_API
void sfText_setOrigin(sfText* text,
sfVector2f origin);
142 CSFML_GRAPHICS_API
sfVector2f sfText_getPosition(
const sfText* text);
154 CSFML_GRAPHICS_API
float sfText_getRotation(
const sfText* text);
164 CSFML_GRAPHICS_API
sfVector2f sfText_getScale(
const sfText* text);
174 CSFML_GRAPHICS_API
sfVector2f sfText_getOrigin(
const sfText* text);
186 CSFML_GRAPHICS_API
void sfText_move(sfText* text,
sfVector2f offset);
198 CSFML_GRAPHICS_API
void sfText_rotate(sfText* text,
float angle);
210 CSFML_GRAPHICS_API
void sfText_scale(sfText* text,
sfVector2f factors);
220 CSFML_GRAPHICS_API
sfTransform sfText_getTransform(
const sfText* text);
230 CSFML_GRAPHICS_API
sfTransform sfText_getInverseTransform(
const sfText* text);
241 CSFML_GRAPHICS_API
void sfText_setString(sfText* text,
const char*
string);
250 CSFML_GRAPHICS_API
void sfText_setUnicodeString(sfText* text,
const sfUint32*
string);
266 CSFML_GRAPHICS_API
void sfText_setFont(sfText* text,
const sfFont* font);
277 CSFML_GRAPHICS_API
void sfText_setCharacterSize(sfText* text,
unsigned int size);
292 CSFML_GRAPHICS_API
void sfText_setLineSpacing(sfText* text,
float spacingFactor);
312 CSFML_GRAPHICS_API
void sfText_setLetterSpacing(sfText* text,
float spacingFactor);
325 CSFML_GRAPHICS_API
void sfText_setStyle(sfText* text, sfUint32 style);
341 CSFML_GRAPHICS_API
void sfText_setColor(sfText* text,
sfColor color);
354 CSFML_GRAPHICS_API
void sfText_setFillColor(sfText* text,
sfColor color);
365 CSFML_GRAPHICS_API
void sfText_setOutlineColor(sfText* text,
sfColor color);
380 CSFML_GRAPHICS_API
void sfText_setOutlineThickness(sfText* text,
float thickness);
390 CSFML_GRAPHICS_API
const char* sfText_getString(
const sfText* text);
400 CSFML_GRAPHICS_API
const sfUint32* sfText_getUnicodeString(
const sfText* text);
414 CSFML_GRAPHICS_API
const sfFont* sfText_getFont(
const sfText* text);
424 CSFML_GRAPHICS_API
unsigned int sfText_getCharacterSize(
const sfText* text);
436 CSFML_GRAPHICS_API
float sfText_getLetterSpacing(
const sfText* text);
448 CSFML_GRAPHICS_API
float getLineSpacing(
const sfText* text);
458 CSFML_GRAPHICS_API sfUint32 sfText_getStyle(
const sfText* text);
471 CSFML_GRAPHICS_API
sfColor sfText_getColor(
const sfText* text);
481 CSFML_GRAPHICS_API
sfColor sfText_getFillColor(
const sfText* text);
491 CSFML_GRAPHICS_API
sfColor sfText_getOutlineColor(
const sfText* text);
501 CSFML_GRAPHICS_API
float sfText_getOutlineThickness(
const sfText* text);
519 CSFML_GRAPHICS_API
sfVector2f sfText_findCharacterPos(
const sfText* text,
size_t index);
535 CSFML_GRAPHICS_API
sfFloatRect sfText_getLocalBounds(
const sfText* text);
551 CSFML_GRAPHICS_API
sfFloatRect sfText_getGlobalBounds(
const sfText* text);
554 #endif // SFML_TEXT_H