25 #ifndef SFML_RECTANGLESHAPE_H
26 #define SFML_RECTANGLESHAPE_H
31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/Color.h>
33 #include <SFML/Graphics/Rect.h>
34 #include <SFML/Graphics/Transform.h>
35 #include <SFML/Graphics/Types.h>
36 #include <SFML/System/Vector2.h>
46 CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_create(
void);
56 CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_copy(
const sfRectangleShape* shape);
64 CSFML_GRAPHICS_API
void sfRectangleShape_destroy(sfRectangleShape* shape);
77 CSFML_GRAPHICS_API
void sfRectangleShape_setPosition(sfRectangleShape* shape,
sfVector2f position);
90 CSFML_GRAPHICS_API
void sfRectangleShape_setRotation(sfRectangleShape* shape,
float angle);
103 CSFML_GRAPHICS_API
void sfRectangleShape_setScale(sfRectangleShape* shape,
sfVector2f scale);
119 CSFML_GRAPHICS_API
void sfRectangleShape_setOrigin(sfRectangleShape* shape,
sfVector2f origin);
129 CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getPosition(
const sfRectangleShape* shape);
141 CSFML_GRAPHICS_API
float sfRectangleShape_getRotation(
const sfRectangleShape* shape);
151 CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getScale(
const sfRectangleShape* shape);
161 CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getOrigin(
const sfRectangleShape* shape);
173 CSFML_GRAPHICS_API
void sfRectangleShape_move(sfRectangleShape* shape,
sfVector2f offset);
185 CSFML_GRAPHICS_API
void sfRectangleShape_rotate(sfRectangleShape* shape,
float angle);
197 CSFML_GRAPHICS_API
void sfRectangleShape_scale(sfRectangleShape* shape,
sfVector2f factors);
207 CSFML_GRAPHICS_API
sfTransform sfRectangleShape_getTransform(
const sfRectangleShape* shape);
217 CSFML_GRAPHICS_API
sfTransform sfRectangleShape_getInverseTransform(
const sfRectangleShape* shape);
238 CSFML_GRAPHICS_API
void sfRectangleShape_setTexture(sfRectangleShape* shape,
const sfTexture* texture, sfBool resetRect);
251 CSFML_GRAPHICS_API
void sfRectangleShape_setTextureRect(sfRectangleShape* shape,
sfIntRect rect);
267 CSFML_GRAPHICS_API
void sfRectangleShape_setFillColor(sfRectangleShape* shape,
sfColor color);
279 CSFML_GRAPHICS_API
void sfRectangleShape_setOutlineColor(sfRectangleShape* shape,
sfColor color);
292 CSFML_GRAPHICS_API
void sfRectangleShape_setOutlineThickness(sfRectangleShape* shape,
float thickness);
306 CSFML_GRAPHICS_API
const sfTexture* sfRectangleShape_getTexture(
const sfRectangleShape* shape);
316 CSFML_GRAPHICS_API
sfIntRect sfRectangleShape_getTextureRect(
const sfRectangleShape* shape);
326 CSFML_GRAPHICS_API
sfColor sfRectangleShape_getFillColor(
const sfRectangleShape* shape);
336 CSFML_GRAPHICS_API
sfColor sfRectangleShape_getOutlineColor(
const sfRectangleShape* shape);
346 CSFML_GRAPHICS_API
float sfRectangleShape_getOutlineThickness(
const sfRectangleShape* shape);
356 CSFML_GRAPHICS_API
size_t sfRectangleShape_getPointCount(
const sfRectangleShape* shape);
369 CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getPoint(
const sfRectangleShape* shape,
size_t index);
378 CSFML_GRAPHICS_API
void sfRectangleShape_setSize(sfRectangleShape* shape,
sfVector2f size);
388 CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getSize(
const sfRectangleShape* shape);
404 CSFML_GRAPHICS_API
sfFloatRect sfRectangleShape_getLocalBounds(
const sfRectangleShape* shape);
420 CSFML_GRAPHICS_API
sfFloatRect sfRectangleShape_getGlobalBounds(
const sfRectangleShape* shape);
423 #endif // SFML_RECTANGLESHAPE_H