Files
Work/proto/source/POLYGON.HPP
2024-08-07 09:16:27 -04:00

56 lines
995 B
C++

#ifndef _PROTO_POLYGON_HPP_
#define _PROTO_POLYGON_HPP_
#ifndef _COMMON_GDIPOINT_HPP_
#include <common/gdipoint.hpp>
#endif
#ifndef _COMMON_BLOCK_HPP_
#include <common/block.hpp>
#endif
#ifndef _PROTO_GDILINE_HPP_
#include <proto/line.hpp>
#endif
class GDIPolygon : public Block<GDILine>
{
public:
GDIPolygon(void);
GDIPolygon(const GDIPolygon &somePolygon);
virtual ~GDIPolygon();
GDIPolygon &operator=(const GDIPolygon &someGDIPolygon);
GDIPolygon &operator+=(const Block<GDILine> &someGDILines);
private:
};
inline
GDIPolygon::GDIPolygon(void)
{
}
inline
GDIPolygon::GDIPolygon(const GDIPolygon &somePolygon)
: Block<GDILine>(somePolygon)
{
}
inline
GDIPolygon::~GDIPolygon()
{
}
inline
GDIPolygon &GDIPolygon::operator=(const GDIPolygon &someGDIPolygon)
{
(Block<GDILine>&)*this=(Block<GDILine>&)someGDIPolygon;
return *this;
}
inline
GDIPolygon &GDIPolygon::operator+=(const Block<GDILine> &someGDILines)
{
(Block<GDILine>&)*this+=someGDILines;
return *this;
}
#endif