📄 activeball.h
字号:
#ifndef ACTIVE_BALL
#define ACTIVE_BALL
#include <e32base.h>
#include <e32std.h>
class CBallAppView;
class CActiveBall:public CActive
{
public:
//构造函数
CActiveBall(CBallAppView* aBallAppView, TInt ax,TInt ay);
~CActiveBall();
//启动异步调用代码
void Start();
//处理一个活动对象完成后请求
void RunL();
//取消请求
void DoCancel();
TPoint& GetPoint();
private:
CBallAppView* iBallAppView;
RTimer iTimer;
TPoint iPoint;
int vx;
int vy;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -