Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

31 lines
978 B
C++

#ifndef CTRLSHAPEPOLYGON_H
#define CTRLSHAPEPOLYGON_H
#include "CtrlGeneralShape.h"
#include "Point.h"
namespace HWP
{
class CCtrlShapePolygon : public CCtrlGeneralShape
{
int m_nPoints;
VECTOR<TPoint> m_arPoints;
public:
CCtrlShapePolygon();
CCtrlShapePolygon(const HWP_STRING& sCtrlID);
CCtrlShapePolygon(const CCtrlGeneralShape& oShape);
CCtrlShapePolygon(const HWP_STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
CCtrlShapePolygon(const HWP_STRING& sCtrlID, CXMLReader& oReader, EHanType eType);
EShapeType GetShapeType() const override;
VECTOR<TPoint> GetPoints() const;
static int ParseElement(CCtrlShapePolygon& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
static int ParseCtrl(CCtrlShapePolygon& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
static int ParseListHeaderAppend(CCtrlShapePolygon& oObj, int nSize, CHWPStream& oBuffer, int nOff, int nVersion);
};
}
#endif // CTRLSHAPEPOLYGON_H