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

📄 renderablefactory.h

📁 关于symbian OS S60 2.X平台
💻 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 + -