Initial
This commit is contained in:
55
proto/source/POLYGON.HPP
Normal file
55
proto/source/POLYGON.HPP
Normal file
@@ -0,0 +1,55 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user