[ Compact ]
[ CCode ( copy_function = "sfRectangleShape_copy" , free_function = "sfRectangleShape_destroy" ) ]
public class RectangleShape : Shape
This class inherits all the functions of sf.Transformable (position, rotation, scale, bounds, ...) as well as the functions of sf.Shape (outline, color, texture, ...).
Usage example:
var rectangle = new RectangleShape() {
size = Vector2f(120.f, 50.f))
};
// change the size to 100x100
rectangle.setSize(Vector2f(100.f, 100.f));