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

📄 class_c_ocr_example_text_container.html

📁 基于symbian 平台 ocr 示例程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
          <td class="md" nowrap valign="top">TInt&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aIndex</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>From CCoeControl returns a control <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aIndex</em>&nbsp;</td><td>index of a control </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>CCoeControl* pointer on a control </dd></dl><p>Definition at line <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00097">97</a> of file <a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_text_container_8h-source.html#l00110">iEditor</a>.<div class="fragment"><pre class="fragment"><a name="l00098"></a>00098     {<a name="l00099"></a>00099     <span class="keywordflow">switch</span> (aIndex)<a name="l00100"></a>00100         {<a name="l00101"></a>00101         <span class="keywordflow">case</span> 0:<a name="l00102"></a>00102             <span class="keywordflow">return</span> <a class="code" href="class_c_ocr_example_text_container.html#916b0cc0d7c67ddc4587c342efe57725">iEditor</a>;<a name="l00103"></a>00103         <span class="keywordflow">default</span>:<a name="l00104"></a>00104             <span class="keywordflow">return</span> NULL;<a name="l00105"></a>00105         }<a name="l00106"></a>00106     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="6775621e6d3ce05d6685555c939c7706"></a><!-- doxytag: member="COcrExampleTextContainer::OfferKeyEventL" ref="6775621e6d3ce05d6685555c939c7706" args="(const TKeyEvent &amp;aKeyEvent, TEventCode aType)" --><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">TKeyResponse COcrExampleTextContainer::OfferKeyEventL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TKeyEvent &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>aKeyEvent</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>TEventCode&nbsp;</td>          <td class="mdname" nowrap> <em>aType</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>From CCoeControl event handling section <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aKeyEvent</em>&nbsp;</td><td>the key event </td></tr>    <tr><td valign="top"></td><td valign="top"><em>aType</em>&nbsp;</td><td>the type of the event </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TKeyResponse key event was used by this control or not </dd></dl><p>Definition at line <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00114">114</a> of file <a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_text_container_8h-source.html#l00110">iEditor</a>.<div class="fragment"><pre class="fragment"><a name="l00115"></a>00115     {<a name="l00116"></a>00116     <span class="keywordflow">if</span> (<a class="code" href="class_c_ocr_example_text_container.html#916b0cc0d7c67ddc4587c342efe57725">iEditor</a>)<a name="l00117"></a>00117         {<a name="l00118"></a>00118         <span class="keywordflow">if</span> (aKeyEvent.iCode == EKeyDownArrow)<a name="l00119"></a>00119             {<a name="l00120"></a>00120             iEditor-&gt;MoveCursorL(TCursorPosition::EFLineDown, EFalse);<a name="l00121"></a>00121             <span class="keywordflow">return</span> EKeyWasConsumed;<a name="l00122"></a>00122             }<a name="l00123"></a>00123         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (aKeyEvent.iCode == EKeyUpArrow)<a name="l00124"></a>00124             {<a name="l00125"></a>00125             iEditor-&gt;MoveCursorL(TCursorPosition::EFLineUp, EFalse);<a name="l00126"></a>00126             <span class="keywordflow">return</span> EKeyWasConsumed;<a name="l00127"></a>00127             }<a name="l00128"></a>00128                 <span class="keywordflow">else</span><a name="l00129"></a>00129                     {<a name="l00130"></a>00130                         <span class="keywordflow">return</span> iEditor-&gt;OfferKeyEventL(aKeyEvent, aType);<a name="l00131"></a>00131                     }<a name="l00132"></a>00132         }<a name="l00133"></a>00133     <span class="keywordflow">else</span><a name="l00134"></a>00134         <span class="keywordflow">return</span> CCoeControl::OfferKeyEventL(aKeyEvent, aType);<a name="l00135"></a>00135     }</pre></div><p>    </td>  </tr></table><a class="anchor" name="67f946ca7848ec78de4961c5bcefdb72"></a><!-- doxytag: member="COcrExampleTextContainer::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 COcrExampleTextContainer::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<code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>From CCoeControl <p>Definition at line <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00108">108</a> of file <a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00109"></a>00109     {<a name="l00110"></a>00110     CWindowGc&amp; gc = SystemGc();<a name="l00111"></a>00111     gc.Clear(aRect);<a name="l00112"></a>00112     }</pre></div><p>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="916b0cc0d7c67ddc4587c342efe57725"></a><!-- doxytag: member="COcrExampleTextContainer::iEditor" ref="916b0cc0d7c67ddc4587c342efe57725" 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">CEikGlobalTextEditor* <a class="el" href="class_c_ocr_example_text_container.html#916b0cc0d7c67ddc4587c342efe57725">COcrExampleTextContainer::iEditor</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>pointer to read-only editor <p>Definition at line <a class="el" href="_ocr_example_text_container_8h-source.html#l00110">110</a> of file <a class="el" href="_ocr_example_text_container_8h-source.html">OcrExampleTextContainer.h</a>.<p>Referenced by <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00143">AdjustCursorL()</a>, <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00097">ComponentControl()</a>, <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00036">ConstructL()</a>, <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00114">OfferKeyEventL()</a>, <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00137">ReadTextFromFileL()</a>, <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00073">SizeChanged()</a>, and <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00068">~COcrExampleTextContainer()</a>.    </td>  </tr></table><a class="anchor" name="e72899bf23845a10c6b7559c2e896baa"></a><!-- doxytag: member="COcrExampleTextContainer::iData" ref="e72899bf23845a10c6b7559c2e896baa" 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"><a class="el" href="struct_t_text_container_data.html">TTextContainerData</a>&amp; <a class="el" href="class_c_ocr_example_text_container.html#e72899bf23845a10c6b7559c2e896baa">COcrExampleTextContainer::iData</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>state-data of this container <p>Definition at line <a class="el" href="_ocr_example_text_container_8h-source.html#l00113">113</a> of file <a class="el" href="_ocr_example_text_container_8h-source.html">OcrExampleTextContainer.h</a>.<p>Referenced by <a class="el" href="_ocr_example_text_container_8cpp-source.html#l00143">AdjustCursorL()</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="_ocr_example_text_container_8h-source.html">OcrExampleTextContainer.h</a><li><a class="el" href="_ocr_example_text_container_8cpp-source.html">OcrExampleTextContainer.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 + -