📄 element.cpp
字号:
#include "stdafx.h"
#include "Element.h"
int Element::isselected(CPoint* e)
{
if(e->x>=e1.x&&e->x<=e2.x&&e->y>=e1.y&&e->y<=e2.y)
{
this->selecting=1;
return 1;
}
else return 0;
}
int Element::isDeleted()
{
return 0;
}
void Element::paint(CDC& g)
{
}
CPoint Element::getPoint1()
{
return e1;
}
CPoint Element::getPoint2()
{
return e2;
}
void Element::setPoint1(int x,int y)
{
this->e1.x=x;
this->e1.y=y;
}
void Element::setPoint2(int x,int y)
{
this->e2.x=x;
this->e2.y=y;
}
void Element::Delete()
{
}
void Element::removeAttribute(Attribute *a)
{
}
void Element::addAttribute(Attribute *a)
{
}
void Element::serial(CArchive& ar)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -