graphicstool.h

来自「一个symbian上成熟的小游戏源码」· C头文件 代码 · 共 35 行

H
35
字号

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