shape.h
来自「一个漂亮的万花筒游戏」· C头文件 代码 · 共 33 行
H
33 行
// Shape.h: interface for the Shape class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHAPE_H__D2C10323_2F68_41F7_AAB0_33BCD5C356DC__INCLUDED_)
#define AFX_SHAPE_H__D2C10323_2F68_41F7_AAB0_33BCD5C356DC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "WindowObject.h"
class Shape : public WindowObject
{
public:
Shape(SimpleWindow &Window, const Position &p,
const color &c = Red);
color GetColor() const;
bool HasBorder() const;
void SetColor(const color &c);
void SetBorder();
void ClearBorder();
virtual void Draw() = 0;
virtual void Erase() = 0;
private:
color Color;
bool Border;
};
#endif // !defined(AFX_SHAPE_H__D2C10323_2F68_41F7_AAB0_33BCD5C356DC__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?