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

📄 graphicstool.h

📁 一个symbian上成熟的小游戏源码
💻 H
字号:

#ifndef GDIHELPER_H
#define GDIHELPER_H

// 包含头文件
#include <e32std.h>
#include <e32base.h>
#include "fbs.h"													
#include <w32std.h>
#include "ImageFactory.h"

namespace gamespace
{

	class CGraphicsTool
	{
	public:
		static void	DrawImage( CBitmapContext& aGc, 
					CFbsBitmap* aImage, CFbsBitmap* aImgMask, 
					TInt aX = 0, TInt aY = 0, 
					TInt aSrcW = 0, TInt aSrcH = 0, 
					TInt aSrcX = 0, TInt aSrcY = 0);

		static void	DrawText( CBitmapContext &aGc,const CFont *aFont,const TDesC &aText,TRect aRect, 
			CGraphicsContext::TTextAlign aAlign , TInt aLeftMargin=0 );

		static void	DrawRect( CBitmapContext& aGc, 
			TRect aRect , TRgb aColor = KRgbWhite, 
			TBool aUseBrush = FALSE, TInt size = 1 );
	};

}

#endif

⌨️ 快捷键说明

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