📄 circle.h
字号:
#ifndef __CIRCLE_H__
#define __CIRCLE_H__
//INCLUDES
// System includes
#include <e32std.h>
#include <w32std.h>
// User includes
#include "shape.h"
namespace NShapes
{
/**
*
* @class TCircle Circle.h
* @brief This class retains the dimensions and coordinates
* that define an instance of a circle, and help to internalize and
* externalize the representation.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
class TCircle : public TShape
{
public:
IMPORT_C TCircle(const TPoint& aCenter, TInt aRadius);
IMPORT_C TCircle();
public: // From TShape
IMPORT_C virtual TShapeType ShapeType();
IMPORT_C void Draw(CWindowGc& aActiveGraphicsContext) const ;
IMPORT_C TRect GetRect() const;
IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
IMPORT_C void InternalizeL(RReadStream& aStream);
IMPORT_C virtual TInt StorageSize() const;
private:
TInt iRadius;
};
}
#endif // __CIRCLE_H__
//End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -