circle.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 46 行

H
46
字号
#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 + =
减小字号Ctrl + -
显示快捷键?