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

📄 shape.h

📁 最新官方例子,图形,描述副,基本控件,通讯协议,等等,
💻 H
字号:
#ifndef __SHAPE_H__
#define __SHAPE_H__

//INCLUDES

//System Includes
#include <e32std.h>
#include <w32std.h>

namespace NShapes 
	{
	enum TShapeType
		{
		KRectangle = 1,
		KCircle
		};

	/**
	*
	* @class	TShape Shape.h 
	* @brief	This is the abstract base class that defines the
	* functions that all concrete shape classes require.
	*
	* Copyright (c) EMCC Software Ltd 2003
	* @version	1.0 
	*/
	class TShape 
		{
	public:
		IMPORT_C TShape (TShapeType aShapeType, const TPoint& aOrigin);
		virtual void Draw(CWindowGc& aActiveGraphicsContext) const = 0;
		virtual TRect GetRect() const = 0;
		IMPORT_C static TShapeType ReadShapeTypeL(RReadStream& aStream);
		IMPORT_C virtual void ExternalizeL(RWriteStream& aStream) const;
		IMPORT_C virtual void InternalizeL(RReadStream& aStream);
		IMPORT_C virtual TShapeType ShapeType() = 0;
		IMPORT_C virtual TInt StorageSize() const;
		IMPORT_C TPoint Coordinates(); 

	protected:
		const TShapeType iShapeType;
		TPoint iOrigin;
		};
	}

#endif	//	__SHAPE_H__

// End of File

⌨️ 快捷键说明

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