gifanimationcontainer.h

来自「《基于Symbian OS的手机开发与应用实践》这本书的配套源码。」· C头文件 代码 · 共 73 行

H
73
字号
/*
* ============================================================================
*  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 + =
减小字号Ctrl + -
显示快捷键?