📄 cgameappview.h
字号:
// Copyright 2002 Kenneth Guy,
//
// CGameAppView.h
//
#ifndef _CGAMEAPPVIEW_H_
#define _CGAMEAPPVIEW_H_
/** \file CGameAppView.h
defines class CGameAppView */
#include <eikappui.h>
#include <eikapp.h>
#include <eikdoc.h>
#include <eikenv.h>
#include <uikon.hrh>
#include <eikmfne.h>
#include <eikdialg.h>
#include <eikon.hrh>
class CGameState;
/** Draw the app window.
This draws the application window to reflect the game state */
class CGameAppView : public CCoeControl, public MCoeControlContext {
public:
void ConstructL(const TRect& aRect, CGameState *aState);
~CGameAppView();
private:
void Draw(const TRect& aRect) const;
void DrawHighScores() const;
void DrawPaused() const;
void DrawLevelCompleted() const;
private:
CGameState *iGameState; ///< Game state
HBufC* iCompleteString; ///< String to display when a level is finished
HBufC* iPausedString; ///< String to display when a game is paused
HBufC* iScoresString; ///< String to display on high score screen
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -