splashcontainer.h
来自「设置屏幕特效的symbian series60平台程序」· C头文件 代码 · 共 109 行
H
109 行
/*
* ============================================================================
* Name : CSplashContainer from SplashContainer.h
* Part of : Splash
* Created : 17/02/2003 by Eric@NewLC
* Description:
* Declares container control for application.
* Version :
* Copyright:
* ============================================================================
*/
#ifndef SPLASHCONTAINER_H
#define SPLASHCONTAINER_H
// INCLUDES
#include <coecntrl.h>
// FORWARD DECLARATIONS
// CLASS DECLARATION
/**
* CSplashContainer container control class.
*
*/
class CSplashContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
IMPORT_C void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
IMPORT_C ~CSplashContainer();
public: // New functions
/**
* Draw Function
*/
IMPORT_C virtual void DrawSplash(const TRect& aRect) const;
IMPORT_C virtual void DrawMain(const TRect& aRect) const;
IMPORT_C virtual void DrawExiting(const TRect& aRect) const;
/**
* Timer management function
*/
IMPORT_C virtual TBool Tick();
IMPORT_C static TInt Period(TAny* aPtr);
IMPORT_C void DoPeriod();
IMPORT_C void StartTimer();
IMPORT_C void StopTimer();
IMPORT_C void SetTimerTick(TTimeIntervalMicroSeconds32 aTick);
enum TState
{
ESplash,
EMain,
EExiting,
};
IMPORT_C void SetState(CSplashContainer::TState aState);
IMPORT_C CSplashContainer::TState State();
public: // Functions from base classes
private: // New Functions
private: // Functions from base classes
/**
* From CoeControl,SizeChanged.
*/
IMPORT_C void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
IMPORT_C TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
IMPORT_C void Draw(const TRect& aRect) const;
private: //data
TState iState;
CPeriodic* iPeriodicTimer;
TTimeIntervalMicroSeconds32 iTick;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?