|
Nokia N97 SDK Example Applications Guide |
#include <MyViewContainer.h>
Inheritance diagram for CMyViewContainer:

Definition at line 33 of file MyViewContainer.h.
Public Member Functions |
|
| void | ConstructL (const TRect &aRect) |
| ~CMyViewContainer () | |
Private Member Functions |
|
| void | SizeChanged () |
| TInt | CountComponentControls () const |
| CCoeControl * | ComponentControl (TInt aIndex) const |
| void | Draw (const TRect &aRect) const |
| void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
Private Attributes |
|
| CEikLabel * | iLabel |
|
|
Destructor. Definition at line 42 of file MyViewContainer.cpp. References iLabel. 00043 { 00044 delete iLabel; 00045 }
|
|
|
EPOC default constructor.
Definition at line 29 of file MyViewContainer.cpp. References iLabel. Referenced by CMyViewView::DoActivateL(). 00030 { 00031 CreateWindowL(); 00032 00033 iLabel = new (ELeave) CEikLabel; 00034 iLabel->SetContainerWindowL( *this ); 00035 iLabel->SetTextL( _L("MyView 1\n\nSelect local view\nswitching from menu") ); 00036 00037 SetRect(aRect); 00038 ActivateL(); 00039 }
|
|
|
From CoeControl,SizeChanged. Definition at line 52 of file MyViewContainer.cpp. References iLabel. 00053 { 00054 // Control resize code 00055 iLabel->SetExtent( TPoint(10,10), iLabel->MinimumSize() ); 00056 }
|
|
|
From CoeControl,CountComponentControls. Definition at line 62 of file MyViewContainer.cpp.
|
|
|
From CCoeControl,ComponentControl. Definition at line 71 of file MyViewContainer.cpp. References iLabel. 00072 { 00073 switch ( aIndex ) 00074 { 00075 case 0: 00076 return iLabel; 00077 default: 00078 return NULL; 00079 } 00080 }
|
|
|
From CCoeControl,Draw. Definition at line 86 of file MyViewContainer.cpp. 00087 { 00088 CWindowGc& gc = SystemGc(); 00089 gc.SetPenStyle(CGraphicsContext::ENullPen); 00090 gc.SetBrushColor(KRgbBlue); 00091 gc.SetBrushStyle(CGraphicsContext::ESolidBrush); 00092 gc.DrawRect(aRect); 00093 }
|
|
||||||||||||
|
From CCoeControl, HandleControlEventL. Definition at line 100 of file MyViewContainer.cpp.
|
|
© Nokia 2009 |