Enrollment 28.2.0
Loading...
Searching...
No Matches
RectanglesShape Class Referencefinal

It holds rectangles and draws it as one shape. More...

#include <ImageShape.h>

Collaboration diagram for RectanglesShape:

Public Member Functions

void DrawIn (ImageShapeDrawer &drawer) const final
 It draws all rectangles at once in ImageShapeDrawer.
 RectanglesShape (std::vector< Rectangle > r, ImageShapeAttributes attr)
 Construct a new Rectangles object.

Detailed Description

It holds rectangles and draws it as one shape.

Constructor & Destructor Documentation

◆ RectanglesShape()

RectanglesShape ( std::vector< Rectangle > r,
ImageShapeAttributes attr )
inline

Construct a new Rectangles object.

Parameters
rrectangles
attrImageShapeAttributes use to draw rectangles

Member Function Documentation

◆ DrawIn()

void DrawIn ( ImageShapeDrawer & drawer) const
inlinefinalvirtual

It draws all rectangles at once in ImageShapeDrawer.

Parameters
drawerthe implementation of ImageShapeDrawer

Implements ImageShape.


The documentation for this class was generated from the following file: