liancontainer.h

来自「symbian 的lian-liankan」· C头文件 代码 · 共 63 行

H
63
字号
/*
* ============================================================================
*  Name     : CLianContainer from LianContainer.h
*  Part of  : Lian
*  Created  : 2006-3-15 by 
*  Description:
*     Declares container control for application.
*  Version  :
*  Copyright: 
* ============================================================================
*/

#ifndef LIANCONTAINER_H
#define LIANCONTAINER_H

// INCLUDES
#include <coecntrl.h>
#include "data.h"
#include "map.h"
#include "MdaImageConverter.h"
class CSound;
class CLianContainer : public CCoeControl, MCoeControlObserver
    {
    public: // Constructors and destructor
        void ConstructL(const TRect& aRect);
        ~CLianContainer();
		TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent,TEventCode aCode);

    private: // Functions from base classes

        void SizeChanged();

        TInt CountComponentControls() const;

        CCoeControl* ComponentControl(TInt aIndex) const;

        void Draw(const TRect& aRect) const;

        void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
        
    private: //data
		CMap* iCMap;
		CData* iCData;
		TInt iX;
		TInt iY;
		TInt iOldX;
		TInt iOldY;
		TInt iLen;
		TInt iW;
		TInt iH;
		TInt iNum;
	public:
		void StartGame(TInt iW,TInt iH);
		TBool beStart;
		CFbsBitmap* iWelcome;
		CSound*   iSound1,*iSound2;
        
    };

#endif

// End of File

⌨️ 快捷键说明

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