📄 square.cpp
字号:
/*
* ============================================================================
* Name : CSquare from square.cpp
* Part of : plugin
* Created : 17/11/2003 by Forum Nokia
* Version : 1.0
* Copyright: Forum Nokia
* ============================================================================
*/
// INCLUDE FILES
#include <w32std.h>
#include "square.h"
// Create instance of concrete ECOM interface implementation
CSquare* CSquare::NewL()
{
CSquare* self = new (ELeave) CSquare;
CleanupStack::PushL (self);
self->ConstructL();
CleanupStack::Pop(self);
return self;
}
// Implementation of CShape
void CSquare::Draw(CWindowGc& aGraphicsContext) const
{
const TInt KStartCoOrd = 30;
const TInt KEndXCoOrd = 100;
const TInt KEndYCoOrd = 100;
aGraphicsContext.DrawRect(TRect(TPoint(KStartCoOrd ,KStartCoOrd ),
TPoint(KEndXCoOrd ,KEndYCoOrd )));
}
// Constructor
CSquare::CSquare()
{
}
// Second phase construction.
void CSquare::ConstructL()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -