dsfml.graphics.rectangleshape

This class inherits all the functions of $(TRANSFORMABLE_LINK) (position, rotation, scale, bounds, ...) as well as the functions of $(SHAPE_LINK) (outline, color, texture, ...).

Members

Classes

RectangleShape
class RectangleShape

Specialized shape representing a rectangle.

Examples

1 auto rectangle = new RectangleShape();
2 rectangle.size = Vector2f(100, 50);
3 rectangle.outlineColor = Color.Red;
4 rectangle.outlineThickness = 5;
5 rectangle.position = Vector2f(10, 20);
6 ...
7 window.draw(rectangle);

See Also

$(SHAPE_LINK), $(CIRCLESHAPE_LINK), $(CONVEXSHAPE_LINK)

Meta