⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_c_multi_views_app_view.html

📁 symbian os c/c++ 多个view切换
💻 HTML
📖 第 1 页 / 共 2 页
字号:
  </tr></table><a class="anchor" name="910d18e663ad77c3995c0313f3bd65bd"></a><!-- doxytag: member="CMultiViewsAppView::NewLC" ref="910d18e663ad77c3995c0313f3bd65bd" args="(const TRect &amp;aRect)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="class_c_multi_views_app_view.html">CMultiViewsAppView</a> * CMultiViewsAppView::NewLC           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>NewLC. Two-phased constructor. Create a CMultiViewsAppView object, which will draw itself to aRect- <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>the rectangle this view will be drawn to. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>a pointer to the created instance of CMultiViewsAppView </dd></dl><p>Definition at line <a class="el" href="multiviewsappview_8cpp-source.html#l00050">50</a> of file <a class="el" href="multiviewsappview_8cpp-source.html">multiviewsappview.cpp</a>.<p>References <a class="el" href="multiviewsappview_8cpp-source.html#l00063">ConstructL()</a>.<p>Referenced by <a class="el" href="multiviewsappview_8cpp-source.html#l00038">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00051"></a>00051     {<a name="l00052"></a>00052     <a class="code" href="class_c_multi_views_app_view.html">CMultiViewsAppView</a>* <span class="keyword">self</span> = <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_multi_views_app_view.html">CMultiViewsAppView</a>;<a name="l00053"></a>00053     CleanupStack::PushL( <span class="keyword">self</span> );<a name="l00054"></a>00054     <span class="keyword">self</span>-&gt;ConstructL( aRect );<a name="l00055"></a>00055     <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00056"></a>00056     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="67f946ca7848ec78de4961c5bcefdb72"></a><!-- doxytag: member="CMultiViewsAppView::Draw" ref="67f946ca7848ec78de4961c5bcefdb72" args="(const TRect &amp;aRect) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CMultiViewsAppView::Draw           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw Draw this CMultiViewsAppView to the screen. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>the rectangle of this view that needs updating </td></tr>  </table></dl><p>Definition at line <a class="el" href="multiviewsappview_8cpp-source.html#l00090">90</a> of file <a class="el" href="multiviewsappview_8cpp-source.html">multiviewsappview.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00091"></a>00091     {<a name="l00092"></a>00092     <span class="comment">// Clear the screen</span><a name="l00093"></a>00093     CWindowGc&amp; gc = SystemGc();<a name="l00094"></a>00094     gc.Clear( Rect() );<a name="l00095"></a>00095     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="bf31593b337cbf3fb671382cf773281c"></a><!-- doxytag: member="CMultiViewsAppView::ConstructL" ref="bf31593b337cbf3fb671382cf773281c" args="(const TRect &amp;aRect)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void CMultiViewsAppView::ConstructL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TRect &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aRect</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [private]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>ConstructL 2nd phase constructor. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aRect</em>&nbsp;</td><td>the rectangle this view will be drawn to. </td></tr>  </table></dl><p>Definition at line <a class="el" href="multiviewsappview_8cpp-source.html#l00063">63</a> of file <a class="el" href="multiviewsappview_8cpp-source.html">multiviewsappview.cpp</a>.<p>Referenced by <a class="el" href="multiviewsappview_8cpp-source.html#l00050">NewLC()</a>.<div class="fragment"><pre class="fragment"><a name="l00064"></a>00064     {<a name="l00065"></a>00065     <span class="comment">// Create a window for this application view</span><a name="l00066"></a>00066     CreateWindowL();<a name="l00067"></a>00067 <a name="l00068"></a>00068     <span class="comment">// Set the windows size</span><a name="l00069"></a>00069     SetRect( aRect );<a name="l00070"></a>00070 <a name="l00071"></a>00071     <span class="comment">// Activate the window, which makes it ready to be drawn</span><a name="l00072"></a>00072     ActivateL();<a name="l00073"></a>00073     }</pre></div><p>    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="multiviewsappview_8h-source.html">multiviewsappview.h</a><li><a class="el" href="multiviewsappview_8cpp-source.html">multiviewsappview.cpp</a></ul><hr><table x-use-null-cells		style="x-cell-content-align: top;				width: 100%;				border-spacing: 0px;				border-spacing: 0px;"		cellspacing=0		width=100%>  <col style="width: 50%;">  <col style="width: 50%;">  <tr style="x-cell-content-align: top;"	valign=top>  <td style="width: 50%;			padding-right: 10px;			padding-left: 10px;			border-right-style: None;			border-left-style: None;			border-top-style: None;			border-bottom-style: None;"	width=50%>  <p style="font-family: Arial;"><small style="font-size: smaller;">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -