Sophie

Sophie

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

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>Architecture</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><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Architecture </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="Overview"></a>
Overview</h1>
<p><a class="el" href="namespace_maliit.html">Maliit</a> is an input method framework with a client-server architecture. The server hosts an UI for text input. The client receives the text input and displays it in the application. The Framework uses D-Bus for IPC (can be replaced with something else by re-implementing the communication class) and Qt's input method support, together with a <a class="el" href="namespace_maliit.html">Maliit</a> input context backend.</p>
<p>Server and client (that is, the application) run in different processes. The server runs as a single-instance process for each user session.</p>
<div align="center">
</div>
<p>Whenever the server handles a client request (eg. when text entry is tapped, thus becoming the focus widget), the server projects a translucent fullscreen overlay onto the screen, effectivly capturing all input events. <a class="el" href="namespace_maliit.html">Maliit</a> plugins then render their UI into the overlay, propagating the consumed input method area to the server. The fullscreen overlay is transient to the application window, that is, if the application window goes away, so does the fullscreen overlay.</p>
<p>The system compositor composes the remaining translucent background area with the application UI's rendering output. Except for touch and mouse events targeting the active plugin's propagated input method area, all input events are forwarded to the underlying application window.</p>
<p><a class="el" href="namespace_maliit.html">Maliit</a> can run in a self compositing mode, which bypasses the system compositor and instead composes the application UI's rendering output in the <a class="el" href="namespace_maliit.html">Maliit</a> server process. In this mode, no system compositor is required.</p>
<p>In Harmattan and MeeGo, MCompositor takes the role of a compositing window manager. MCompositor serves as a reference window manager for <a class="el" href="namespace_maliit.html">Maliit</a>.</p>
<p>The Framework provides interfaces which are implemented by the plugins. Plugins provide the input method's UI and are also responsible for input method engine integration. A typical plugin use-case is the implementation of a virtual keyboard with error correction and word prediction support. Plugins handle text composition and send the result to the application via the server, using either preedit or commit strings. The latter are considered the final text input, whereas the former can still be modified by plugins. Preedit strings can be used to show the would-be result to users.</p>
<p>Each application creates its own input context, which acts as the application's client that connects to the <a class="el" href="namespace_maliit.html">Maliit</a> server. The input context receives text composed by input methods and forwards it to the application's focus widget (usually a text entry). <a class="el" href="namespace_maliit.html">Maliit</a>'s input context backend supports Qt application. Support for GTK+ applications is provided through <a class="el" href="namespace_maliit.html">Maliit</a>'s input method bridges. </p>
</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>