📄 baseanim.cpp
字号:
////////////////////////////////////////////////////////////////////////
//
// BaseAnim.cpp
//
// Copyright (c) 2003 Nokia Mobile Phones Ltd. All rights reserved.
//
////////////////////////////////////////////////////////////////////////
#include <e32math.h>
#include "RenderableFactory.h"
#include "BaseAnim.h"
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
CBaseAnim::CBaseAnim(TSize aSize) :
iSize(aSize)
{
}
////////////////////////////////////////////////////////////////////////
void CBaseAnim::RenderFrameCentered(TInt aFrameNum,const TPoint& aCenter,const TRect& aScreenRect,CFbsBitGc* aCallerGc)
{
TPoint topLeftPos(aCenter.iX - (iSize.iWidth >> 1), aCenter.iY - (iSize.iHeight >> 1));
Renderable(aFrameNum)->Render(-topLeftPos,aScreenRect,aCallerGc);
}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -