-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathShape.h
40 lines (31 loc) · 942 Bytes
/
Shape.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "define.h"
class CShape
{
public:
CShape(int nId, int nX = 0, int nY = 0, int nWidth = 0, int nHeight = 0);
CShape(CShape *tmpShape);
virtual ~CShape();
void SetRect(int nX = 0, int nY = 0, int nWidth = 0, int nHeight = 0);
void SetColor(int nRed, int nGreen, int nBlue);
int GetId();
void SetId(int nId);
// All
virtual bool AddShape() = 0;
virtual bool DeleteShape() = 0;
virtual bool CopyShape() = 0;
virtual bool MoveShape(CPoint point) = 0;
virtual bool MagneticShape() = 0;
virtual bool EditShape(int nX, int nY, int nWidth, int nHeight, int *m_nSubShapeStatus, int *m_nRememberShapeStatus) = 0;
virtual bool WheelShape(short zDelta) = 0;
// Paint Shape
virtual void SetOwnColor() { nRed = 0; nGreen = 0; nBlue = 0; };
// Delete,
int nX, nY, nWidth, nHeight;
bool bSelectedState;
int nRed, nGreen, nBlue;
int m_nMoveSubVal[4]; //Move¿¡ »ç¿ëÇÔ
int m_nType;
private:
int nId;
};