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>
46CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_create(
void);
56CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_copy(
const sfRectangleShape* shape);
64CSFML_GRAPHICS_API
void sfRectangleShape_destroy(sfRectangleShape* shape);
77CSFML_GRAPHICS_API
void sfRectangleShape_setPosition(sfRectangleShape* shape,
sfVector2f position);
90CSFML_GRAPHICS_API
void sfRectangleShape_setRotation(sfRectangleShape* shape,
float angle);
103CSFML_GRAPHICS_API
void sfRectangleShape_setScale(sfRectangleShape* shape,
sfVector2f scale);
119CSFML_GRAPHICS_API
void sfRectangleShape_setOrigin(sfRectangleShape* shape,
sfVector2f origin);
129CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getPosition(
const sfRectangleShape* shape);
141CSFML_GRAPHICS_API
float sfRectangleShape_getRotation(
const sfRectangleShape* shape);
151CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getScale(
const sfRectangleShape* shape);
161CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getOrigin(
const sfRectangleShape* shape);
173CSFML_GRAPHICS_API
void sfRectangleShape_move(sfRectangleShape* shape,
sfVector2f offset);
185CSFML_GRAPHICS_API
void sfRectangleShape_rotate(sfRectangleShape* shape,
float angle);
197CSFML_GRAPHICS_API
void sfRectangleShape_scale(sfRectangleShape* shape,
sfVector2f factors);
207CSFML_GRAPHICS_API
sfTransform sfRectangleShape_getTransform(
const sfRectangleShape* shape);
217CSFML_GRAPHICS_API
sfTransform sfRectangleShape_getInverseTransform(
const sfRectangleShape* shape);
238CSFML_GRAPHICS_API
void sfRectangleShape_setTexture(sfRectangleShape* shape,
const sfTexture* texture, sfBool resetRect);
251CSFML_GRAPHICS_API
void sfRectangleShape_setTextureRect(sfRectangleShape* shape,
sfIntRect rect);
267CSFML_GRAPHICS_API
void sfRectangleShape_setFillColor(sfRectangleShape* shape,
sfColor color);
279CSFML_GRAPHICS_API
void sfRectangleShape_setOutlineColor(sfRectangleShape* shape,
sfColor color);
292CSFML_GRAPHICS_API
void sfRectangleShape_setOutlineThickness(sfRectangleShape* shape,
float thickness);
306CSFML_GRAPHICS_API
const sfTexture* sfRectangleShape_getTexture(
const sfRectangleShape* shape);
316CSFML_GRAPHICS_API
sfIntRect sfRectangleShape_getTextureRect(
const sfRectangleShape* shape);
326CSFML_GRAPHICS_API
sfColor sfRectangleShape_getFillColor(
const sfRectangleShape* shape);
336CSFML_GRAPHICS_API
sfColor sfRectangleShape_getOutlineColor(
const sfRectangleShape* shape);
346CSFML_GRAPHICS_API
float sfRectangleShape_getOutlineThickness(
const sfRectangleShape* shape);
356CSFML_GRAPHICS_API
size_t sfRectangleShape_getPointCount(
const sfRectangleShape* shape);
369CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getPoint(
const sfRectangleShape* shape,
size_t index);
378CSFML_GRAPHICS_API
void sfRectangleShape_setSize(sfRectangleShape* shape,
sfVector2f size);
388CSFML_GRAPHICS_API
sfVector2f sfRectangleShape_getSize(
const sfRectangleShape* shape);
404CSFML_GRAPHICS_API
sfFloatRect sfRectangleShape_getLocalBounds(
const sfRectangleShape* shape);
420CSFML_GRAPHICS_API
sfFloatRect sfRectangleShape_getGlobalBounds(
const sfRectangleShape* shape);
Utility class for manpulating RGBA colors.
sfFloatRect and sfIntRect are utility classes for manipulating rectangles.
2-component vector of floats