Creates a rectangle of the specified local size, defaulting to zero size.
sizeOptionalCopies rectangle geometry, appearance and transforms, retaining the texture reference.
sourceProtectedchangeoperationxyOptionalzOptionalProtecteddrawSubclasses draw synchronously and may compose objects via target.draw(); states is a copy for this call.
thistargetstatesReturns axis-aligned bounds after applying position, rotation and scale.
Return the read-only cached parent-to-local inverse transform, or the identity matrix when not invertible.
Returns the outline miter limit.
Returns the outline thickness.
Returns a copy of the local coordinates of a rectangle point at index 0 to 3.
indexReturns the rectangle point count, always 4.
Returns the current texture reference, or null if none is set.
Returns a view typed as read-only of the current texture pixel region.
Return the read-only cached local-to-parent transform. Later reads may update the same object.
Add offset to the current position.
thisoffsetProtectedreadAdd angle to the current rotation.
thisangleMultiply the current X/Y scale factors by the components of factors.
thisfactorsSets the fill color, multiplied by the texture color when drawing.
thiscolorSets the maximum ratio of outline miter extension to thickness; must be at least 1.
thislimitSet the local origin around which rotation and scaling take place.
thisoriginCopies the outline color.
thiscolorSets outline thickness in local coordinates; positive values extend outward and negative values inward.
thisthicknessSet the object's origin in parent coordinates, copying position.
thispositionSet the rotation; positive angles are clockwise in screen coordinates.
thisangleSet X/Y scale factors; (1, 1) is original size and negatives flip axes.
thisfactorsSets the rectangle's local width and height and updates geometry.
thissizeSets and retains a texture reference; null disables texturing, and resetRect true covers the entire texture.
thistextureresetRectCopies the texture pixel region to use; negative sizes can flip the texture.
thisrectangleProtectedupdateRebuilds native geometry from the subclass's getPointCount/getPoint; call after changing custom points.
thisReadonly[graphicsReadonly[mutableReadonly[shapeReadonly[transformable
sf::RectangleShape geometry with Shape appearance and transformations.