squareshape.h
来自「一个漂亮的万花筒游戏」· C头文件 代码 · 共 29 行
H
29 行
// 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 + =
减小字号Ctrl + -
显示快捷键?