S60 3rd Edition SDK for Symbian OS Example Applications Guide |
Public Member Functions | |
virtual | ~CHelloWorldBasicAppView () |
void | Draw (const TRect &aRect) const |
virtual void | SizeChanged () |
Static Public Member Functions | |
static CHelloWorldBasicAppView * | NewL (const TRect &aRect) |
static CHelloWorldBasicAppView * | NewLC (const TRect &aRect) |
Private Member Functions | |
void | ConstructL (const TRect &aRect) |
CHelloWorldBasicAppView () |
Definition at line 23 of file helloworldbasicappview.h.
|
~CHelloWorldBasicAppView Virtual Destructor. Definition at line 80 of file helloworldbasicappview.cpp.
|
|
CHelloWorldBasicAppView. C++ default constructor. Definition at line 69 of file helloworldbasicappview.cpp.
|
|
NewL. Two-phased constructor. Create a CHelloWorldBasicAppView object, which will draw itself to aRect.
Definition at line 27 of file helloworldbasicappview.cpp. References NewLC(). 00028 { 00029 CHelloWorldBasicAppView* self = CHelloWorldBasicAppView::NewLC( aRect ); 00030 CleanupStack::Pop( self ); 00031 return self; 00032 }
|
|
NewLC. Two-phased constructor. Create a CHelloWorldBasicAppView object, which will draw itself to aRect.
Definition at line 39 of file helloworldbasicappview.cpp. References ConstructL(). 00040 { 00041 CHelloWorldBasicAppView* self = new ( ELeave ) CHelloWorldBasicAppView; 00042 CleanupStack::PushL( self ); 00043 self->ConstructL( aRect ); 00044 return self; 00045 }
|
|
From CCoeControl, Draw Draw this CHelloWorldBasicAppView to the screen.
Definition at line 91 of file helloworldbasicappview.cpp. 00092 { 00093 // Get the standard graphics context 00094 CWindowGc& gc = SystemGc(); 00095 00096 // Gets the control's extent 00097 TRect drawRect( Rect()); 00098 00099 // Clears the screen 00100 gc.Clear( drawRect ); 00101 00102 }
|
|
From CoeControl, SizeChanged. Called by framework when the view size is changed. Definition at line 109 of file helloworldbasicappview.cpp.
|
|
ConstructL 2nd phase constructor. Perform the second phase construction of a CHelloWorldBasicAppView object.
Definition at line 52 of file helloworldbasicappview.cpp. 00053 { 00054 // Create a window for this application view 00055 CreateWindowL(); 00056 00057 // Set the windows size 00058 SetRect( aRect ); 00059 00060 // Activate the window, which makes it ready to be drawn 00061 ActivateL(); 00062 }
|
© Nokia 2006 |