⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shape.h

📁 一个漂亮的万花筒游戏
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -