📄 bitmaprotatorengine.cpp
字号:
/*
* ============================================================================
* Name : CBitmapRotatorEngine from BitmapRotatorEngine.cpp
* Part of : BitmapRotator
* Created : 30.01.2006 by ToBeReplacedByAuthor
* Implementation notes:
*
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
// INCLUDE FILES
#include "BitmapRotatorEngine.h"
// ================= MEMBER FUNCTIONS =======================
// Two-phased constructor.
CBitmapRotatorEngine* CBitmapRotatorEngine::NewL(MObserver& aObserver)
{
CBitmapRotatorEngine* self = new(ELeave) CBitmapRotatorEngine(aObserver);
CleanupStack::PushL( self );
self->ConstructL();
CleanupStack::Pop();
return self;
}
// destructor
CBitmapRotatorEngine::~CBitmapRotatorEngine()
{
delete iBitmapRotator;
}
// constructor
CBitmapRotatorEngine::CBitmapRotatorEngine(MObserver& aObserver ) :
CActive(EPriorityStandard), iObserver(aObserver)
{
}
// EPOC default constructor can leave.
void CBitmapRotatorEngine::ConstructL()
{
iBitmapRotator = CBitmapRotator::NewL();
CActiveScheduler::Add( this );
}
void CBitmapRotatorEngine::RunL()
{
iObserver.OnCompleteL(iStatus.Int());
}
void CBitmapRotatorEngine::DoCancel()
{
iBitmapRotator->Cancel();
}
void CBitmapRotatorEngine::Rotate(CFbsBitmap& aBitmap,
CBitmapRotator::TRotationAngle aRotation)
{
Cancel();
iBitmapRotator->Rotate(&iStatus, aBitmap, aRotation);
SetActive();
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -