Nokia N97 SDK
Example Applications Guide

COomExampleAppView Class Reference

Inheritance diagram for COomExampleAppView:

List of all members.

Detailed Description

Definition at line 25 of file OomExampleAppView.h.


Public Member Functions

virtual  ~COomExampleAppView ()
void  Draw (const TRect &aRect) const
virtual void  SizeChanged ()
virtual void  HandlePointerEventL (const TPointerEvent &aPointerEvent)

Static Public Member Functions

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

Private Member Functions

void  ConstructL (const TRect &aRect)
  COomExampleAppView ()


Constructor & Destructor Documentation

COomExampleAppView::~COomExampleAppView (   )  [virtual]
 

~COomExampleAppView Virtual Destructor.

Definition at line 55 of file OomExampleAppView.cpp.

00056     {
00057     // No implementation required
00058     }

COomExampleAppView::COomExampleAppView (   )  [private]
 

COomExampleAppView. C++ default constructor.

Definition at line 50 of file OomExampleAppView.cpp.

00051     {
00052     // No implementation required
00053     }


Member Function Documentation

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

NewL. Two-phased constructor. Create a COomExampleAppView 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 COomExampleAppView.

Definition at line 23 of file OomExampleAppView.cpp.

References NewLC().

Referenced by COomExampleAppUi::ConstructL().

00024     {
00025     COomExampleAppView* self = COomExampleAppView::NewLC( aRect );
00026     CleanupStack::Pop( self );
00027     return self;
00028     }

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

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

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

Definition at line 30 of file OomExampleAppView.cpp.

References ConstructL().

Referenced by NewL().

00031     {
00032     COomExampleAppView* self = new (ELeave) COomExampleAppView;
00033     CleanupStack::PushL(self);
00034     self->ConstructL(aRect);
00035     return self;
00036     }

void COomExampleAppView::Draw (  const TRect &  aRect  )  const
 

From CCoeControl, Draw Draw this COomExampleAppView to the screen.

Parameters:
aRect  the rectangle of this view that needs updating

Definition at line 60 of file OomExampleAppView.cpp.

00061     {
00062     // Get the standard graphics context
00063     CWindowGc& gc = SystemGc();
00064 
00065     // Gets the control's extent
00066     TRect drawRect(Rect());
00067 
00068     // Clears the screen
00069     gc.Clear(drawRect);
00070 
00071     }

void COomExampleAppView::SizeChanged (   )  [virtual]
 

From CoeControl, SizeChanged. Called by framework when the view size is changed.

Definition at line 73 of file OomExampleAppView.cpp.

00074     {
00075     DrawNow();
00076     }

void COomExampleAppView::HandlePointerEventL (  const TPointerEvent &  aPointerEvent  )  [virtual]
 

From CoeControl, HandlePointerEventL. Called by framework when a pointer touch event occurs. Note: although this method is compatible with earlier SDKs, it will not be called in SDKs without Touch support.

Parameters:
aPointerEvent  the information about this event

Definition at line 78 of file OomExampleAppView.cpp.

00080     {
00081 
00082     // Call base class HandlePointerEventL()
00083     CCoeControl::HandlePointerEventL(aPointerEvent);
00084     }

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

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

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

Definition at line 38 of file OomExampleAppView.cpp.

Referenced by NewLC().

00039     {
00040     // Create a window for this application view
00041     CreateWindowL();
00042 
00043     // Set the windows size
00044     SetRect(aRect);
00045 
00046     // Activate the window, which makes it ready to be drawn
00047     ActivateL();
00048     }


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

© Nokia 2009

Back to top