simplegridcontainer.h

来自「Symbian S60 2nd Grid example」· C头文件 代码 · 共 61 行

H
61
字号
#ifndef SIMPLEGRIDCONTAINER_H
#define SIMPLEGRIDCONTAINER_H

// INCLUDES

// System includes
#include <coecntrl.h> // CCoeControl
#include <eiklbo.h> // MEikListBoxObserver

// FORWARD DECLARATIONS
class CSimpleGridGamesGrid;

// CLASS DECLARATION

/**
*
* @class	CSimpleGridContainer SimpleGridContainer.h 
* @brief	This is the container class for a grid example based on the
* standard Symbian OS architecture.  
*
* Copyright (c) EMCC Software Ltd 2003
* @version	1.0
* 
*/
class CSimpleGridContainer : public CCoeControl, MEikListBoxObserver
	{
public: // Constructors and destructor

	static CSimpleGridContainer* NewL(const TRect& aRect);
	static CSimpleGridContainer* NewLC(const TRect& aRect);
	~CSimpleGridContainer();

public: // members
	
	void PlaySelectedGame();

public: // constructor

	void ConstructL(const TRect& aRect);

private: // from MEikListBoxObserver

	void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aListBoxEvent);

private: // from CoeControl

	void SizeChanged();
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	void Draw(const TRect& aRect) const;
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

private: //data

	CSimpleGridGamesGrid* iGamesGrid; // the games grid
	};

#endif	// #ifndef SIMPLEGRIDCONTAINER_H

// End of File

⌨️ 快捷键说明

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