|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : animationappview.h 00004 * Part of : Animation example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef __ANIMATIONAPPVIEW_H__ 00017 #define __ANIMATIONAPPVIEW_H__ 00018 00019 // INCLUDES 00020 #include <coecntrl.h> 00021 00022 /** 00023 * CAnimationAppView. 00024 * An instance of the Application View object for the Animation. 00025 * example application. 00026 */ 00027 class CAnimationAppView : public CCoeControl 00028 { 00029 public: // Constructors and destructor 00030 00031 /** 00032 * NewL. 00033 * Two-phased constructor. 00034 * Create a CAnimationAppView object, which will draw itself to aRect. 00035 * @param aRect The rectangle this view will be drawn to. 00036 * @return A pointer to the created instance of CAnimationAppView. 00037 */ 00038 static CAnimationAppView* NewL( const TRect& aRect ); 00039 00040 /** 00041 * NewLC. 00042 * Two-phased constructor. 00043 * Create a CAnimationAppView object, which will draw itself to aRect. 00044 * @param aRect Rectangle this view will be drawn to. 00045 * @return A pointer to the created instance of CAnimationAppView. 00046 */ 00047 static CAnimationAppView* NewLC( const TRect& aRect ); 00048 00049 /** 00050 * ~CAnimationAppView 00051 * Virtual Destructor. 00052 */ 00053 virtual ~CAnimationAppView(); 00054 00055 public: // from CCoeControl 00056 00057 /** 00058 * Draw 00059 * Draw this CAnimationAppView to the screen. 00060 */ 00061 void Draw( const TRect& /*aRect*/ ) const; 00062 00063 /** 00064 * HandleResolutionChange. 00065 * Handles a resolution change 00066 * @param aRect the new rectangle of this view. 00067 */ 00068 void HandleResolutionChange(TRect aRect); 00069 00070 private: // Constructors 00071 00072 /** 00073 * CAnimationAppView. 00074 * C++ default constructor. 00075 */ 00076 CAnimationAppView(); 00077 00078 /** 00079 * ConstructL 00080 * 2nd phase constructor. 00081 * Perform the second phase construction of a CAnimationAppView object. 00082 * @param aRect The rectangle this view will be drawn to. 00083 */ 00084 void ConstructL( const TRect& aRect ); 00085 }; 00086 00087 #endif //__ANIMATIONAPPVIEW_H__ 00088 00089 // End of File
|
© Nokia 2009 |