multiviewscontainer1.h

来自「Symbian OS 源码:一个基于Symbian OS UI上面的标准VIEW」· C头文件 代码 · 共 78 行

H
78
字号
/* Copyright (c) 2004, Nokia. All rights reserved */



#ifndef __MULTIVIEWS_CONTAINER1_H__
#define __MULTIVIEWS_CONTAINER1_H__



// INCLUDES
#include <aknview.h>

// CLASS DECLARATION

/**
*  CMultiViewsContainer1 container control class.
*  An instance of CMultiViewsContainer1 contains the view drawn to the screen
*  for CMultiViewsView1
*/
class CMultiViewsContainer1 : public CCoeControl
    {
    public: // Constructors and destructor

        /**
        * NewL.
        * Two-phased constructor.
        * Create a CMultiViewsContainer1 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 CMultiViewsContainer1.
        */
        static CMultiViewsContainer1* NewL( const TRect& aRect );

        /**
        * NewLC.
        * Two-phased constructor.
        * Create a CMultiViewsContainer1 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 CMultiViewsContainer1.
        */
        static CMultiViewsContainer1* NewLC( const TRect& aRect );


        /**
        * ConstructL
        * 2nd phase constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL( const TRect& aRect );


    public: // from CoeControl

        /**
        * CountComponentControls
        * @return number of controls inside this container.
        */
        TInt CountComponentControls() const;

        /**
        * ComponentControl
        * @param Index number of the control.
        * @return Pointer of controls inside this container.
        */
        CCoeControl* ComponentControl( TInt aIndex ) const;


        /**
        * Draw
        * Draw this CMultiViewsContainer1 to the screen.
        * @param aRect the rectangle of this view that needs updating
        */
        void Draw( const TRect& aRect ) const;
    };

#endif // __MULTIVIEWS_CONTAINER1_H__


// End of File

⌨️ 快捷键说明

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