polytubeappview.h
来自「手机 GAME c++ 版」· C头文件 代码 · 共 60 行
H
60 行
////////////////////////////////////////////////////////////////////////
//
// PolyTubeAppView.h
//
// Copyright (c) 2003 Nokia Phones Ltd All rights reserved.
//
////////////////////////////////////////////////////////////////////////
#ifndef __POLYTUBEAPPVIEW_H__
#define __POLYTUBEAPPVIEW_H__
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
#include <coecntrl.h>
#include "KeyHandler.h"
////////////////////////////////////////////////////////////////////////
// Forward Declarations
class CPolyTubeEngine;
////////////////////////////////////////////////////////////////////////
class CPolyTubeAppView : public CCoeControl
{
public:
static CPolyTubeAppView* NewL(const TRect& aRect);
static CPolyTubeAppView* NewLC(const TRect& aRect);
~CPolyTubeAppView();
public:
// from CCoeControl
void Draw(const TRect& aRect) const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
public:
void StartGameL();
TBool IsPlaying();
void StopGame();
private:
void ConstructL(const TRect& aRect);
CPolyTubeAppView();
private:
TKeyHandler iKeyHandler;
CPolyTubeEngine* iEngine;
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
#endif
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?