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

📄 videonavidecoratortime.h

📁 symbian video 的 实现
💻 H
字号:
/*
* ==============================================================================
*  Name        : VideoNaviDecoratorTime.h
*  Part of     : Video
*  Created     : 10/14/2003 by Forum Nokia
*  Interface   : 
*  Description : Declares Navi decorator for time
*  Version     : 
*  Copyright   : Nokia Corporation, 2003
* ==============================================================================
*/

#ifndef VIDEO_NAVIDECORATORTIMER_H
#define VIDEO_NAVIDECORATORTIMER_H

#include <coecntrl.h>
#include <aknutils.h>

/**
 *  CVideoNaviDecoratorTime 
 *  A specific control to display time progress when playing a video clip. It can
 *  also be used to display some status information.
 */
class CVideoNaviDecoratorTime : public CCoeControl
    {
    public:  // Constructors and destructor
        
        /**
        * Two-phased constructor.
        */
        static CVideoNaviDecoratorTime* NewL();
        
        /**
        * Destructor.
        */
        virtual ~CVideoNaviDecoratorTime();

    public: // New functions
        
        /**
        * Updates label (time string) in navi pane.
        * @param aLabel New label (time string)
        * @return void
        */
        void SetLabelL(const TDesC& aLabel);

    protected:  // Functions from base classes
        
        /**
        * From CCoeControl. Handles the size change events.
        */
        void SizeChanged();

        /**
         * From CCoeControl.  Draws  control.  
         * @param aRect The region of the control to be redrawn.   
         */
        void Draw(const TRect& aRect) const;

    private:

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

        /**
         * By default Symbian 2nd phase constructor is private.
         */
        void ConstructL();

    private: // New functions
        
	private:    // Data
        //Label
        HBufC* iLabel;
        // Rectangle where label is drawn
        TAknLayoutText iTextLayout; 
    };

#endif // VIDEO_NAVIDECORATORTIMER_H   

⌨️ 快捷键说明

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