appstatehelpscreen.h

来自「RGA: Biowaste Game Example This C++ app」· C头文件 代码 · 共 84 行

H
84
字号
/*
* ==============================================================================
*  Name        : AppStateHelpScreen.h
*  Part of     : RGA Game Example
*  Interface   :
*  Description : example help screen
*  Version     : 1.0
*
*  Copyright (c) 2007-2008 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef __APPSTATEHELPSCREEN_H__
#define __APPSTATEHELPSCREEN_H__

#include "AppState.h"


class CAppStateHelpScreen :	public CAppState
	{
	public:
		CAppStateHelpScreen(CExampleApplication& aApp);
		virtual ~CAppStateHelpScreen();

		/**
		 * Init
		 * Initialise the state
		 * @return KErrNone if successfull
		 */
		virtual TInt Init();
		
		/**
		 * Update
		 * Update application state
		 * @param aFrametime seconds elapsed since last frame
		 * @return state change value
		 */
		virtual EAppUpdateState Update(const TReal64& aFrametime);
		
		/**
		 * Draw
		 * Draw state graphics to given graphics context
		 * @param aContext graphics context to draw to.
		 */
		virtual void Draw(IGraphicsContext& aContext);
		
		/**
		 * KeyDown
		 * This handler is called by the main application object
		 * when any key is pressed
		 * @param aKeyCode RGA input key code of the pressed key
		 */
		virtual void KeyDown(TUint32 aKeyCode);
		
	private:
		/**
		 * DrawTextInBox
		 * @param aText text to draw
		 * @param aFont font that is currently set to 'aGc'
		 * @param aGc graphics context to draw to
		 * @param aRect rectangle to draw to
		 * @param aHrz text allignment
		 * @return total pixel height of drawn text
		 */
		TInt DrawTextInBox(	const TDesC& aText,
							const CFont* aFont,
							CGraphicsContext& aGc,
							const TRect& aRect,
							CGraphicsContext::TTextAlign aHrz =CGraphicsContext::ELeft);
	
		
	private:	// data
		EAppUpdateState		iNextState;
		
		TInt				iCurrentPage;
	};


#endif /* __APPSTATEHELPSCREEN_H__*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?