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

📄 graphicscontrol.h

📁 symbian UI 代码
💻 H
字号:
// GraphicsControl.h


#ifndef __GraphicsControl_H
#define __GraphicsControl_H

#include <coecntrl.h>
#include <s32file.h>
#include "CommonGraphicsControlFramework.h"

// sundry derived classes


class CDrawControl : public CGraphicExampleControl
	{
public:
	CDrawControl() { SetMaxPhases(26); };
	void UpdateModelL();
	void Draw(const TRect& aRect) const;
	};

class CZoomControl : public CGraphicExampleControl
	{
public:
	CZoomControl() { SetMaxPhases(5); };
	~CZoomControl() { delete(iBitmap); };
	void UpdateModelL();
	void Draw(const TRect& aRect) const;
	void DrawLeft(TRect screenRect,CWindowGc& gc) const;
	void DrawRight(TRect screenRect,CWindowGc& gc) const;
private:
	void LoadBitmapL(CFbsBitmap* aBitMap,const TDesC& aPathAndFile,TInt aId,TBool aShareIfLoaded);
private:
	TZoomFactor iLeftZf;
	TZoomFactor iRightZf;
	MGraphicsDeviceMap* iLeftMap;
	MGraphicsDeviceMap* iRightMap;
	CFbsBitmap* iBitmap;
	};


#endif

⌨️ 快捷键说明

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