Nokia N97 SDK
Example Applications Guide

CAnimationAppView Class Reference

#include <animationappview.h>

Inheritance diagram for CAnimationAppView:

List of all members.

Detailed Description

CAnimationAppView. An instance of the Application View object for the Animation. example application.

Definition at line 27 of file animationappview.h.


Public Member Functions

virtual  ~CAnimationAppView ()
void  Draw (const TRect &) const
void  HandleResolutionChange (TRect aRect)

Static Public Member Functions

static CAnimationAppView *  NewL (const TRect &aRect)
static CAnimationAppView *  NewLC (const TRect &aRect)

Private Member Functions

  CAnimationAppView ()
void  ConstructL (const TRect &aRect)


Constructor & Destructor Documentation

CAnimationAppView::~CAnimationAppView (   )  [virtual]
 

~CAnimationAppView Virtual Destructor.

Definition at line 86 of file animationappview.cpp.

00087     {
00088     // No implementation required
00089     }

CAnimationAppView::CAnimationAppView (   )  [private]
 

CAnimationAppView. C++ default constructor.

Definition at line 29 of file animationappview.cpp.

Referenced by NewLC().

00030     {
00031     // No implementation required
00032     }


Member Function Documentation

CAnimationAppView * CAnimationAppView::NewL (  const TRect &  aRect  )  [static]
 

NewL. Two-phased constructor. Create a CAnimationAppView object, which will draw itself to aRect.

Parameters:
aRect  The rectangle this view will be drawn to.
Returns:
A pointer to the created instance of CAnimationAppView.

Definition at line 39 of file animationappview.cpp.

References NewLC().

Referenced by CAnimationAppUi::ConstructL().

00040     {
00041     CAnimationAppView* self = CAnimationAppView::NewLC( aRect );
00042     CleanupStack::Pop();
00043     return self;
00044     }

CAnimationAppView * CAnimationAppView::NewLC (  const TRect &  aRect  )  [static]
 

NewLC. Two-phased constructor. Create a CAnimationAppView object, which will draw itself to aRect.

Parameters:
aRect  Rectangle this view will be drawn to.
Returns:
A pointer to the created instance of CAnimationAppView.

Definition at line 51 of file animationappview.cpp.

References CAnimationAppView().

Referenced by NewL().

00052     {
00053     CAnimationAppView* self = new ( ELeave ) CAnimationAppView();
00054     CleanupStack::PushL( self );
00055     self->ConstructL( aRect );
00056     return self;
00057     }

void CAnimationAppView::Draw (  const TRect &   )  const
 

Draw Draw this CAnimationAppView to the screen.

Definition at line 96 of file animationappview.cpp.

00097     {
00098     // Clear the screen
00099     CWindowGc& gc = SystemGc();
00100     TRect drawRect( Rect() );
00101     gc.Clear( drawRect );
00102     }

void CAnimationAppView::HandleResolutionChange (  TRect  aRect  ) 
 

HandleResolutionChange. Handles a resolution change

Parameters:
aRect  the new rectangle of this view.

Definition at line 76 of file animationappview.cpp.

Referenced by CAnimationAppUi::HandleResourceChangeL().

00077     {
00078     SetRect( aRect );
00079     }

void CAnimationAppView::ConstructL (  const TRect &  aRect  )  [private]
 

ConstructL 2nd phase constructor. Perform the second phase construction of a CAnimationAppView object.

Parameters:
aRect  The rectangle this view will be drawn to.

Definition at line 64 of file animationappview.cpp.

00065     {
00066     // Create a window for this application view
00067     CreateWindowL();
00068 
00069     // Set the windows size
00070     SetRect( aRect );
00071 
00072     // Activate the window, which makes it ready to be drawn
00073     ActivateL();
00074     }


The documentation for this class was generated from the following files:

© Nokia 2009

Back to top