?? renderablefactory.h
字號:
////////////////////////////////////////////////////////////////////////
//
// RenderableFactory.h
//
// Copyright (c) 2003 Nokia Mobile Phones Ltd. All rights reserved.
//
////////////////////////////////////////////////////////////////////////
#ifndef __RENDERABLEFACTORY_H
#define __RENDERABLEFACTORY_H
#include <coeccntx.h>
////////////////////////////////////////////////////////////////////////
class MRenderable
{
public:
virtual void Render(const TPoint& aOrigin,const TRect& aScreenRect,CFbsBitGc* aCallerGc) const = 0;
};
////////////////////////////////////////////////////////////////////////
class CRenderable : public CBase, public MRenderable
{
public:
~CRenderable(){}
public:
void Render(const TPoint& aOrigin,const TRect& aScreenRect,CFbsBitGc* aCallerGc) const = 0;
protected:
CRenderable(){}
};
////////////////////////////////////////////////////////////////////////
class CRenderableFactory : public CBase
{
public:
~CRenderableFactory();
public:
MRenderable* Renderable(int idx);
protected:
void AllocRenderablesL(TInt aMaxRenderableCount);
void AddRenderable(CRenderable* aRenderable);
void FreeRenderables();
private:
CRenderable** iRenderables;
TInt iRenderableCount;
TInt iMaxRenderableCount;
};
////////////////////////////////////////////////////////////////////////
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -