Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 2eb375d673697d241e484221c9b6a906 > files > 184

maliit-framework-0.94.2-4.mga4.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Maliit::PreeditInjectionEvent Class Reference</title>
<link href="meego-im.css" rel="stylesheet" type="text/css">
</head><body>
<table>
<tr>
<td></td>
<td>
<a href="index.html">Home</a>
·
<a href="classes.html">API Reference</a>
·
<a href="modules.html">Modules</a>
</td>
</tr>
</table>
<!-- Generated by Doxygen 1.8.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_maliit.html">Maliit</a></li><li class="navelem"><a class="el" href="class_maliit_1_1_preedit_injection_event.html">PreeditInjectionEvent</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_maliit_1_1_preedit_injection_event-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Maliit::PreeditInjectionEvent Class Reference<div class="ingroups"><a class="el" href="group__libmaliit.html">Libmaliit</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for Maliit::PreeditInjectionEvent:</div>
<div class="dyncontent">
<div class="center"><img src="class_maliit_1_1_preedit_injection_event__inherit__graph.png" border="0" usemap="#_maliit_1_1_preedit_injection_event_inherit__map" alt="Inheritance graph"/></div>
<map name="_maliit_1_1_preedit_injection_event_inherit__map" id="_maliit_1_1_preedit_injection_event_inherit__map">
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8ae30c50c6f0d170cce7764dafd7ad26"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a8ae30c50c6f0d170cce7764dafd7ad26">PreeditInjectionEvent</a> (const QString &amp;<a class="el" href="class_maliit_1_1_preedit_injection_event.html#ab5fdc975d98931845a10659d24455d29">preedit</a>)</td></tr>
<tr class="separator:a8ae30c50c6f0d170cce7764dafd7ad26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5ef85ade4a510c60096f0053256f8ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#ac5ef85ade4a510c60096f0053256f8ac">PreeditInjectionEvent</a> (const QString &amp;<a class="el" href="class_maliit_1_1_preedit_injection_event.html#ab5fdc975d98931845a10659d24455d29">preedit</a>, int <a class="el" href="class_maliit_1_1_preedit_injection_event.html#a7ce444c3bcb773eb521ead9cd0a59321">eventCursorPosition</a>)</td></tr>
<tr class="separator:ac5ef85ade4a510c60096f0053256f8ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b8c2f5926c2e5b55db69e9a5036dcc4"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a8b8c2f5926c2e5b55db69e9a5036dcc4">~PreeditInjectionEvent</a> ()</td></tr>
<tr class="separator:a8b8c2f5926c2e5b55db69e9a5036dcc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5fdc975d98931845a10659d24455d29"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#ab5fdc975d98931845a10659d24455d29">preedit</a> () const </td></tr>
<tr class="separator:ab5fdc975d98931845a10659d24455d29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ce444c3bcb773eb521ead9cd0a59321"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a7ce444c3bcb773eb521ead9cd0a59321">eventCursorPosition</a> () const </td></tr>
<tr class="separator:a7ce444c3bcb773eb521ead9cd0a59321"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a55f55fdf110771306bc9490c279022"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a5a55f55fdf110771306bc9490c279022">setReplacement</a> (int <a class="el" href="class_maliit_1_1_preedit_injection_event.html#a0e3f66d982535564a077ff509dc4f76b">replacementStart</a>, int <a class="el" href="class_maliit_1_1_preedit_injection_event.html#a0e642dcd1d881f949403f92bfcbb3a0b">replacementLength</a>)</td></tr>
<tr class="separator:a5a55f55fdf110771306bc9490c279022"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e3f66d982535564a077ff509dc4f76b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a0e3f66d982535564a077ff509dc4f76b">replacementStart</a> () const </td></tr>
<tr class="separator:a0e3f66d982535564a077ff509dc4f76b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e642dcd1d881f949403f92bfcbb3a0b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a0e642dcd1d881f949403f92bfcbb3a0b">replacementLength</a> () const </td></tr>
<tr class="separator:a0e642dcd1d881f949403f92bfcbb3a0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a9cb6b80f7dea8f8342ecfa03cd6e699c"><td class="memItemLeft" align="right" valign="top">static QEvent::Type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a9cb6b80f7dea8f8342ecfa03cd6e699c">eventNumber</a> ()</td></tr>
<tr class="separator:a9cb6b80f7dea8f8342ecfa03cd6e699c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a07f92b639bd40a8b88f650f9165863bd"><td class="memItemLeft" align="right" valign="top">PreeditInjectionEventPrivate *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_maliit_1_1_preedit_injection_event.html#a07f92b639bd40a8b88f650f9165863bd">d_ptr</a></td></tr>
<tr class="separator:a07f92b639bd40a8b88f650f9165863bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Extension for preedit text inside text edits. </p>
<p>MPreeditInjectionEvent should be sent from text edit to input context and offer the word as preedit. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8ae30c50c6f0d170cce7764dafd7ad26"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Maliit::PreeditInjectionEvent::PreeditInjectionEvent </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>preedit</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">preedit</td><td>The word offered as preedit. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac5ef85ade4a510c60096f0053256f8ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Maliit::PreeditInjectionEvent::PreeditInjectionEvent </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>preedit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>eventCursorPosition</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">preedit</td><td>The word offered as preedit. </td></tr>
    <tr><td class="paramname">eventCursorPosition</td><td>The expected cursor position inside preedit. The valid value is from 0 (at the beginning of the preedit) to the length of preedit (at the end of preedit). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8b8c2f5926c2e5b55db69e9a5036dcc4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Maliit::PreeditInjectionEvent::~PreeditInjectionEvent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a7ce444c3bcb773eb521ead9cd0a59321"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Maliit::PreeditInjectionEvent::eventCursorPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the expected cursor position inside preedit. </p>
<p>Note the eventCursorPosition is not the real cursor position, while it is the cursor position inside preedit which this event expects. The input context will decide whether and where to display cursor. The valid value is from 0 (at the beginning of the preedit) to the length of preedit (at the end of preedit). Other values indicate the cursor position unknown. </p>

</div>
</div>
<a class="anchor" id="a9cb6b80f7dea8f8342ecfa03cd6e699c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QEvent::Type Maliit::PreeditInjectionEvent::eventNumber </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab5fdc975d98931845a10659d24455d29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Maliit::PreeditInjectionEvent::preedit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the offered preedit text. </p>

</div>
</div>
<a class="anchor" id="a0e642dcd1d881f949403f92bfcbb3a0b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Maliit::PreeditInjectionEvent::replacementLength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>replacement length info as in QInputMethodEvent </p>

</div>
</div>
<a class="anchor" id="a0e3f66d982535564a077ff509dc4f76b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Maliit::PreeditInjectionEvent::replacementStart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>replacement start info as in QInputMethodEvent </p>

</div>
</div>
<a class="anchor" id="a5a55f55fdf110771306bc9490c279022"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Maliit::PreeditInjectionEvent::setReplacement </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>replacementStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>replacementLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>sets replacement information that should be used for QInputMethodEvent. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a07f92b639bd40a8b88f650f9165863bd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">PreeditInjectionEventPrivate* const Maliit::PreeditInjectionEvent::d_ptr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<hr>
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%" align="left">Copyright &copy; 2011 Nokia Corporation</td>
<td width="40%" align="center" class="generator"><!-- Generated on Sat Nov 2 2013 03:50:25<br>Doxygen 1.8.5 --></td>
<td width="30%" align="right"><div align="right">Maliit</div></td>
</tr></table>
</body>
</html>