📄 squareshape.h
字号:
// SquareShape.h: interface for the SquareShape class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SQUARESHAPE_H__2388DEB2_22E8_4C56_8D07_73C9EAB288CE__INCLUDED_)
#define AFX_SQUARESHAPE_H__2388DEB2_22E8_4C56_8D07_73C9EAB288CE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Shape.h"
class SquareShape : public Shape
{
public:
SquareShape(SimpleWindow &Window,
const Position &Center, const color &c = Red,
float Side = 1.0f);
float GetSideLength() const;
void SetSize(float SideLength);
void Draw();
void Erase();
private:
float SideLength;
};
#endif // !defined(AFX_SQUARESHAPE_H__2388DEB2_22E8_4C56_8D07_73C9EAB288CE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -