📄 polytubeappview.h
字号:
////////////////////////////////////////////////////////////////////////
//
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -