📄 graphicstool.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 + -