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

📄 ellipseshape.h

📁 一个漂亮的万花筒游戏
💻 H
字号:
// EllipseShape.h: interface for the EllipseShape class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ELLIPSESHAPE_H__CC6D6BFC_2385_4A17_8125_6526573798A2__INCLUDED_)
#define AFX_ELLIPSESHAPE_H__CC6D6BFC_2385_4A17_8125_6526573798A2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Shape.h"

class EllipseShape : public Shape  
{
	public:
		EllipseShape(SimpleWindow &Window,
		 const Position &Center, const color &c = Red,
		 float Width = 1.0f, float Height = 2.0f);
		float GetWidth() const;
		float GetHeight() const;
		void GetSize(float &Width, float &Height) const;
		void Draw();
		void SetSize(float Width, float Height);
		void Erase();
	private:
		float Width;
		float Height;

};

#endif // !defined(AFX_ELLIPSESHAPE_H__CC6D6BFC_2385_4A17_8125_6526573798A2__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -