📄 class_c_ocr_example_image_container.html
字号:
<p>NewL. Two-phased constructor. Construct a COcrExampleImageContainer using two phase construction, and return a pointer to the created object <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> </td><td>the main area for the container to draw </td></tr> <tr><td valign="top"></td><td valign="top"><em>aSettings</em> </td><td>the application level settings </td></tr> <tr><td valign="top"></td><td valign="top"><em>aData</em> </td><td>collected data needed for drawing </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of COcrExampleImageContainer </dd></dl><p>Definition at line <a class="el" href="_ocr_example_image_container_8cpp-source.html#l00035">35</a> of file <a class="el" href="_ocr_example_image_container_8cpp-source.html">OcrExampleImageContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_image_container_8cpp-source.html#l00051">NewLC()</a>.<p>Referenced by <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00070">COcrExampleImageView::ConstructL()</a>.<div class="fragment"><pre class="fragment"><a name="l00039"></a>00039 {<a name="l00040"></a>00040 <a class="code" href="class_c_ocr_example_image_container.html">COcrExampleImageContainer</a>* <span class="keyword">self</span> =<a name="l00041"></a>00041 <a class="code" href="class_c_ocr_example_image_container.html#cea633536abf227b67f8c89920fd6d15">COcrExampleImageContainer::NewLC</a>( aRect, aSettings, aData );<a name="l00042"></a>00042 CleanupStack::Pop( <span class="keyword">self</span> );<a name="l00043"></a>00043 <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00044"></a>00044 }</pre></div><p> </td> </tr></table><a class="anchor" name="cea633536abf227b67f8c89920fd6d15"></a><!-- doxytag: member="COcrExampleImageContainer::NewLC" ref="cea633536abf227b67f8c89920fd6d15" args="(const TRect &aRect, TOcrExampleSettingsData &aSettings, TScreenUpdateData &aData)" --><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_ocr_example_image_container.html">COcrExampleImageContainer</a> * COcrExampleImageContainer::NewLC </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const TRect & </td> <td class="mdname" nowrap> <em>aRect</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="class_t_ocr_example_settings_data.html">TOcrExampleSettingsData</a> & </td> <td class="mdname" nowrap> <em>aSettings</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="class_t_screen_update_data.html">TScreenUpdateData</a> & </td> <td class="mdname" nowrap> <em>aData</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>NewLC. Two-phased constructor. Construct a COcrExampleImageContainer using two phase construction, and return a pointer to the created object <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> </td><td>the main area for the container to draw </td></tr> <tr><td valign="top"></td><td valign="top"><em>aSettings</em> </td><td>the application level settings </td></tr> <tr><td valign="top"></td><td valign="top"><em>aData</em> </td><td>collected data needed for drawing </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to the created instance of COcrExampleImageContainer </dd></dl><p>Definition at line <a class="el" href="_ocr_example_image_container_8cpp-source.html#l00051">51</a> of file <a class="el" href="_ocr_example_image_container_8cpp-source.html">OcrExampleImageContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_image_container_8cpp-source.html#l00022">COcrExampleImageContainer()</a>.<p>Referenced by <a class="el" href="_ocr_example_image_container_8cpp-source.html#l00035">NewL()</a>.<div class="fragment"><pre class="fragment"><a name="l00055"></a>00055 {<a name="l00056"></a>00056 <a class="code" href="class_c_ocr_example_image_container.html">COcrExampleImageContainer</a>* <span class="keyword">self</span> =<a name="l00057"></a>00057 <span class="keyword">new</span> ( ELeave ) <a class="code" href="class_c_ocr_example_image_container.html#e900b1958a606b7aa1c1289f6dd4ae3e">COcrExampleImageContainer</a>(aSettings, aData);<a name="l00058"></a>00058 CleanupStack::PushL( <span class="keyword">self</span> );<a name="l00059"></a>00059 <span class="keyword">self</span>->ConstructL( aRect );<a name="l00060"></a>00060 <span class="keywordflow">return</span> <span class="keyword">self</span>;<a name="l00061"></a>00061 }</pre></div><p> </td> </tr></table><a class="anchor" name="bf31593b337cbf3fb671382cf773281c"></a><!-- doxytag: member="COcrExampleImageContainer::ConstructL" ref="bf31593b337cbf3fb671382cf773281c" args="(const TRect &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 COcrExampleImageContainer::ConstructL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const TRect & </td> <td class="mdname1" valign="top" nowrap> <em>aRect</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Symbian default 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> </td><td>Frame rectangle for container. </td></tr> </table></dl><p>Definition at line <a class="el" href="_ocr_example_image_container_8cpp-source.html#l00068">68</a> of file <a class="el" href="_ocr_example_image_container_8cpp-source.html">OcrExampleImageContainer.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00069"></a>00069 {<a name="l00070"></a>00070 CreateWindowL();<a name="l00071"></a>00071 <span class="comment">// Set the windows size</span><a name="l00072"></a>00072 SetRect( aRect );<a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="comment">// note, parent view will activate this container</span><a name="l00075"></a>00075 }</pre></div><p> </td> </tr></table><a class="anchor" name="6775621e6d3ce05d6685555c939c7706"></a><!-- doxytag: member="COcrExampleImageContainer::OfferKeyEventL" ref="6775621e6d3ce05d6685555c939c7706" args="(const TKeyEvent &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 COcrExampleImageContainer::OfferKeyEventL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const TKeyEvent & </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 </td> <td class="mdname" nowrap> <em>aType</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From CCoeControl. container uses key-events to move crosshair (if activated) <p>Definition at line <a class="el" href="_ocr_example_image_container_8cpp-source.html#l00092">92</a> of file <a class="el" href="_ocr_example_image_container_8cpp-source.html">OcrExampleImageContainer.cpp</a>.<p>References <a class="el" href="_ocr_example_image_container_8h-source.html#l00048">TScreenUpdateData::iCrosshair</a>, and <a class="el" href="_ocr_example_image_container_8h-source.html#l00118">iScrData</a>.<div class="fragment"><pre class="fragment"><a name="l00094"></a>00094 {<a name="l00095"></a>00095 <span class="keyword">const</span> TInt stepInPixels = 10;<a name="l00096"></a>00096 TKeyResponse resp = EKeyWasNotConsumed;<a name="l00097"></a>00097 <a name="l00098"></a>00098 <span class="comment">// key-events meaningful only with crosshair</span><a name="l00099"></a>00099 <span class="keywordflow">if</span> ((<a class="code" href="class_c_ocr_example_image_container.html#b5e691f6287b12e15baecf2d973f48d2">iScrData</a>.<a class="code" href="class_t_screen_update_data.html#3beeffcd97169ea8291ae2fffec377e8">iCrosshair</a>) && (aType == EEventKey))<a name="l00100"></a>00100 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -