ggballappview.h
来自「一个symbian上成熟的小游戏源码」· C头文件 代码 · 共 51 行
H
51 行
/* Copyright (c) 2008, Nokia. All rights reserved */
#ifndef __GGBALL_APPVIEW_H__
#define __GGBALL_APPVIEW_H__
#include <coecntrl.h>
#include "Title.h"
#include "CbaButton.h"
#include "Menu.h"
#include "BallEngine.h"
class CGGBallAppUi;
class CPeriodic;
class CGGBallAppView : public CCoeControl
{
public:
static CGGBallAppView* NewL(const TRect& aRect,CGGBallAppUi* aAppui);
static CGGBallAppView* NewLC(const TRect& aRect,CGGBallAppUi* aAppui);
~CGGBallAppView();
public: // from CCoeControl
void Draw(const TRect& aRect) const;
private:
void ConstructL(const TRect& aRect,CGGBallAppUi* aAppui);
CGGBallAppView();
private:
TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
void ShowMenu(TBool aShow=ETrue);
void ProcessKeyEvent(TFunction aFun);
void DrawConfirmDlg(TBool aShow=ETrue);
private:
CTitle* iTitle;
CCbaButton* iCbaButton;
CMenu* iMenu;
CBallEngine* iBallEngine;
CPeriodic* iTimer;
CBaseControl* iConfirmDlg;
public:
CGGBallAppUi* iAppUi;
public: // New functions
static TInt CallBack(TAny* aAny);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?