RectangleShape


Object Hierarchy:

Object hierarchy for RectangleShape

Description:

[ Compact ]
[ CCode ( copy_function = "sfRectangleShape_copy" , free_function = "sfRectangleShape_destroy" ) ]
public class RectangleShape : Shape

Specialized shape representing a rectangle.

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));


Namespace: sf
Package: sfml

Content:

Properties:

Creation methods:

Methods:

Inherited Members: