animationappview.h

来自「Animation Client/Server Symbian 程序.」· C头文件 代码 · 共 90 行

H
90
字号
/*
* ==============================================================================
*  Name        : animationappview.h
*  Part of     : Animation example
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2004 - 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef __ANIMATIONAPPVIEW_H__
#define __ANIMATIONAPPVIEW_H__

// INCLUDES
#include <coecntrl.h>

/**
* CAnimationAppView.
* An instance of the Application View object for the Animation.
* example application.
*/
class CAnimationAppView : public CCoeControl
    {
    public:  // Constructors and destructor

        /**
        * NewL.
        * Two-phased constructor.
        * Create a CAnimationAppView object, which will draw itself to aRect.
        * @param aRect The rectangle this view will be drawn to.
        * @return A pointer to the created instance of CAnimationAppView.
        */
        static CAnimationAppView* NewL( const TRect& aRect );

        /**
        * NewLC.
        * Two-phased constructor.
        * Create a CAnimationAppView object, which will draw itself to aRect.
        * @param aRect Rectangle this view will be drawn to.
        * @return A pointer to the created instance of CAnimationAppView.
        */
        static CAnimationAppView* NewLC( const TRect& aRect );

        /**
        * ~CAnimationAppView
        * Virtual Destructor.
        */
        virtual ~CAnimationAppView();

    public:  // from CCoeControl

        /**
        * Draw
        * Draw this CAnimationAppView to the screen.
        */
        void Draw( const TRect& /*aRect*/ ) const;
        
        /**
        * HandleResolutionChange.
        * Handles a resolution change
        * @param aRect the new rectangle of this view.
        */
        void HandleResolutionChange(TRect aRect);

    private: // Constructors

        /**
        * CAnimationAppView.
        * C++ default constructor.
        */
        CAnimationAppView();

        /**
        * ConstructL
        * 2nd phase constructor.
        * Perform the second phase construction of a CAnimationAppView object.
        * @param aRect The rectangle this view will be drawn to.
        */
        void ConstructL( const TRect& aRect );
    };

#endif //__ANIMATIONAPPVIEW_H__

// End of File

⌨️ 快捷键说明

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