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

📄 class_c_focus_event_app_view.html

📁 用来学习 焦点 的 的例子,可以 好好看看焦点在 symbian中很重要,
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>CFocusEventAppView Class Reference</title><link href="style.css" rel="stylesheet" type="text/css"></head><table border="0" width="100%" height="8" bgcolor="#eeeeee"><tr> <td width="100%" height="1"><b><font size="2" color="#000000" face="Arial, Helvetica, sans-serif"><strong><a name=Top></a>S60 3rd Edition SDK FP1 for Symbian OS </strong></font></b><br><i>Example Applications Guide</i></td></tr> </table><!-- Generated by Doxygen 1.4.5 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>CFocusEventAppView Class Reference</h1><!-- doxytag: class="CFocusEventAppView" --><!-- doxytag: inherits="CCoeControl" -->Inherits CCoeControl.<p>Inheritance diagram for CFocusEventAppView:<p><center><img src="class_c_focus_event_app_view__inherit__graph.png" border="0" usemap="#_c_focus_event_app_view__inherit__map" alt="Inheritance graph"></center><a href="class_c_focus_event_app_view-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2><p><p>Definition at line <a class="el" href="focuseventappview_8h-source.html#l00032">32</a> of file <a class="el" href="focuseventappview_8h-source.html">focuseventappview.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#a6247f5469f3aed07c660a47d58b627b">~CFocusEventAppView</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#0e66541056b289546108814685519f69">ShowTextOnScreen</a> (const TDesC &amp;aText)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#cb774d5077102fc3c5dbdb7df1261389">Print</a> (const TDesC &amp;aText)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#07d5ce838d6f875de7f10db4e60a0f6a">PrintNewLineL</a> ()</td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_focus_event_app_view.html">CFocusEventAppView</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#5891ab00f23b517058efe213c1febfd2">NewL</a> (const TRect &amp;aRect)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_focus_event_app_view.html">CFocusEventAppView</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#910d18e663ad77c3995c0313f3bd65bd">NewLC</a> (const TRect &amp;aRect)</td></tr><tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#67f946ca7848ec78de4961c5bcefdb72">Draw</a> (const TRect &amp;aRect) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#389d15aa1abc22fb211d040f034e4e31">HandleResourceChange</a> (TInt aType)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#bf31593b337cbf3fb671382cf773281c">ConstructL</a> (const TRect &amp;aRect)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#9f688de164d4b83b38278debd07e51cf">CFocusEventAppView</a> ()</td></tr><tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">RArray&lt; TTextLine &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_focus_event_app_view.html#074ac1c7490630dfae97d172ebbb7d45">iTextLines</a></td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="a6247f5469f3aed07c660a47d58b627b"></a><!-- doxytag: member="CFocusEventAppView::~CFocusEventAppView" ref="a6247f5469f3aed07c660a47d58b627b" args="()" --><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">CFocusEventAppView::~CFocusEventAppView           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>~CFocusEventAppView. Virtual Destructor. <p>Definition at line <a class="el" href="focuseventappview_8cpp-source.html#l00086">86</a> of file <a class="el" href="focuseventappview_8cpp-source.html">focuseventappview.cpp</a>.<p>References <a class="el" href="focuseventappview_8h-source.html#l00118">iTextLines</a>.<div class="fragment"><pre class="fragment"><a name="l00087"></a>00087     {<a name="l00088"></a>00088     <a class="code" href="class_c_focus_event_app_view.html#074ac1c7490630dfae97d172ebbb7d45">iTextLines</a>.Close();<a name="l00089"></a>00089     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="9f688de164d4b83b38278debd07e51cf"></a><!-- doxytag: member="CFocusEventAppView::CFocusEventAppView" ref="9f688de164d4b83b38278debd07e51cf" args="()" --><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">CFocusEventAppView::CFocusEventAppView           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </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>CFocusEventAppView. C++ default constructor. <p>Definition at line <a class="el" href="focuseventappview_8cpp-source.html#l00031">31</a> of file <a class="el" href="focuseventappview_8cpp-source.html">focuseventappview.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00032"></a>00032     {<a name="l00033"></a>00033     <span class="comment">// No implementation required</span><a name="l00034"></a>00034     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="5891ab00f23b517058efe213c1febfd2"></a><!-- doxytag: member="CFocusEventAppView::NewL" ref="5891ab00f23b517058efe213c1febfd2" 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_focus_event_app_view.html">CFocusEventAppView</a> * CFocusEventAppView::NewL           </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>NewL. Two-phased constructor. Create a CFocusEventAppView 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 CFocusEventAppView. </dd></dl><p>Definition at line <a class="el" href="focuseventappview_8cpp-source.html#l00041">41</a> of file <a class="el" href="focuseventappview_8cpp-source.html">focuseventappview.cpp</a>.<p>References <a class="el" href="focuseventappview_8cpp-source.html#l00053">NewLC()</a>.<p>Referenced by <a class="el" href="focuseventappui_8cpp-source.html#l00043">CFocusEventAppUi::ConstructL()</a>.<div class="fragment"><pre class="fragment"><a name="l00042"></a>00042     {<a name="l00043"></a>00043     <a class="code" href="class_c_focus_event_app_view.html">CFocusEventAppView</a>* <span class="keyword">self</span> = <a class="code" href="class_c_focus_event_app_view.html#910d18e663ad77c3995c0313f3bd65bd">NewLC</a>( aRect );<a name="l00044"></a>00044     CleanupStack::Pop( <span class="keyword">self</span> );<a name="l00045"></a>00045     <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00046"></a>00046     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="910d18e663ad77c3995c0313f3bd65bd"></a><!-- doxytag: member="CFocusEventAppView::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_focus_event_app_view.html">CFocusEventAppView</a> * CFocusEventAppView::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 CFocusEventAppView 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>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 CFocusEventAppView. </dd></dl><p>Definition at line <a class="el" href="focuseventappview_8cpp-source.html#l00053">53</a> of file <a class="el" href="focuseventappview_8cpp-source.html">focuseventappview.cpp</a>.<p>References <a class="el" href="focuseventappview_8cpp-source.html#l00066">ConstructL()</a>.<p>Referenced by <a class="el" href="focuseventappview_8cpp-source.html#l00041">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00054"></a>00054     {<a name="l00055"></a>00055     <a class="code" href="class_c_focus_event_app_view.html">CFocusEventAppView</a>* <span class="keyword">self</span> = <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_focus_event_app_view.html">CFocusEventAppView</a>;<a name="l00056"></a>00056     CleanupStack::PushL( <span class="keyword">self</span> );<a name="l00057"></a>00057     <span class="keyword">self</span>-&gt;ConstructL( aRect );<a name="l00058"></a>00058     <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00059"></a>00059     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="0e66541056b289546108814685519f69"></a><!-- doxytag: member="CFocusEventAppView::ShowTextOnScreen" ref="0e66541056b289546108814685519f69" args="(const TDesC &amp;aText)" --><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 CFocusEventAppView::ShowTextOnScreen           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aText</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>ShowTextOnScreen. Display text on 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>aText</em>&nbsp;</td><td>the text to display </td></tr>  </table></dl><p>Definition at line <a class="el" href="focuseventappview_8cpp-source.html#l00134">134</a> of file <a class="el" href="focuseventappview_8cpp-source.html">focuseventappview.cpp</a>.<p>References <a class="el" href="focuseventappview_8h-source.html#l00118">iTextLines</a>.<p>Referenced by <a class="el" href="focuseventappview_8cpp-source.html#l00124">Print()</a>.<div class="fragment"><pre class="fragment"><a name="l00135"></a>00135     {<a name="l00136"></a>00136     <span class="comment">// Add the text line onto the last line</span><a name="l00137"></a>00137     TInt lastTextLine = <a class="code" href="class_c_focus_event_app_view.html#074ac1c7490630dfae97d172ebbb7d45">iTextLines</a>.Count() - 1;<a name="l00138"></a>00138 <a name="l00139"></a>00139     <span class="comment">// Make sure the text line doesn't get too long for the buffer.</span><a name="l00140"></a>00140     <span class="comment">// This should really clip rather than not do anything</span><a name="l00141"></a>00141     <span class="comment">// if the line is too long.</span><a name="l00142"></a>00142     <span class="keywordflow">if</span> ( aText.Length() + <a class="code" href="class_c_focus_event_app_view.html#074ac1c7490630dfae97d172ebbb7d45">iTextLines</a>[ lastTextLine ].Length()<a name="l00143"></a>00143                                   &lt;= KTestFrameworkMaxScreenMessageLength )<a name="l00144"></a>00144         {<a name="l00145"></a>00145         <a class="code" href="class_c_focus_event_app_view.html#074ac1c7490630dfae97d172ebbb7d45">iTextLines</a>[ lastTextLine ].Append( aText );<a name="l00146"></a>00146         DrawNow();<a name="l00147"></a>00147         }<a name="l00148"></a>00148     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="cb774d5077102fc3c5dbdb7df1261389"></a><!-- doxytag: member="CFocusEventAppView::Print" ref="cb774d5077102fc3c5dbdb7df1261389" args="(const TDesC &amp;aText)" --><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 CFocusEventAppView::Print           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TDesC &amp;&nbsp;</td>

⌨️ 快捷键说明

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