⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gifanimationcontainer.h

📁 《基于Symbian OS的手机开发与应用实践》这本书的配套源码。
💻 H
字号:
/*
* ============================================================================
*  Name     : CGifAnimationContainer from GifAnimationContainer.h
*  Part of  : GifAnimation
*  Created  : 31.01.2006 by ToBeReplacedByAuthor
*  Description:
*     Declares container control for application.
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

#ifndef GIFANIMATIONCONTAINER_H
#define GIFANIMATIONCONTAINER_H

// INCLUDES
#include <coecntrl.h>
#include "GifAnimationEngine.h"

// FORWARD DECLARATIONS
class CFbsBitmap;

// CLASS DECLARATION

/**
*  CGifAnimationContainer  container control class.
*  
*/
class CGifAnimationContainer : public CCoeControl, public CGifAnimationEngine::MObserver
    {
    public: // Constructors and destructor
        
        /**
        * EPOC default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

        /**
        * Destructor.
        */
        ~CGifAnimationContainer();

    public: // Functions from base classes

    public: // Functions from CGifAnimationEngine::MObserver
        void OnCompleteL(CBitmapPointerArray* aArray, TInt aError);

    public: // New functions
        void StartL();
        void Stop();

    private: // Functions from base classes
       /**
        * From CCoeControl,Draw.
        */
        void Draw(const TRect& aRect) const;

    private: // New functions
        static TInt Tick(TAny* aObject); // directly called
        void DoTick(); // indirectly called
    
    private: //data
        CGifAnimationEngine* iGifAnimationEngine;
        CBitmapPointerArray* iBitmapPointerArray;
        TInt iBitmapIndex;
        CPeriodic* iPeriodic; // periodic timer active object
    };

#endif

// End of File

⌨️ 快捷键说明

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