examples/S60CppExamples/helloworldbasic/doc/class_c_hello_world_basic_app_view.html

00001 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
00002 <html>
00003 
00004 <head>
00005 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
00006 <title>CHelloWorldBasicAppView Class Reference</title>
00007 <link href="style.css" rel="stylesheet" type="text/css">
00008 </head>
00009 
00010 <table border="0" width="100%" height="8" bgcolor="#eeeeee">
00011 <tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>
00012 S60 5th Edition SDK </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table>
00013 <!-- Generated by Doxygen 1.4.5 -->
00014 <div class="tabs">
00015   <ul>
00016     <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
00017     <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
00018     <li><a href="files.html"><span>Files</span></a></li>
00019   </ul></div>
00020 <div class="tabs">
00021   <ul>
00022     <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
00023     <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
00024     <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
00025   </ul></div>
00026 <h1>CHelloWorldBasicAppView Class Reference</h1><!-- doxytag: class="CHelloWorldBasicAppView" --><!-- doxytag: inherits="CCoeControl" --><p>Inheritance diagram for CHelloWorldBasicAppView:
00027 <p><center><img src="class_c_hello_world_basic_app_view.png" usemap="#CHelloWorldBasicAppView_map" border="0" alt=""></center>
00028 <map name="CHelloWorldBasicAppView_map">
00029 </map>
00030 <a href="class_c_hello_world_basic_app_view-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
00031 
00032 <p>
00033 
00034 <p>
00035 Definition at line <a class="el" href="helloworldbasicappview_8h-source.html#l00023">23</a> of file <a class="el" href="helloworldbasicappview_8h-source.html">helloworldbasicappview.h</a>.<table border="0" cellpadding="0" cellspacing="0">
00036 <tr><td></td></tr>
00037 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
00038 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#86b9b8317b30af7e92818502b4bfdb34">~CHelloWorldBasicAppView</a> ()</td></tr>
00039 
00040 <tr><td class="memItemLeft" nowrap align="right" valign="top">TDes &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#59cee462c5e06d883260d21037a3ebd7">GetText</a> ()</td></tr>
00041 
00042 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#67f946ca7848ec78de4961c5bcefdb72">Draw</a> (const TRect &amp;aRect) const </td></tr>
00043 
00044 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#9f9bb5a2110532e2f2909eaefb44d36a">SizeChanged</a> ()</td></tr>
00045 
00046 <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
00047 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_hello_world_basic_app_view.html">CHelloWorldBasicAppView</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#5891ab00f23b517058efe213c1febfd2">NewL</a> (const TRect &amp;aRect)</td></tr>
00048 
00049 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_hello_world_basic_app_view.html">CHelloWorldBasicAppView</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#910d18e663ad77c3995c0313f3bd65bd">NewLC</a> (const TRect &amp;aRect)</td></tr>
00050 
00051 <tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
00052 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#bf31593b337cbf3fb671382cf773281c">ConstructL</a> (const TRect &amp;aRect)</td></tr>
00053 
00054 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#5e4d6585c0318638ef415fa23ee6a14d">CHelloWorldBasicAppView</a> ()</td></tr>
00055 
00056 <tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
00057 <tr><td class="memItemLeft" nowrap align="right" valign="top">const CFont *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#4faf9e48cb813e0be080fe4270d15573">iFont</a></td></tr>
00058 
00059 <tr><td class="memItemLeft" nowrap align="right" valign="top">TBuf&lt; 24 &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_hello_world_basic_app_view.html#3acc54dfc6520e11f5c51f4cd887a7d0">iText</a></td></tr>
00060 
00061 </table>
00062 <hr><h2>Constructor &amp; Destructor Documentation</h2>
00063 <a class="anchor" name="86b9b8317b30af7e92818502b4bfdb34"></a><!-- doxytag: member="CHelloWorldBasicAppView::~CHelloWorldBasicAppView" ref="86b9b8317b30af7e92818502b4bfdb34" args="()" --><p>
00064 <table class="mdTable" cellpadding="2" cellspacing="0">
00065   <tr>
00066     <td class="mdRow">
00067       <table cellpadding="0" cellspacing="0" border="0">
00068         <tr>
00069           <td class="md" nowrap valign="top">CHelloWorldBasicAppView::~CHelloWorldBasicAppView           </td>
00070           <td class="md" valign="top">(&nbsp;</td>
00071           <td class="mdname1" valign="top" nowrap>          </td>
00072           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00073           <td class="md" nowrap><code> [virtual]</code></td>
00074         </tr>
00075       </table>
00076     </td>
00077   </tr>
00078 </table>
00079 <table cellspacing="5" cellpadding="0" border="0">
00080   <tr>
00081     <td>
00082       &nbsp;
00083     </td>
00084     <td>
00085 
00086 <p>
00087 ~CHelloWorldBasicAppView Virtual Destructor. 
00088 <p>
00089 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00086">86</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00087"></a>00087     {
00090 <a name="l00088"></a>00088     <span class="comment">// No implementation required</span>
00091 <a name="l00089"></a>00089     }
00092 </pre></div>
00093 <p>
00094     </td>
00095   </tr>
00096 </table>
00097 <a class="anchor" name="5e4d6585c0318638ef415fa23ee6a14d"></a><!-- doxytag: member="CHelloWorldBasicAppView::CHelloWorldBasicAppView" ref="5e4d6585c0318638ef415fa23ee6a14d" args="()" --><p>
00098 <table class="mdTable" cellpadding="2" cellspacing="0">
00099   <tr>
00100     <td class="mdRow">
00101       <table cellpadding="0" cellspacing="0" border="0">
00102         <tr>
00103           <td class="md" nowrap valign="top">CHelloWorldBasicAppView::CHelloWorldBasicAppView           </td>
00104           <td class="md" valign="top">(&nbsp;</td>
00105           <td class="mdname1" valign="top" nowrap>          </td>
00106           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00107           <td class="md" nowrap><code> [private]</code></td>
00108         </tr>
00109       </table>
00110     </td>
00111   </tr>
00112 </table>
00113 <table cellspacing="5" cellpadding="0" border="0">
00114   <tr>
00115     <td>
00116       &nbsp;
00117     </td>
00118     <td>
00119 
00120 <p>
00121 CHelloWorldBasicAppView. C++ default constructor. 
00122 <p>
00123 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00075">75</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00076"></a>00076     {
00124 <a name="l00077"></a>00077     <span class="comment">// No implementation required</span>
00125 <a name="l00078"></a>00078     }
00126 </pre></div>
00127 <p>
00128     </td>
00129   </tr>
00130 </table>
00131 <hr><h2>Member Function Documentation</h2>
00132 <a class="anchor" name="5891ab00f23b517058efe213c1febfd2"></a><!-- doxytag: member="CHelloWorldBasicAppView::NewL" ref="5891ab00f23b517058efe213c1febfd2" args="(const TRect &amp;aRect)" --><p>
00133 <table class="mdTable" cellpadding="2" cellspacing="0">
00134   <tr>
00135     <td class="mdRow">
00136       <table cellpadding="0" cellspacing="0" border="0">
00137         <tr>
00138           <td class="md" nowrap valign="top"><a class="el" href="class_c_hello_world_basic_app_view.html">CHelloWorldBasicAppView</a> * CHelloWorldBasicAppView::NewL           </td>
00139           <td class="md" valign="top">(&nbsp;</td>
00140           <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>
00141           <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>
00142           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00143           <td class="md" nowrap><code> [static]</code></td>
00144         </tr>
00145       </table>
00146     </td>
00147   </tr>
00148 </table>
00149 <table cellspacing="5" cellpadding="0" border="0">
00150   <tr>
00151     <td>
00152       &nbsp;
00153     </td>
00154     <td>
00155 
00156 <p>
00157 NewL. Two-phased constructor. Create a CHelloWorldBasicAppView object, which will draw itself to aRect. <dl compact><dt><b>Parameters:</b></dt><dd>
00158   <table border="0" cellspacing="2" cellpadding="0">
00159     <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>The rectangle this view will be drawn to. </td></tr>
00160   </table>
00161 </dl>
00162 <dl compact><dt><b>Returns:</b></dt><dd>a pointer to the created instance of CHelloWorldBasicAppView. </dd></dl>
00163 
00164 <p>
00165 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00028">28</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.
00166 <p>
00167 References <a class="el" href="helloworldbasicappview_8cpp-source.html#l00040">NewLC()</a>.
00168 <p>
00169 Referenced by <a class="el" href="helloworldbasicappui_8cpp-source.html#l00040">CHelloWorldBasicAppUi::ConstructL()</a>.<div class="fragment"><pre class="fragment"><a name="l00029"></a>00029     {
00170 <a name="l00030"></a>00030     <a class="code" href="class_c_hello_world_basic_app_view.html">CHelloWorldBasicAppView</a>* <span class="keyword">self</span> = <a class="code" href="class_c_hello_world_basic_app_view.html#910d18e663ad77c3995c0313f3bd65bd">CHelloWorldBasicAppView::NewLC</a>( aRect );
00171 <a name="l00031"></a>00031     CleanupStack::Pop( <span class="keyword">self</span> );
00172 <a name="l00032"></a>00032     <span class="keywordflow">return</span> <span class="keyword">self</span>;
00173 <a name="l00033"></a>00033     }
00174 </pre></div>
00175 <p>
00176     </td>
00177   </tr>
00178 </table>
00179 <a class="anchor" name="910d18e663ad77c3995c0313f3bd65bd"></a><!-- doxytag: member="CHelloWorldBasicAppView::NewLC" ref="910d18e663ad77c3995c0313f3bd65bd" args="(const TRect &amp;aRect)" --><p>
00180 <table class="mdTable" cellpadding="2" cellspacing="0">
00181   <tr>
00182     <td class="mdRow">
00183       <table cellpadding="0" cellspacing="0" border="0">
00184         <tr>
00185           <td class="md" nowrap valign="top"><a class="el" href="class_c_hello_world_basic_app_view.html">CHelloWorldBasicAppView</a> * CHelloWorldBasicAppView::NewLC           </td>
00186           <td class="md" valign="top">(&nbsp;</td>
00187           <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>
00188           <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>
00189           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00190           <td class="md" nowrap><code> [static]</code></td>
00191         </tr>
00192       </table>
00193     </td>
00194   </tr>
00195 </table>
00196 <table cellspacing="5" cellpadding="0" border="0">
00197   <tr>
00198     <td>
00199       &nbsp;
00200     </td>
00201     <td>
00202 
00203 <p>
00204 NewLC. Two-phased constructor. Create a CHelloWorldBasicAppView object, which will draw itself to aRect. <dl compact><dt><b>Parameters:</b></dt><dd>
00205   <table border="0" cellspacing="2" cellpadding="0">
00206     <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>Rectangle this view will be drawn to. </td></tr>
00207   </table>
00208 </dl>
00209 <dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of CHelloWorldBasicAppView. </dd></dl>
00210 
00211 <p>
00212 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00040">40</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.
00213 <p>
00214 References <a class="el" href="helloworldbasicappview_8cpp-source.html#l00053">ConstructL()</a>.
00215 <p>
00216 Referenced by <a class="el" href="helloworldbasicappview_8cpp-source.html#l00028">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00041"></a>00041     {
00217 <a name="l00042"></a>00042     <a class="code" href="class_c_hello_world_basic_app_view.html">CHelloWorldBasicAppView</a>* <span class="keyword">self</span> = <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_hello_world_basic_app_view.html">CHelloWorldBasicAppView</a>;
00218 <a name="l00043"></a>00043     CleanupStack::PushL( <span class="keyword">self</span> );
00219 <a name="l00044"></a>00044     <span class="keyword">self</span>-&gt;ConstructL( aRect );
00220 <a name="l00045"></a>00045     <span class="keywordflow">return</span> <span class="keyword">self</span>;
00221 <a name="l00046"></a>00046     }
00222 </pre></div>
00223 <p>
00224     </td>
00225   </tr>
00226 </table>
00227 <a class="anchor" name="59cee462c5e06d883260d21037a3ebd7"></a><!-- doxytag: member="CHelloWorldBasicAppView::GetText" ref="59cee462c5e06d883260d21037a3ebd7" args="()" --><p>
00228 <table class="mdTable" cellpadding="2" cellspacing="0">
00229   <tr>
00230     <td class="mdRow">
00231       <table cellpadding="0" cellspacing="0" border="0">
00232         <tr>
00233           <td class="md" nowrap valign="top">TDes &amp; CHelloWorldBasicAppView::GetText           </td>
00234           <td class="md" valign="top">(&nbsp;</td>
00235           <td class="mdname1" valign="top" nowrap>          </td>
00236           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00237           <td class="md" nowrap></td>
00238         </tr>
00239       </table>
00240     </td>
00241   </tr>
00242 </table>
00243 <table cellspacing="5" cellpadding="0" border="0">
00244   <tr>
00245     <td>
00246       &nbsp;
00247     </td>
00248     <td>
00249 
00250 <p>
00251 GetText <dl compact><dt><b>Returns:</b></dt><dd>modifiable reference to the descriptor, which stores user-given text </dd></dl>
00252 
00253 <p>
00254 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00138">138</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.
00255 <p>
00256 References <a class="el" href="helloworldbasicappview_8h-source.html#l00103">iText</a>.
00257 <p>
00258 Referenced by <a class="el" href="helloworldbasicappui_8cpp-source.html#l00124">CHelloWorldBasicAppUi::HandleCommandL()</a>.<div class="fragment"><pre class="fragment"><a name="l00139"></a>00139     {
00259 <a name="l00140"></a>00140     <span class="keywordflow">return</span> <a class="code" href="class_c_hello_world_basic_app_view.html#3acc54dfc6520e11f5c51f4cd887a7d0">iText</a>;
00260 <a name="l00141"></a>00141     }
00261 </pre></div>
00262 <p>
00263     </td>
00264   </tr>
00265 </table>
00266 <a class="anchor" name="67f946ca7848ec78de4961c5bcefdb72"></a><!-- doxytag: member="CHelloWorldBasicAppView::Draw" ref="67f946ca7848ec78de4961c5bcefdb72" args="(const TRect &amp;aRect) const " --><p>
00267 <table class="mdTable" cellpadding="2" cellspacing="0">
00268   <tr>
00269     <td class="mdRow">
00270       <table cellpadding="0" cellspacing="0" border="0">
00271         <tr>
00272           <td class="md" nowrap valign="top">void CHelloWorldBasicAppView::Draw           </td>
00273           <td class="md" valign="top">(&nbsp;</td>
00274           <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>
00275           <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>
00276           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00277           <td class="md" nowrap> const</td>
00278         </tr>
00279       </table>
00280     </td>
00281   </tr>
00282 </table>
00283 <table cellspacing="5" cellpadding="0" border="0">
00284   <tr>
00285     <td>
00286       &nbsp;
00287     </td>
00288     <td>
00289 
00290 <p>
00291 From CCoeControl, Draw Draw this CHelloWorldBasicAppView to the screen. If the user has given a text, it is also printed to the center of the screen. <dl compact><dt><b>Parameters:</b></dt><dd>
00292   <table border="0" cellspacing="2" cellpadding="0">
00293     <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>the rectangle of this view that needs updating </td></tr>
00294   </table>
00295 </dl>
00296 
00297 <p>
00298 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00097">97</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.
00299 <p>
00300 References <a class="el" href="helloworldbasicappview_8h-source.html#l00098">iFont</a>, and <a class="el" href="helloworldbasicappview_8h-source.html#l00103">iText</a>.<div class="fragment"><pre class="fragment"><a name="l00098"></a>00098     {
00301 <a name="l00099"></a>00099     <span class="comment">// note that the whole screen is drawn everytime, so aRect-parameter</span>
00302 <a name="l00100"></a>00100     <span class="comment">// is ignored</span>
00303 <a name="l00101"></a>00101 
00304 <a name="l00102"></a>00102     <span class="comment">// Get the standard graphics context</span>
00305 <a name="l00103"></a>00103     CWindowGc&amp; gc = SystemGc();
00306 <a name="l00104"></a>00104     gc.SetPenStyle( CGraphicsContext::ENullPen );
00307 <a name="l00105"></a>00105     gc.SetBrushColor( KRgbWhite);
00308 <a name="l00106"></a>00106     gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
00309 <a name="l00107"></a>00107 
00310 <a name="l00108"></a>00108     <span class="comment">// Gets the control's extent</span>
00311 <a name="l00109"></a>00109     TRect rect( Rect());
00312 <a name="l00110"></a>00110 
00313 <a name="l00111"></a>00111     <span class="comment">// draw also text, if user has given it via dialog</span>
00314 <a name="l00112"></a>00112     <span class="keywordflow">if</span> (<a class="code" href="class_c_hello_world_basic_app_view.html#3acc54dfc6520e11f5c51f4cd887a7d0">iText</a>.Length() &gt; 0)
00315 <a name="l00113"></a>00113         {
00316 <a name="l00114"></a>00114         gc.UseFont(<a class="code" href="class_c_hello_world_basic_app_view.html#4faf9e48cb813e0be080fe4270d15573">iFont</a>);
00317 <a name="l00115"></a>00115         gc.DrawText(<a class="code" href="class_c_hello_world_basic_app_view.html#3acc54dfc6520e11f5c51f4cd887a7d0">iText</a>, rect, Rect().Height()/3, CGraphicsContext::ECenter );
00318 <a name="l00116"></a>00116         gc.DiscardFont();
00319 <a name="l00117"></a>00117         }
00320 <a name="l00118"></a>00118     <span class="keywordflow">else</span>
00321 <a name="l00119"></a>00119         {
00322 <a name="l00120"></a>00120         gc.Clear( rect );
00323 <a name="l00121"></a>00121         }
00324 <a name="l00122"></a>00122     }
00325 </pre></div>
00326 <p>
00327     </td>
00328   </tr>
00329 </table>
00330 <a class="anchor" name="9f9bb5a2110532e2f2909eaefb44d36a"></a><!-- doxytag: member="CHelloWorldBasicAppView::SizeChanged" ref="9f9bb5a2110532e2f2909eaefb44d36a" args="()" --><p>
00331 <table class="mdTable" cellpadding="2" cellspacing="0">
00332   <tr>
00333     <td class="mdRow">
00334       <table cellpadding="0" cellspacing="0" border="0">
00335         <tr>
00336           <td class="md" nowrap valign="top">void CHelloWorldBasicAppView::SizeChanged           </td>
00337           <td class="md" valign="top">(&nbsp;</td>
00338           <td class="mdname1" valign="top" nowrap>          </td>
00339           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00340           <td class="md" nowrap><code> [virtual]</code></td>
00341         </tr>
00342       </table>
00343     </td>
00344   </tr>
00345 </table>
00346 <table cellspacing="5" cellpadding="0" border="0">
00347   <tr>
00348     <td>
00349       &nbsp;
00350     </td>
00351     <td>
00352 
00353 <p>
00354 From CoeControl, SizeChanged. Called by framework when the view size is changed. 
00355 <p>
00356 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00129">129</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00130"></a>00130     {
00357 <a name="l00131"></a>00131     }
00358 </pre></div>
00359 <p>
00360     </td>
00361   </tr>
00362 </table>
00363 <a class="anchor" name="bf31593b337cbf3fb671382cf773281c"></a><!-- doxytag: member="CHelloWorldBasicAppView::ConstructL" ref="bf31593b337cbf3fb671382cf773281c" args="(const TRect &amp;aRect)" --><p>
00364 <table class="mdTable" cellpadding="2" cellspacing="0">
00365   <tr>
00366     <td class="mdRow">
00367       <table cellpadding="0" cellspacing="0" border="0">
00368         <tr>
00369           <td class="md" nowrap valign="top">void CHelloWorldBasicAppView::ConstructL           </td>
00370           <td class="md" valign="top">(&nbsp;</td>
00371           <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>
00372           <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>
00373           <td class="md" valign="top">&nbsp;)&nbsp;</td>
00374           <td class="md" nowrap><code> [private]</code></td>
00375         </tr>
00376       </table>
00377     </td>
00378   </tr>
00379 </table>
00380 <table cellspacing="5" cellpadding="0" border="0">
00381   <tr>
00382     <td>
00383       &nbsp;
00384     </td>
00385     <td>
00386 
00387 <p>
00388 ConstructL 2nd phase constructor. Perform the second phase construction of a CHelloWorldBasicAppView object. <dl compact><dt><b>Parameters:</b></dt><dd>
00389   <table border="0" cellspacing="2" cellpadding="0">
00390     <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>The rectangle this view will be drawn to. </td></tr>
00391   </table>
00392 </dl>
00393 
00394 <p>
00395 Definition at line <a class="el" href="helloworldbasicappview_8cpp-source.html#l00053">53</a> of file <a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a>.
00396 <p>
00397 References <a class="el" href="helloworldbasicappview_8h-source.html#l00098">iFont</a>, and <a class="el" href="helloworldbasicappview_8h-source.html#l00103">iText</a>.
00398 <p>
00399 Referenced by <a class="el" href="helloworldbasicappview_8cpp-source.html#l00040">NewLC()</a>.<div class="fragment"><pre class="fragment"><a name="l00054"></a>00054     {
00400 <a name="l00055"></a>00055     <span class="comment">// Create a window for this application view</span>
00401 <a name="l00056"></a>00056     CreateWindowL();
00402 <a name="l00057"></a>00057 
00403 <a name="l00058"></a>00058     <span class="comment">// set the font</span>
00404 <a name="l00059"></a>00059     <a class="code" href="class_c_hello_world_basic_app_view.html#4faf9e48cb813e0be080fe4270d15573">iFont</a> = AknLayoutUtils::FontFromId(EAknLogicalFontPrimaryFont);
00405 <a name="l00060"></a>00060 
00406 <a name="l00061"></a>00061     <a class="code" href="class_c_hello_world_basic_app_view.html#3acc54dfc6520e11f5c51f4cd887a7d0">iText</a>.Zero();
00407 <a name="l00062"></a>00062 
00408 <a name="l00063"></a>00063     <span class="comment">// Set the windows size</span>
00409 <a name="l00064"></a>00064     SetRect( aRect );
00410 <a name="l00065"></a>00065 
00411 <a name="l00066"></a>00066     <span class="comment">// Activate the window, which makes it ready to be drawn</span>
00412 <a name="l00067"></a>00067     ActivateL();
00413 <a name="l00068"></a>00068     }
00414 </pre></div>
00415 <p>
00416     </td>
00417   </tr>
00418 </table>
00419 <hr><h2>Member Data Documentation</h2>
00420 <a class="anchor" name="4faf9e48cb813e0be080fe4270d15573"></a><!-- doxytag: member="CHelloWorldBasicAppView::iFont" ref="4faf9e48cb813e0be080fe4270d15573" args="" --><p>
00421 <table class="mdTable" cellpadding="2" cellspacing="0">
00422   <tr>
00423     <td class="mdRow">
00424       <table cellpadding="0" cellspacing="0" border="0">
00425         <tr>
00426           <td class="md" nowrap valign="top">const CFont* <a class="el" href="class_c_hello_world_basic_app_view.html#4faf9e48cb813e0be080fe4270d15573">CHelloWorldBasicAppView::iFont</a><code> [private]</code>          </td>
00427         </tr>
00428       </table>
00429     </td>
00430   </tr>
00431 </table>
00432 <table cellspacing="5" cellpadding="0" border="0">
00433   <tr>
00434     <td>
00435       &nbsp;
00436     </td>
00437     <td>
00438 
00439 <p>
00440 font used, when printing user-given text to the screen 
00441 <p>
00442 Definition at line <a class="el" href="helloworldbasicappview_8h-source.html#l00098">98</a> of file <a class="el" href="helloworldbasicappview_8h-source.html">helloworldbasicappview.h</a>.
00443 <p>
00444 Referenced by <a class="el" href="helloworldbasicappview_8cpp-source.html#l00053">ConstructL()</a>, and <a class="el" href="helloworldbasicappview_8cpp-source.html#l00097">Draw()</a>.    </td>
00445   </tr>
00446 </table>
00447 <a class="anchor" name="3acc54dfc6520e11f5c51f4cd887a7d0"></a><!-- doxytag: member="CHelloWorldBasicAppView::iText" ref="3acc54dfc6520e11f5c51f4cd887a7d0" args="" --><p>
00448 <table class="mdTable" cellpadding="2" cellspacing="0">
00449   <tr>
00450     <td class="mdRow">
00451       <table cellpadding="0" cellspacing="0" border="0">
00452         <tr>
00453           <td class="md" nowrap valign="top">TBuf&lt;24&gt; <a class="el" href="class_c_hello_world_basic_app_view.html#3acc54dfc6520e11f5c51f4cd887a7d0">CHelloWorldBasicAppView::iText</a><code> [private]</code>          </td>
00454         </tr>
00455       </table>
00456     </td>
00457   </tr>
00458 </table>
00459 <table cellspacing="5" cellpadding="0" border="0">
00460   <tr>
00461     <td>
00462       &nbsp;
00463     </td>
00464     <td>
00465 
00466 <p>
00467 descriptor storing the user-given text 
00468 <p>
00469 Definition at line <a class="el" href="helloworldbasicappview_8h-source.html#l00103">103</a> of file <a class="el" href="helloworldbasicappview_8h-source.html">helloworldbasicappview.h</a>.
00470 <p>
00471 Referenced by <a class="el" href="helloworldbasicappview_8cpp-source.html#l00053">ConstructL()</a>, <a class="el" href="helloworldbasicappview_8cpp-source.html#l00097">Draw()</a>, and <a class="el" href="helloworldbasicappview_8cpp-source.html#l00138">GetText()</a>.    </td>
00472   </tr>
00473 </table>
00474 <hr>The documentation for this class was generated from the following files:<ul>
00475 <li><a class="el" href="helloworldbasicappview_8h-source.html">helloworldbasicappview.h</a><li><a class="el" href="helloworldbasicappview_8cpp-source.html">helloworldbasicappview.cpp</a></ul>
00476 <hr>
00477 
00478 <table x-use-null-cells
00479                 style="x-cell-content-align: top;
00480                                 width: 100%;
00481                                 border-spacing: 0px;
00482                                 border-spacing: 0px;"
00483                 cellspacing=0
00484                 width=100%>
00485   <col style="width: 50%;">
00486   <col style="width: 50%;">
00487 
00488   <tr style="x-cell-content-align: top;"
00489         valign=top>
00490   <td style="width: 50%;
00491                         padding-right: 10px;
00492                         padding-left: 10px;
00493                         border-right-style: None;
00494                         border-left-style: None;
00495                         border-top-style: None;
00496                         border-bottom-style: None;"
00497         width=50%>
00498   <p style="font-family: Arial;"><small style="font-size: smaller;">© Nokia 2009</small></td>
00499   <td style="width: 50%;
00500                         padding-right: 10px;
00501                         padding-left: 10px;
00502                         border-top-style: None;
00503                         border-bottom-style: None;
00504                         border-right-style: None;"
00505         width=50%>
00506   <p style="text-align: right; margin-right: -4px;"
00507         align=right><span style="font-weight: bold;"><a href="#Top"
00508                                                                                                         title="Back to top"><img
00509  src="top.gif"
00510         x-maintain-ratio=TRUE
00511         alt="Back to top"
00512         style="border: none;
00513                         width: 18px;
00514                         height: 15px;
00515                         float: none;
00516                         border-style: none;
00517                         border-style: none;"
00518         width=18
00519         height=15
00520         border=0></a></span></td></tr>
00521  </table>
00522 </body>
00523 </html>
00524 

Generated by  doxygen 1.6.2